Opened 13 years ago
Closed 13 years ago
#460 closed defect (invalid)
multiple definition of `_SDL_GetError'
Reported by: | Kyle | Owned by: | |
---|---|---|---|
Priority: | critical | Component: | build system |
Version: | git-master | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
When trying to compile the latest FFmpeg with MinGW-w64 with SDL support I get:
/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib/libSDL.a(SDL_error.o):SDL_error.c:(.text+0x477):
multiple definition of `_SDL_GetError'
libavdevice/libavdevice.dll.a(d000060.o):(.text+0x0): first defined here
/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib/libSDL.a(SDL_thread.o):SDL_thread.c:(.text+0x2c1):
multiple definition of `_SDL_CreateThread'
libavdevice/libavdevice.dll.a(d000030.o):(.text+0x0): first defined here
/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib/libSDL.a(SDL_thread.o):SDL_thread.c:(.text+0x411):
multiple definition of `_SDL_WaitThread'
libavdevice/libavdevice.dll.a(d000168.o):(.text+0x0): first defined here
More information about this bug can be found at: http://ffmpeg.org/pipermail/ffmpeg-user/2011-September/002295.html along with a possible solution found at: http://ffmpeg.org/pipermail/ffmpeg-user/2011-September/002296.html
I gave this bug critical priority because it is effecting the build processes.
Change History (5)
comment:1 by , 13 years ago
Status: | new → open |
---|---|
Version: | git → git-master |
follow-up: 3 comment:2 by , 13 years ago
PS: I believe the dxva2 test in configure does not work correctly, I will send a patch.
comment:3 by , 13 years ago
Your building with mingw(mingw32) on a native compile system (on Windows). I'm cross compile (on Linux) with a different package, mingw-w64.
comment:4 by , 13 years ago
This issue can be resolved by compiling SDL with -DDECLSPEC= added to the CFLAGS.
Bug resolved.
What works fine for me is:
Building ffmpeg and ffplay (etc.) with shared libraries for win64 on msys with SDL support. If this is not what you wanted to achieve, please explain.
Since I have no idea what you tried (to achieve mentioned goal), I will try to sum up what I did (already having a working msys installation that allows to build 32 bit Win32 applications with mingw32):
What works is ./ffmpeg -i tests/lena.pnm out.jpg && ./ffplay out.jpg
This is on Vista 64, I believe the only thing I ever installed except msys, mingw32, mingw64 and a 32bit SDL binary is yasm.exe in /bin. I have neither pkg-config nor lib.exe.