m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.49k stars 257 forks source link

ffmpeg: lensfun not found using pkg-config #2571

Closed LigH-de closed 5 months ago

LigH-de commented 6 months ago

liblensfun does exist, lensfun.pc exists too. Apparently, just compiling the configure test fails.

logs.zip

require_pkg_config liblensfun lensfun lensfun.h lf_db_new
check_pkg_config liblensfun lensfun lensfun.h lf_db_new
test_pkg_config liblensfun lensfun lensfun.h lf_db_new
pkgconf --exists --print-errors lensfun
check_func_headers lensfun.h lf_db_new -IG:/MABS/local32/include -IG:/MABS/local32/include/lensfun -IG:/MABS/msys64/mingw32/include/glib-2.0 -IG:/MABS/msys64/mingw32/lib/glib-2.0/include -IG:/MABS/msys64/mingw32/include -LG:/MABS/local32/lib -llensfun -lstdc++ -LG:/MABS/msys64/mingw32/lib -lglib-2.0 -lintl -liconv -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -lpcre2-8
test_ld cc -IG:/MABS/local32/include -IG:/MABS/local32/include/lensfun -IG:/MABS/msys64/mingw32/include/glib-2.0 -IG:/MABS/msys64/mingw32/lib/glib-2.0/include -IG:/MABS/msys64/mingw32/include -LG:/MABS/local32/lib -llensfun -lstdc++ -LG:/MABS/msys64/mingw32/lib -lglib-2.0 -lintl -liconv -lws2_32 -lole32 -lwinmm -lshlwapi -luuid -lm -lpcre2-8
test_cc -IG:/MABS/local32/include -IG:/MABS/local32/include/lensfun -IG:/MABS/msys64/mingw32/include/glib-2.0 -IG:/MABS/msys64/mingw32/lib/glib-2.0/include -IG:/MABS/msys64/mingw32/include -LG:/MABS/local32/lib -LG:/MABS/msys64/mingw32/lib
BEGIN /tmp/ffconf.RGdHiXqK/test.c
    1   #include <lensfun.h>
    2   #include <stdint.h>
    3   long check_lf_db_new(void) { return (long) lf_db_new; }
    4   int main(void) { int ret = 0;
    5    ret |= ((intptr_t)check_lf_db_new) & 0xFFFF;
    6   return ret; }
END /tmp/ffconf.RGdHiXqK/test.c
ccache gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DWIN32_LEAN_AND_MEAN -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1 -D__printf__=__gnu_printf__ -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1 -mthreads -Wno-int-conversion -DLIBTWOLAME_STATIC -DCACA_STATIC -DMODPLUG_STATIC -DCHROMAPRINT_NODLL -DZMQ_STATIC -DLIBXML_STATIC -DKVZ_STATIC_LIB -DAL_LIBTYPE_STATIC -IG:/MABS/local32/include -IG:/MABS/local32/include/AL -std=c11 -fomit-frame-pointer -IG:/MABS/local32/include -pthread -IG:/MABS/msys64/mingw32/include -I/mingw32/include -IG:/MABS/local32/include -IG:/MABS/local32/include -IG:/MABS/local32/include/libpng16 -IG:/MABS/msys64/mingw32/include -IG:/MABS/local32/include -IG:/MABS/msys64/mingw32/include -IG:/MABS/local32/include/harfbuzz -IG:/MABS/local32/include/fribidi -DFRIBIDI_LIB_STATIC -IG:/MABS/local32/include/freetype2 -IG:/MABS/local32/include -IG:/MABS/local32/include/libxml2 -DLIBXML_STATIC -IG:/MABS/msys64/mingw32/include -DLZMA_API_STATIC -IG:/MABS/local32/include/bs2b -IG:/MABS/msys64/mingw32/include -IG:/MABS/local32/include -IG:/MABS/local32/include -IG:/MABS/local32/include -IG:/MABS/local32/include/freetype2 -IG:/MABS/msys64/mingw32/include -IG:/MABS/local32/include/freetype2 -IG:/MABS/local32/include/fribidi -DFRIBIDI_LIB_STATIC -IG:/MABS/local32/include -IG:/MABS/local32/include -DHWY_STATIC_DEFINE -IG:/MABS/msys64/mingw32/include -DJXL_STATIC_DEFINE -DJXL_CMS_STATIC_DEFINE -IG:/MABS/local32/include -DJXL_THREADS_STATIC_DEFINE -IG:/MABS/local32/include -IG:/MABS/local32/include -IG:/MABS/local32/include/lensfun -IG:/MABS/msys64/mingw32/include/glib-2.0 -IG:/MABS/msys64/mingw32/lib/glib-2.0/include -IG:/MABS/msys64/mingw32/include -LG:/MABS/local32/lib -LG:/MABS/msys64/mingw32/lib -c -o /tmp/ffconf.RGdHiXqK/test.o /tmp/ffconf.RGdHiXqK/test.c
G:/MABS/msys64/tmp/ffconf.RGdHiXqK/test.c: In function 'check_lf_db_new':
G:/MABS/msys64/tmp/ffconf.RGdHiXqK/test.c:3:44: error: 'lf_db_new' undeclared (first use in this function)
    3 | long check_lf_db_new(void) { return (long) lf_db_new; }
      |                                            ^~~~~~~~~
G:/MABS/msys64/tmp/ffconf.RGdHiXqK/test.c:3:44: note: each undeclared identifier is reported only once for each function it appears in
ERROR: lensfun not found using pkg-config
GyanD commented 6 months ago

Should be fixed now.

1480c1 commented 5 months ago

https://github.com/FFmpeg/FFmpeg/commit/e1c1dc8347f13104bc21e4100fcf4d4dddf5e5d8