compile SDLmm...
I'm trying to compile Advanced Strategic Command but it requires several 3rd party libraries. i have installed SDL 1.2, SDL Image, SDL Mixer and Paragui (thanks to the fink project!) but now I need to compile and install SDLmm and have run into a "small" snag.
./configure seem to run just fine but make fails with the following error:
NOTE: I did install sdl_shlibs from the fink project so I assume I have the shared version of the SDL library. Any help or suggestions would be greatly appreciated.
Thanks!
- John
./configure seem to run just fine but make fails with the following error:
Quote:*** Warning: This library needs some functionality provided by -lSDLmain.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
../libtool: test: too many arguments
gcc -dynamiclib -undefined suppress -o .libs/libSDLmm-0.1.8.0.0.dylib sdlmm_global.lo sdlmm_basesurface.lo sdlmm_surface.lo sdlmm_display.lo sdlmm_pixelformat.lo sdlmm_srect.lo s
dlmm_event.lo sdlmm_audio.lo sdlmm_timer.lo sdlmm_joystick.lo sdlmm_cd.lo sdlmm_videoinfo.lo -lm -L/sw/lib -lSDL -lc -install_name /sw/lib/libSDLmm-0.1.8.dylib
ld: -undefined error must be used when -twolevel_namespace is in effect
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libSDLmm.la] Error 1
make: *** [all-recursive] Error 1
NOTE: I did install sdl_shlibs from the fink project so I assume I have the shared version of the SDL library. Any help or suggestions would be greatly appreciated.
Thanks!
- John
He's not using an IDE.
Well I can't help if he is using a command line compiler. No experience using them only IDE's.
Yep, this is a command line build... no pretty GUI for me.
There might be a flag I can set somewhere telling the compiler where to find the shared library. I'm just not that familiar with the command line...
There might be a flag I can set somewhere telling the compiler where to find the shared library. I'm just not that familiar with the command line...
Any particular reason you're trying to do this with X11, anyway?
Have you tried downloading the SDL frameworks, adding them and all the relevant source to a PB project and clicking build?
Have you tried downloading the SDL frameworks, adding them and all the relevant source to a PB project and clicking build?
Quote:Any particular reason you're trying to do this with X11, anyway?Since fink already compiled most of the SDL libraries for me I figured using the command line would be easiest. I'm not compiling under X11, I'm compiling using the Terminal app. But I don't think that really matters.
I have not tried using PB yet. I was kind of hoping the command line tools would do the trick. I will give PB a try...
Thanks!
Yeah, but the SDL libraries installed by fink are the X11 versions...

