[MPlayer-users] Prob with sdl
Paul-Kenji Cahier
pkc at F1-Photo.com
Wed Jan 21 17:52:30 CET 2004
Hello all,
i'm desperatly trying to compile mplayer with sdl under mingw
it comes out with the same prob whatever sdl version i use:
sdl compiles files, i make install it and it's all fine
i then get mplayer latest cvs
i do a ./configure which succeeds
then go for a make:
make[1]: Leaving directory `/home/DeathWolf/main'
gcc -c -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-Ilibmpdemux -Iloader -Ilibvo -I/usr/local/include/SDL -Dmain=SDL_main -o mplayer.o mplayer.c
gcc -c -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-Ilibmpdemux -Iloader -Ilibvo -I/usr/local/include/SDL -Dmain=SDL_main -o mp_msg.o mp_msg.c
gcc -c -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-Ilibmpdemux -Iloader -Ilibvo -I/usr/local/include/SDL -Dmain=SDL_main -o cpudetect.o cpudetect.c
gcc -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-Ilibmpdemux -Iloader -Ilibvo -I/usr/local/include/SDL -Dmain=SDL_main -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML
c:/windows/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain at 16'
make: *** [codec-cfg] Error 1
i found a few references on this error, especially that it was caused
by a wrong lib switches order so i did this:
<17:44:03> DeathWolf at LAFIEL:~/main$ sdl-config --libs
-L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows
got these switches and did:
<17:44:35> DeathWolf at LAFIEL:~/main$ gcc -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo
-I/usr/local/include/SDL -o codec-cfg -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -Dmain=SDL_main
-g codec-cfg.c mp_msg.c -DCODECS2HTML
and oh wonder if compiled!
i thought i was saved and did make to finish compile:
<17:44:52> DeathWolf at LAFIEL:~/main$ make
./codec-cfg ./etc/codecs.conf > codecs.conf.h
gcc -c -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo
-I/usr/local/include/SDL -Dmain=SDL_main -o codec-cfg.o codec-cfg.c
codec-cfg.c: In function `parse_codec_cfg':
codec-cfg.c:501: `builtin_video_codecs' undeclared (first use in this function)
codec-cfg.c:501: (Each undeclared identifier is reported only once
codec-cfg.c:501: for each function it appears in.)
codec-cfg.c:502: `builtin_audio_codecs' undeclared (first use in this function)
make: *** [codec-cfg.o] Error 1
seems like the prob was only temp:/
tried:
<17:50:20> DeathWolf at LAFIEL:~/main$ make codec-cfg
gcc -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo
-I/usr/local/include/SDL -Dmain=SDL_main -g codec-cfg.c mp_msg.c
-o codec-cfg -DCODECS2HTML
c:/windows/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../
../libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain at 16'
make: *** [codec-cfg] Error 1
<17:50:33> DeathWolf at LAFIEL:~/main$ make codecs.conf.h
gcc -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo
-I/usr/local/include/SDL -Dmain=SDL_main -g codec-cfg.c mp_msg.c
-o codec-cfg -DCODECS2HTML
c:/windows/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../
../libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain at 16'
make: *** [codec-cfg] Error 1
so if anyone knows how to properly compile it, please tell me
Thanx,
Paul-Kenji Cahier
More information about the MPlayer-users
mailing list