[FFmpeg-trac] #460(build system:open): multiple definition of `_SDL_GetError'

FFmpeg trac at avcodec.org
Mon Sep 12 18:31:10 CEST 2011


#460: multiple definition of `_SDL_GetError'
-------------------------------------+-------------------------------------
             Reporter:  KSHawkEye    |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  critical     |                Component:  build
              Version:  git-master   |  system
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * status:  new => open
 * version:  git => git-master


Comment:

 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):
 * Installed MinGW64 into C:\mingw64
 * Added a symlink from /c/mingw64/bin/x86_64-w64-mingw32-gcc.exe to
 /c/mingw64/bin/gcc.exe (effectively copying the file, afaict the gcc
 binary in /c/mingw64/x86_64-w64-mingw32/bin does not work since gcc
 expects not to be copied in another directory than the installation
 directory)
 * Added /c/mingw64/bin and /c/mingw64/x86_64-w64-mingw32/bin (in his
 order!) in front of my PATH
 * Downloaded SDL 1.2.14, untared it and configured with
 --prefix=/c/mingw64
 * Removed build/version.o from the Makefile (windres seems unable to
 produce a win64 file)
 * Built and installed SDL
 * Cloned latest FFmpeg git
 * Configured with --enable-shared --disable-static, built and tested it
 from both within msys and the windows cmd shell setting an appropriate
 PATH in both cases. (Also successfully tested ./configure, i.e. static
 compilation.)

 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.

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/460#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list