PDA

View Full Version : compile SDLmm...


flipflop
2003.04.22, 09:19 PM
I'm trying to compile Advanced Strategic Command (http://www.asc-hq.org/) 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 (http://sdlmm.sourceforge.net/) and have run into a "small" snag.

./configure seem to run just fine but make fails with the following error:

*** 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. :D

Thanks!
- John

Mars_999
2003.04.22, 11:44 PM
What IDE are you using?

OneSadCookie
2003.04.23, 12:14 AM
He's not using an IDE.

Mars_999
2003.04.23, 12:57 AM
Well I can't help if he is using a command line compiler. No experience using them only IDE's.

flipflop
2003.04.23, 01:15 AM
Yep, this is a command line build... no pretty GUI for me. :p

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...

OneSadCookie
2003.04.23, 01:35 AM
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?

flipflop
2003.04.23, 01:51 AM
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!

OneSadCookie
2003.04.23, 01:56 AM
Yeah, but the SDL libraries installed by fink are the X11 versions...

Weston
2003.06.14, 07:26 PM
Actually it does install the OSX versions, if you want the X11 versions you would have to compile it without finks help. :blink: