[FFmpeg-trac] #282(build system:open): undefined reference to `_avdevice_register_all'
FFmpeg
trac at avcodec.org
Tue Jun 21 05:10:35 CEST 2011
#282: undefined reference to `_avdevice_register_all'
-------------------------------------------------+-------------------------
Reporter: KSHawkEye | Owner: michael
Type: defect | Status: open
Priority: critical | Component: build
Version: git | system
Keywords: undefined reference | Resolution:
avdevice_register_all | Blocked By:
Blocking: | Reproduced: 0
Analyzed: 0 |
-------------------------------------------------+-------------------------
Comment (by KSHawkEye):
Here are the differences in the compile flags:
Working:
i686-w64-mingw32-gcc -Llibavcodec -Llibavdevice -Llibavfilter
-Llibavformat -Llibavutil -Llibpostproc -Llibswscale
-L/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib -Wl,--as-
needed -Wl,--warn-common -Wl,-rpath-link,libpostproc -Wl,-rpath-
link,libswscale -Wl,-rpath-link,libavfilter -Wl,-rpath-link,libavdevice
-Wl,-rpath-link,libavformat -Wl,-rpath-link,libavcodec -Wl,-rpath-
link,libavutil -o ffmpeg.exe ffmpeg.o cmdutils.o -lavdevice -lavfilter
-lavformat -lavcodec -lswscale -lavutil -lavicap32 -lws2_32 -lm
-lpthreadGC2 -lpsapi
Not working:
i686-w64-mingw32-gcc -Llibavcodec -Llibavdevice -Llibavfilter
-Llibavformat -Llibavutil -Llibpostproc -Llibswscale
-L/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib -Wl,--as-
needed -Wl,--warn-common -Wl,-rpath-link,libpostproc -Wl,-rpath-
link,libswscale -Wl,-rpath-link,libavfilter -Wl,-rpath-link,libavdevice
-Wl,-rpath-link,libavformat -Wl,-rpath-link,libavcodec -Wl,-rpath-
link,libavutil -o ffmpeg_g.exe ffmpeg.o cmdutils.o -lavdevice -lavfilter
-lavformat -lavcodec -lswscale -lavutil -lavicap32 -lpsapi -lole32
-lstrmiids -luuid -lws2_32
-L/home/kyle/software/ffmpeg/packages/sdl/sdl-1.2.14-win32/lib -lmingw32
-lSDLmain -lSDL -lm -luser32 -lgdi32 -lwinmm -ldxguid -lm -lpthreadGC2
-lpsapi
As you can see there are a few minor differences, though trying the
working one on the non working build I still get the same error.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/282#comment:15>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list