libx264 ffmpeg woe

cross compiling

 

LD ffplay_g.exe

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld: libavcodec/libavcodec.a(libx264.o):libx264.c:(.text.unlikely+0xd0a): undefined reference to `x264_encoder_open_152′

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld: libavcodec/libavcodec.a(libx264.o):libx264.c:(.text.unlikely+0xd0a): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `x264_encoder_open_152′

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld: libavcodec/libavcodec.a(libx264.o):libx264.c:(.rdata$.refptr.x264_bit_depth[.refptr.x264_bit_depth]+0x0): undefined reference to `x264_bit_depth’

collect2: error: ld returned 1 exit status

make: *** [ffmpeg_g.exe] Error 1

make: *** Waiting for unfinished jobs….

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld: libavcodec/libavcodec.a(libx264.o):libx264.c:(.text.unlikely+0xd0a): undefined reference to `x264_encoder_open_152′

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld: libavcodec/libavcodec.a(libx264.o):libx264.c:(.text.unlikely+0xd0a): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `x264_encoder_open_152′

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld: libavcodec/libavcodec.a(libx264.o):libx264.c:(.rdata$.refptr.x264_bit_depth[.refptr.x264_bit_depth]+0x0): undefined reference to `x264_bit_depth’

collect2: error: ld returned 1 exit status

 

meant ffmpeg is accidentally somehow using your /usr/local/include x264, but linking against your cross compiled one [the right one…hmm…

check ffbuild/config.log to see some details there…

3 thoughts on “libx264 ffmpeg woe”

  1. ENABLE_STATIC_RUNTIME

    — Build files have been written to: /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/frei0r_git

    Making /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/frei0r_git as $ PATH=/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin:$PATH make -j 2

    Scanning dependencies of target facedetect
    Scanning dependencies of target facebl0r
    [ 0%] Building CXX object src/filter/facebl0r/CMakeFiles/facebl0r.dir/facebl0r.cpp.obj
    [ 0%] Building CXX object src/filter/facedetect/CMakeFiles/facedetect.dir/facedetect.cpp.obj
    In file included from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/ext/string_conversions.h:41,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/bits/basic_string.h:6391,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/string:52,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/stdexcept:39,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/array:39,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/opencv2/core/cvdef.h:560,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/opencv2/core.hpp:52,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/opencv2/opencv.hpp:52,
    from /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/frei0r_git/src/filter/facebl0r/facebl0r.cpp:21:
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
    #include_next
    ^~~~~~~~~~
    compilation terminated.
    In file included from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/ext/string_conversions.h:41,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/bits/basic_string.h:6391,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/string:52,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/stdexcept:39,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/array:39,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/opencv2/core/cvdef.h:560,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/opencv2/core.hpp:52,
    from /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/opencv2/opencv.hpp:52,
    from /Users/rdp/ffmpeg-windows-build-helpers/sandbox/win32/frei0r_git/src/filter/facedetect/facedetect.cpp:23:
    /Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
    #include_next

    ^~~~~~~~~~
    compilation terminated.
    make[2]: *** [src/filter/facebl0r/CMakeFiles/facebl0r.dir/facebl0r.cpp.obj] Error 1
    make[1]: *** [src/filter/facebl0r/CMakeFiles/facebl0r.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs….
    make[2]: *** [src/filter/facedetect/CMakeFiles/facedetect.dir/facedetect.cpp.obj] Error 1
    make[1]: *** [src/filter/facedetect/CMakeFiles/facedetect.dir/all] Error 2
    make: *** [all] Error 2
    Rogers-MacBook:ffmpeg-windows-build-helpers rdp$

    work around “disable open cv for now”

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.