JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.01k stars 612 forks source link

I get an error during the 64bit compiling process on OS X #447

Closed aronkihui closed 10 years ago

aronkihui commented 10 years ago

Hi, when I compile OpenJK in 64bit mode, the default mode, at 12% the osx's terminal shows me an error and the compiling process stop right there.

This is the terminal output:

[ 12%] Building CXX object code/CMakeFiles/openjk_sp.x86_64.dir/sdl/sdl_snd.cpp.o /Users/arongutierrez/Downloads/OpenJK-master/code/sdl/sdl_snd.cpp:166:47: error: use of undeclared identifier 'SDL_GetCurrentAudioDriver' Com_Printf( "SDL audio driver is \"%s\".\n", SDL_GetCurrentAudio... ^ 1 error generated. make[2]: * [code/CMakeFiles/openjk_sp.x86_64.dir/sdl/sdl_snd.cpp.o] Error 1 make[1]: * [code/CMakeFiles/openjk_sp.x86_64.dir/all] Error 2 make: *\ [all] Error 2

xycaleth commented 10 years ago

Do you have the SDL2 development libraries installed?

aronkihui commented 10 years ago

Yes, I have it. I can compile OpenJK in 32bit mode without any problem. Just 64bit mode try to kill me and give me headache.

ensiform commented 10 years ago

Do you have the 64bit sdl2 ?

The 32-bit libraries don't magically work with 64-bit.

aronkihui commented 10 years ago

Yes, I have XD

xycaleth commented 10 years ago

Can you double check it's finding your SDL2 library by running cmake -i? Keeping pressing enter to accept all the settings until you get to a setting that looks like the SDL2 library path.

aronkihui commented 10 years ago

The issue occurs if someone have SDL 1.2 and SDL 2. I shouldn't have both libraries installed it seems XD.