Crystal Space
Welcome, Guest. Please login or register.
December 21, 2014, 06:39:19 am

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9296 Members
Latest Member: Nicolepearce
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Problem compiling sndsystem for Windows
« previous next »
Pages: [1] Print
Author Topic: Problem compiling sndsystem for Windows  (Read 1072 times)
Dunmord
Newbie
*
Posts: 3


View Profile Email
« on: September 11, 2012, 04:21:49 am »

Hey everyone!

I am a new user to Crystal Space. I just found it and decided to give it a try.
I downloaded CS 2.0 latest stable release. Went through the documentation on getting CS built.

winlibs version: 2.0_002
OS: Windows 7, Home, Service Pack 1
IDE: Visual Studio 2010, Version 10.0.4 Service Pack 1
.NET Framework: Version 4.0.30319 Service Pack 1
Windows SDK: 7.0A
Compiler: VisualC
Video card: Intel HD Graphics 3000 (iCore3)

Almost everything compiled fine. The one thing that is not compiling is the sound system; it burns when it tries to find the direct sound definitions.

To be exact:

Code:
ClCompile:
1>  driver_ds.cpp
1>c:\sdks\crystal space\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.h(165): error C2146: syntax error : missing ';' before identifier 'm_pDirectSoundDevice'
1>c:\sdks\crystal space\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.h(165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\sdks\crystal space\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.h(165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(59): error C2614: 'CS::Plugin::SndSysDIRECTSOUND::SndSysDriverDirectSound' : illegal member initialization: 'm_pDirectSoundDevice' is not a base or member
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(133): error C2065: 'm_pDirectSoundDevice' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(133): error C3861: 'DirectSoundCreate8': identifier not found
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(158): error C2065: 'm_pDirectSoundDevice' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(158): error C2227: left of '->SetCooperativeLevel' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(175): error C2065: 'm_pDirectSoundDevice' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(175): error C2227: left of '->Release' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(176): error C2065: 'm_pDirectSoundDevice' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(187): error C2065: 'm_pDirectSoundDevice' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(187): error C2065: 'm_pDirectSoundDevice' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(187): error C2227: left of '->Release' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(188): error C2065: 'm_pDirectSoundDevice' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(224): error C2065: 'm_pDirectSoundDevice' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(224): error C2227: left of '->CreateSoundBuffer' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(246): error C2065: 'LPDIRECTSOUNDNOTIFY8' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(246): error C2146: syntax error : missing ';' before identifier 'lpDsNotify'
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(246): error C2065: 'lpDsNotify' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(247): error C2065: 'IID_IDirectSoundNotify8' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(247): error C2065: 'lpDsNotify' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(265): error C2065: 'lpDsNotify' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(265): error C2227: left of '->SetNotificationPositions' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(274): error C2065: 'lpDsNotify' : undeclared identifier
1>..\..\plugins\sndsys\renderer\software\drivers\directsound\driver_ds.cpp(274): error C2227: left of '->Release' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>
1>Build FAILED.
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #1 on: September 11, 2012, 11:09:36 am »

Hmm... maybe the DirectSound headers in that SDK are too new or something...
To confirm that (or not), could you verify which DirectSound header(s) (dsound.h, I believe) are used, the one from the Windows SDK or the one from the CS winlibs?
Logged
Dunmord
Newbie
*
Posts: 3


View Profile Email
« Reply #2 on: September 11, 2012, 06:22:00 pm »

Oh you were right! You know actually what I did first was replace the dsound.h header from the VC directory (made a backup of course), and changed the VC++ directories so it would include the VC first than WinSDK, but I guess something went wrong. What I did now is put the dsound directory before the Windows SDK and it compiled. Thanks!
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.205 seconds with 16 queries.