compile SDLmm...

Member
Posts: 89
Joined: 2002.04
Post: #1
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:

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

Thanks!
- John
Quote this message in a reply
Mars_999
Unregistered
 
Post: #2
What IDE are you using?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
He's not using an IDE.
Quote this message in a reply
Mars_999
Unregistered
 
Post: #4
Well I can't help if he is using a command line compiler. No experience using them only IDE's.
Quote this message in a reply
Member
Posts: 89
Joined: 2002.04
Post: #5
Yep, this is a command line build... no pretty GUI for me. Rasp

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...
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #6
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?
Quote this message in a reply
Member
Posts: 89
Joined: 2002.04
Post: #7
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!
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #8
Yeah, but the SDL libraries installed by fink are the X11 versions...
Quote this message in a reply
Nibbie
Posts: 0
Joined: 2011.01
Post: #9
Actually it does install the OSX versions, if you want the X11 versions you would have to compile it without finks help. Blink
Quote this message in a reply
Post Reply