Crystal Space
Welcome, Guest. Please login or register.
September 02, 2014, 06:45:00 am

Login with username, password and session length
Search:     Advanced search
9009 Posts in 2043 Topics by 8374 Members
Latest Member: Donaldyokley
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Compile Errors
« previous next »
Pages: [1] 2 Print
Author Topic: Compile Errors  (Read 5844 times)
bluntman
Newbie
*
Posts: 9


View Profile Email
« on: September 20, 2005, 12:03:12 am »

Hey guys, when I compile CS with visual studio 6 on windows XP i get 24 errors when the compiler is linking directx files... I'm pretty sure it mostly has to do with the audio subsystem but anyways I wanted to use openAL instead of DirectSound, any guidance?


Errors:

--------------------Configuration: plgsndds3d - Win32 Release_NR--------------------
Compiling resources...
Compiling...
sndhdl.cpp
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
sndlstn.cpp


etc...
Logged
mark
Full Member
***
Posts: 101


View Profile
« Reply #1 on: September 20, 2005, 08:20:14 am »

recently there are some mails in the mailinglist about the soundsystem and directx.
1) CS gets/has a new soundsystem (checkedin since yesterday)
2) it seems that soundcode written for directx 7 is not compatible with directx 8,9 or something like that

You can try the latest CVS sources to try the new system or downgrade directx.
You even may ignore the errors, because you said that you won't use the directx plugin, so you don't have to care if it's not been build.
Logged

Gentoo Linux ~x86, kernel 2.6.11-cko9 smp, gcc 3.4.4-r1, binutils 2.16.1, glibc 2.3.5 NPTL
CS+CEL Pseudo Stable 2005.09.03
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #2 on: September 20, 2005, 01:58:37 pm »

Can you figure out what it is on the indicated lines which causes the complaints? Maybe we just need to #include some other Windows header first or typedef some type.
Logged
bluntman
Newbie
*
Posts: 9


View Profile Email
« Reply #3 on: September 20, 2005, 10:30:01 pm »

Umm I dont feel like debugging dx code... but since I'm wickid new here where do I get the openAL libs for cs and how do I set it up to use them?
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #4 on: September 20, 2005, 10:37:32 pm »

The cs-win32libs package which you probably already installed includes OpenAL.
Logged
bluntman
Newbie
*
Posts: 9


View Profile Email
« Reply #5 on: September 20, 2005, 11:05:45 pm »

I already have openAL installed but isnt there a plugin or something I need to compile?
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #6 on: September 21, 2005, 09:56:57 am »

Do you mean the `plgsndoal' build subtarget of wkstypical?
Logged
bluntman
Newbie
*
Posts: 9


View Profile Email
« Reply #7 on: September 22, 2005, 01:49:40 am »

cool, does that work with the new renderer?
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #8 on: September 22, 2005, 06:05:31 am »

With what new renderer? The graphics renderer? OpenAL is an audio rendering toolkit.
Logged
bluntman
Newbie
*
Posts: 9


View Profile Email
« Reply #9 on: September 23, 2005, 06:37:04 am »

sorry, still new to cs

theres 2 different workspaces -> the newrenderer one and the typical one, I thought I saw somewhere that the new renderer was better?
Logged
deckerego
Full Member
***
Posts: 149


View Profile WWW
« Reply #10 on: September 23, 2005, 07:13:10 am »

Nope, just one renderer. But that wouldn't influence your sound engine choice.
Logged
mark
Full Member
***
Posts: 101


View Profile
« Reply #11 on: September 23, 2005, 09:24:45 am »

yes, the new renderer (which is a graphics renderer, no sound renderer) replaced the old renderer some months ago, so there is only "the" renderer left Wink
Logged

Gentoo Linux ~x86, kernel 2.6.11-cko9 smp, gcc 3.4.4-r1, binutils 2.16.1, glibc 2.3.5 NPTL
CS+CEL Pseudo Stable 2005.09.03
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #12 on: September 23, 2005, 01:44:24 pm »

In the 0.98 release, which you downloaded, there were two different graphics renderer architectures, old and new. The wkstypical and wksnewrenderer workspaces control which of these two renderers you build. After the 0.98 release, the old graphics renderer architecture was dropped, so there is now only wkstypical in CVS.

There are also sound renderers, of which OpenAL is an example. This audio renderer is available regardless of which graphics renderer you choose.
Logged
bluntman
Newbie
*
Posts: 9


View Profile Email
« Reply #13 on: September 27, 2005, 04:18:26 pm »

Yea I understand that, I was looking for help with customizing the compile to make a smaller footprint. Since I don't seem to understand all the documentation I was hoping for some insight. As for the compile errors, I realized how long its been since I reinstalled windows and I figure notepad shouldnt even be working by now.

But anyways, if I understand correctly, I can customize the Cs "Kernel" to support this and that, etc... I noticed that there is alot of targets in the workspace though and I know I wont be using them all. For example there are quite a few audio libraries, but I only really need one... Also there are several different rendering implementations (I noticed opengl and directx to name 2) I only want opengl to compile.

Can anyone point me to a nice tutorial or doc on customizing my CS compile?
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #14 on: September 27, 2005, 06:19:26 pm »

You can pick and choose which ones you want to build by right clicking on them and selecting Build this Target (or whatever it is called). You can also unload projects by right clicking and selecting Unload.
Logged
Pages: [1] 2 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 4.158 seconds with 16 queries.