[FFmpeg-user] msvc build ffmpeg with x264 linked error: unresolved _x264_build_depth

Роман Савченко gmstima at gmail.com
Mon Aug 19 17:16:24 CEST 2013


Hi all,

I try to compile ffmpeg with x264 support on windows. My steps:

1. Download and compile yasm. From msys:
    ./configure --prefix=../build && make && make install
2. Download and compile x264. From msys:
    ./configure --prefix=../build --enable-shared --disable-cli
--enable-win32thread --Wl,--output-def=libx264.def
    make && make install
3. From msvc command line lib /machine:i386 /def:libx264.def
/out:libx264.lib
4. Download c99-to-c99 wrapper(was added to PATH) and inttypes (was puted
to build/include).
5. Run msys form msvc command line. Switch linker (mv /usr/bin/link.exe
/usr/bin/mingw_link.exe).
6. Run:
   ./configure --prefix=../build --toolchain=msvc --extra-cflags="-I
../build/include" --extra-ldflags="/LIBPATH:../build/lib" --enable-gpl
--enable-libx264 --enable-memalign-hack --enable-shared
    (configure is ok)
   make
   unresolved external: libx264.o: __x264_bit_depth_


Can anyone help with this?

Best Regards,
R. Savchenko.


More information about the ffmpeg-user mailing list