Mplayer static and joystick problem on MacosX

Im try compile mplayer with static libaries
And mplayer wrote this on end compilation

sudo gcc -O4 -pipe -ffast-math -fomit-frame-pointer -Wall -no-cpp-precomp
-DSYS_DARWIN -Ilibmpdemux -Iloader -Ilibvo
-I/Users/jandevera/Desktop/sdl/include/SDL -D_THREAD_SAFE -o mplayer
mplayer.o mp_msg.o cpudetect.o codec-cfg.o cfgparser.o my_profile.o spudec.o
playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o
find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o unrarlib.o mixer.o
parser-mpcmd.o libvo/libvo.a libao2/libao2.a libmpcodecs/libmpcodecs.a
mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a libaf/libaf.a
libmpdemux/libmpdemux.a input/libinput.a postproc/libpostproc.a
postproc/libswscale.a linux/libosdep.a libavcodec/libavcodec.a
/Users/jandevera/Desktop/libs/libmad.a -lz
-L/Users/jandevera/Desktop/sdl/lib
/Users/jandevera/Desktop/libs/libSDLmain.a
/Users/jandevera/Desktop/libs/libSDL.a -framework OpenGL -framework AGL
-framework Cocoa -framework Carbon -framework QuickTime -i -pass-exit-codes
ld: Undefined symbols:
_SDL_JoystickUpdate
_SDL_numjoysticks
_SDL_JoystickInit
_SDL_JoystickQuit

Please Help…

Devros

Looks like your libs don’t have the SDL Joystick code in them. Another
way to achieve your result would be to link using -framework SDL. After
it builds, open the contents of your app bundle and make a folder called
"Frameworks" without the quotes in Contents and put the SDL.framework
into that folder. This allows the end user to run the application without
having SDL installed, but still allows you to link against the framework
in a traditional manner.

-Lucas Newman

Im try compile mplayer with static libaries
And mplayer wrote this on end compilation

sudo gcc -O4 -pipe -ffast-math -fomit-frame-pointer -Wall -no-cpp-precomp
-DSYS_DARWIN -Ilibmpdemux -Iloader -Ilibvo
-I/Users/jandevera/Desktop/sdl/include/SDL -D_THREAD_SAFE -o mplayer
mplayer.o mp_msg.o cpudetect.o codec-cfg.o cfgparser.o my_profile.o
spudec.o
playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o
find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o unrarlib.o
mixer.o
parser-mpcmd.o libvo/libvo.a libao2/libao2.a libmpcodecs/libmpcodecs.a
mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a libaf/libaf.a
libmpdemux/libmpdemux.a input/libinput.a postproc/libpostproc.a
postproc/libswscale.a linux/libosdep.a libavcodec/libavcodec.a
/Users/jandevera/Desktop/libs/libmad.a -lz
-L/Users/jandevera/Desktop/sdl/lib
/Users/jandevera/Desktop/libs/libSDLmain.a
/Users/jandevera/Desktop/libs/libSDL.a -framework OpenGL -framework AGL
-framework Cocoa -framework Carbon -framework QuickTime -i
-pass-exit-codes
ld: Undefined symbols:
_SDL_JoystickUpdate
_SDL_numjoysticks
_SDL_JoystickInit
_SDL_JoystickQuit

Please Help…

Devros

Im try compile mplayer with static libaries
And mplayer wrote this on end compilation

sudo gcc -O4 -pipe -ffast-math -fomit-frame-pointer -Wall
-no-cpp-precomp
-DSYS_DARWIN -Ilibmpdemux -Iloader -Ilibvo
-I/Users/jandevera/Desktop/sdl/include/SDL -D_THREAD_SAFE -o mplayer
mplayer.o mp_msg.o cpudetect.o codec-cfg.o cfgparser.o my_profile.o
spudec.o
playtree.o playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o
find_sub.o m_config.o m_option.o parser-cfg.o m_struct.o unrarlib.o
mixer.o
parser-mpcmd.o libvo/libvo.a libao2/libao2.a libmpcodecs/libmpcodecs.a
mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a libaf/libaf.a
libmpdemux/libmpdemux.a input/libinput.a postproc/libpostproc.a
postproc/libswscale.a linux/libosdep.a libavcodec/libavcodec.a
/Users/jandevera/Desktop/libs/libmad.a -lz
-L/Users/jandevera/Desktop/sdl/lib
/Users/jandevera/Desktop/libs/libSDLmain.a
/Users/jandevera/Desktop/libs/libSDL.a -framework OpenGL -framework AGL
-framework Cocoa -framework Carbon -framework QuickTime -i
-pass-exit-codes
ld: Undefined symbols:
_SDL_JoystickUpdate
_SDL_numjoysticks
_SDL_JoystickInit
_SDL_JoystickQuit

The build command looks a bit fishy.

When you compile SDL, use a --prefix of where you want the libs to go,
for example:

./configure --prefix=/Users/jandevera/Desktop
make install

Then use this to configure mplayerOn Sunday, November 24, 2002, at 04:11 PM, devros wrote:

/configure --prefix=/Users/jandevera/Desktop