Pages: [1]
|
|
|
Author
|
Topic: Errors compiling source with visual studio net (Read 7497 times)
|
Riven
Zebranky food
Offline
Posts: 6
I love YaBB 1G - SP1!
|
c:\sc2\src\sc2code\libs\graphics\sdl\3do_getbody.c(529): warning C4244: '=' : conversion from 'UWORD' to 'BYTE', possible loss of data c:\sc2\src\sc2code\libs\sound\openal\decoders\wav.h(29): fatal error C1083: Cannot open include file: 'al.h': No such file or directory c:\sc2\src\sc2code\libs\sound\openal\decoders\decoder.c(30): fatal error C1083: Cannot open include file: 'vorbis/codec.h': No such file or directory c:\sc2\src\sc2code\libs\sound\openal\sound.h(21): fatal error C1083: Cannot open include file: 'al.h': No such file or directory c:\sc2\src\sc2code\libs\sound\openal\sound.h(21): fatal error C1083: Cannot open include file: 'al.h': No such file or directory c:\sc2\src\sc2code\libs\sound\openal\sound.h(21): fatal error C1083: Cannot open include file: 'al.h': No such file or directory c:\sc2\src\sc2code\libs\sound\openal\sound.h(21): fatal error C1083: Cannot open include file: 'al.h': No such file or directory c:\sc2\src\sc2code\libs\sound\openal\sound.h(21): fatal error C1083: Cannot open include file: 'al.h': No such file or directory c:\sc2\src\sc2code\libs\graphics\sdl\sdl_common.c(525): warning C4101: 'semval' : unreferenced local variable
|
|
« Last Edit: December 11, 2002, 09:41:54 pm by Riven »
|
Logged
|
|
|
|
serendipity
Zebranky food
Offline
Posts: 16
Personal text is for weenies.
|
Read the INSTALL file in the CVS directory - you need to install all the libraries. The one you're missing there is OpenAL. Get it from Creative's website - the URL is also in the INSTALL file.
Also: Noticed you're missing the Ogg codec as well. Make sure you have all the libraries installed, add the path(s) to the .h files in the Project -> Settings -> Resource include directories box, and specify the paths to the libraries (.dlls) themselves in the Project -> Settings Link box as well.
|
|
« Last Edit: December 11, 2002, 10:15:36 pm by serendipity »
|
Logged
|
|
|
|
Parker
*Many bubbles*
Offline
Posts: 122
|
Hope you don't mind I edited your post earlier to disable smileys. Anyway, this is a technical issue, so off it goes to the Tech Issues/Bugs forum.
|
|
|
Logged
|
|
|
|
Riven
Zebranky food
Offline
Posts: 6
I love YaBB 1G - SP1!
|
Thanks Parker, my error not posting it here, sorry.
Sorry for my lamer post, yesterday I was very tired and didn't see the obvious
I only get now 1 error :
UrQuanMasters fatal error LNK1104: cannot open file 'SDL.lib'
I have sdl.lib in src directory, but it keeps showing that error, I would investigate mor that error but maybe someone could point me abouot that. Thanks in advance
|
|
|
Logged
|
|
|
|
Riven
Zebranky food
Offline
Posts: 6
I love YaBB 1G - SP1!
|
ok, I've been noobish again, all libs go to \libs in ms visual studio directory
|
|
|
Logged
|
|
|
|
serendipity
Zebranky food
Offline
Posts: 16
Personal text is for weenies.
|
ok, I've been noobish again, all libs go to \libs in ms visual studio directory
That's not a very clean way to compile everything - you'll have libs all over the place. Best thing to do is, install all the libraries you need in their own places. In the project settings, add the Libraries' include directories to the Preprocessor's "Additional Include Directories" box. Then, in the Linker Command-line options, add the libs that you need (.lib files) with full paths. Then, copy the necessary .dlls to the actual project directory (\sc2, not \sc2\src) You'll need, I believe (this is from memory, so I may have missed something), SDL.dll, SDL_image.dll, a bunch of graphics libs (jpeg, libpng1, zlib), and openal32.dll. This way, when you upgrade libraries, you just need to remake them in their own directories, instead of hunting through the default lib directories for all the pieces.
After you do this setup, it's easy to hack around in the code and rebuild quickly. The tough part is debugging an interactive game with the MS debugging tools - I'm still trying to figure out the best way to do that. Without knowing the code's structure, it's tough to set breakpoints, or figure out where a bug is happening.
|
|
|
Logged
|
|
|
|
James CKay
Guest
|
What library am i missing? ain't so sure which library to download from http://www.libsdl.org/projects/SDL_image/release/
Compiling... temp.c c:\urquan\urquan source\src\sc2code\libs\file\temp.c(21) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory 3do_blt.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory 3do_funcs.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory 3do_getbody.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory dcqueue.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory opengl.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory primitives.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory pure.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory rotozoom.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\rotozoom.h(21) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory sdl_common.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory 2xsai.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\2xsai.c(45) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory cmap.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory input.c c:\urquan\urquan source\src\sc2code\libs\graphics\sdl\sdl_common.h(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory music.c c:\urquan\urquan source\src\sc2code\libs\sound\openal\sound.h(21) : fatal error C1083: Cannot open include file: 'al.h': No such file or directory sfx.c c:\urquan\urquan source\src\sc2code\libs\sound\openal\sound.h(21) : fatal error C1083: Cannot open include file: 'al.h': No such file or directory sound.c c:\urquan\urquan source\src\sc2code\libs\sound\openal\sound.h(21) : fatal error C1083: Cannot open include file: 'al.h': No such file or directory stream.c c:\urquan\urquan source\src\sc2code\libs\sound\openal\sound.h(21) : fatal error C1083: Cannot open include file: 'al.h': No such file or directory trackplayer.c c:\urquan\urquan source\src\sc2code\libs\sound\openal\sound.h(21) : fatal error C1083: Cannot open include file: 'al.h': No such file or directory decoder.c c:\urquan\urquan source\src\sc2code\libs\sound\openal\decoders\decoder.c(30) : fatal error C1083: Cannot open include file: 'vorbis/codec.h': No such file or directory wav.c c:\urquan\urquan source\src\sc2code\libs\sound\openal\decoders\wav.h(29) : fatal error C1083: Cannot open include file: 'al.h': No such file or directory sdlthreads.c c:\urquan\urquan source\src\sc2code\libs\threads\sdl\sdlthreads.h(23) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory thrcommon.c c:\urquan\urquan source\src\sc2code\libs\threads\sdl\sdlthreads.h(23) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory sdltime.c c:\urquan\urquan source\src\sc2code\libs\time\sdl\sdltime.h(23) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory timecommon.c c:\urquan\urquan source\src\sc2code\libs\time\sdl\sdltime.h(23) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory load.c c:\urquan\urquan source\src\sc2code\load.c(19) : fatal error C1083: Cannot open include file: 'sys/param.h': No such file or directory melee.c c:\urquan\urquan source\src\sc2code\melee.c(20) : fatal error C1083: Cannot open include file: 'sys/param.h': No such file or directory save.c c:\urquan\urquan source\src\sc2code\save.c(19) : fatal error C1083: Cannot open include file: 'sys/param.h': No such file or directory options.c c:\urquan\urquan source\src\options.c(25) : fatal error C1083: Cannot open include file: 'sys/param.h': No such file or directory Error executing cl.exe.
uqmdebug.exe - 28 error(s), 0 warning(s)
|
|
|
Logged
|
|
|
|
serendipity
Zebranky food
Offline
Posts: 16
Personal text is for weenies.
|
What library am i missing? ain't so sure which library to download from http://www.libsdl.org/projects/SDL_image/release/Compiling... temp.c c:\urquan\urquan source\src\sc2code\libs\file\temp.c(21) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
You need SDL and OpenAL. You might or might not have SDL_image installed - since there are no errors yet. Get the latest version available of all the libraries. Get OpenAL from the creative web site listed in the INSTALL file.
Or, just download the precompiled .EXE which I update every few days, and which Sun posts on his web site. Check the "alpha patch" thread.
|
|
|
Logged
|
|
|
|
Pages: [1]
|
|
|
|
|