Closed alexmercerind closed 1 year ago
After linking with -v
flag, I'm getting this undefined reference:
2023-04-07T06:02:05.3572281Z COMPILER_PATH=/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/libexec/gcc/x86_64-w64-mingw32/12.2.1/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/libexec/gcc/x86_64-w64-mingw32/12.2.1/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/libexec/gcc/x86_64-w64-mingw32/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/12.2.1/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/12.2.1/../../../../x86_64-w64-mingw32/bin/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/libexec/gcc/x86_64-w64-mingw32/12.2.1/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/libexec/gcc/x86_64-w64-mingw32/12.2.1/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/libexec/gcc/x86_64-w64-mingw32/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/12.2.1/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/12.2.1/../../../../x86_64-w64-mingw32/bin/
2023-04-07T06:02:05.3578188Z LIBRARY_PATH=/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/12.2.1/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/12.2.1/../../../../x86_64-w64-mingw32/lib/../lib/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/mingw/lib/../lib/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/12.2.1/../../../../x86_64-w64-mingw32/lib/:/__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/mingw/lib/
2023-04-07T06:02:05.3580172Z COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fpic' '-fcf-protection=none' '-O3' '-v' '-pthread' '-mtune=generic' '-march=x86-64' '-fltrans' '-o' '/tmp/cc6nvmIq.ltrans12.ltrans.o' '-dumpdir' './mpv.ltrans12.ltrans.'
2023-04-07T06:02:07.6517700Z /__w/libmpv-win32-video-build/libmpv-win32-video-build/mpv-winbuild-cmake/build64/install/lib/gcc/x86_64-w64-mingw32/12.2.1/../../../../x86_64-w64-mingw32/bin/ld: /tmp/cc6nvmIq.ltrans21.ltrans.o:<artificial>:(.text+0x10c5): undefined reference to `__imp_SetWindowTheme'
2023-04-07T06:02:09.9744644Z collect2: error: ld returned 1 exit status
I have to see what declaration is missing either directly or transitively.
It's some Win32 method which is used within libmpv after recent update for dynamic title bar (which isn't the cause). I made my setup very broken, had to start from scratch.
Thanks for awesome setup.
Hi!
I'm trying to get some minimal libmpv build which is small sized & just plays common formats. But there is some linking error at last stage of building mpv/libmpv-2.dll. Any way to find out which symbol is missing?
My configuration: https://github.com/media-kit/libmpv-win32-video-build/releases https://github.com/media-kit/libmpv-win32-cmake/tree/video
I have an audio-only configuration too (notice the size is considerably smaller): https://github.com/media-kit/libmpv-win32-audio-build/releases https://github.com/media-kit/libmpv-win32-cmake/tree/audio