Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install ffmpeg[x264,x265]:x64-windows
Failure logs
build-x64-windows-rel-out.log
=== CONFIGURING ===
ERROR: libx264 not found
ffbuild/config.log
./ffconf.ZXIXhMy3/test.c(4): warning C4311: 'type cast': pointer truncation from 'int (__cdecl *)(x264_t *,x264_nal_t **,int *,x264_picture_t *,x264_picture_t *)' to 'long'
/cygdrive/d/vcpkg/buildtrees/ffmpeg/src/n4.2-2f6d2343f6.clean/compat/windows/mslink -nologo -I/cygdrive/d/vcpkg/installed/x64-windows/debug/lib/pkgconfig/../../../include -libpath:/cygdrive/d/vcpkg/installed/x64-windows/debug/lib/pkgconfig/../../lib -out:./ffconf.ZXIXhMy3/test.exe ./ffconf.ZXIXhMy3/test.o libx264.lib
LINK : warning LNK4044: unrecognized option '/ID:/vcpkg/installed/x64-windows/debug/lib/pkgconfig/../../../include'; ignored
LINK : fatal error LNK1181: cannot open input file 'libx264.lib'
require libx264 stdint.h x264.h x264_encoder_encode -lx264 -lm -ldl
check_lib libx264 stdint.h x264.h x264_encoder_encode -lx264 -lm -ldl
check_func_headers stdint.h x264.h x264_encoder_encode -lx264 -lm -ldl
test_ld cc -lx264 -lm -ldl
test_cc
BEGIN ./ffconf.ZXIXhMy3/test.c
1 #include <stdint.h>
2 #include <x264.h>
3 #include <stdint.h>
4 long check_x264_encoder_encode(void) { return (long) x264_encoder_encode; }
5 int main(void) { int ret = 0;
6 ret |= ((intptr_t)check_x264_encoder_encode) & 0xFFFF;
7 return ret; }
END ./ffconf.ZXIXhMy3/test.c
cl.exe -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -D_WIN32_WINNT=0x0600 -DPIC -nologo -DHAVE_UNISTD_H=0 -MDd -c -Fo./ffconf.ZXIXhMy3/test.o ./ffconf.ZXIXhMy3/test.c
test.c
./ffconf.ZXIXhMy3/test.c(4): warning C4311: 'type cast': pointer truncation from 'int (__cdecl *)(x264_t *,x264_nal_t **,int *,x264_picture_t *,x264_picture_t *)' to 'long'
/cygdrive/d/vcpkg/buildtrees/ffmpeg/src/n4.2-2f6d2343f6.clean/compat/windows/mslink -nologo -out:./ffconf.ZXIXhMy3/test.exe ./ffconf.ZXIXhMy3/test.o libx264.lib dl.lib
LINK : fatal error LNK1181: cannot open input file 'libx264.lib'
ERROR: libx264 not found
Additional context
It looks like the configuration tool is searching for libx264.lib but only x264.lib is installed.
Also reported here: #12896
Great to finally see a fix for this!
This issue has already be fixed in the PR #13450, so it is better to wait that PR to be merged
Ah yup, good catch.
Ah yup, good catch.
It is better to wait for that PR, I noticed that the two PR are conflicting. 馃槃