-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libheif 1.14.0 fails to build for MinGW #713
Comments
I had a look at your log output. In this line:
I find this path: |
This is not an issue, those are just temporary paths crated by the build system... |
I had to add
in order to get it to link all the symbols. Now I'm running into the same problem w/ the rav1e plugin... It seems since switching SVT-AV1 and rav1e to plugins, there are quite a few more sources that need to be added. Or one has to also build a static libheif (the default on MSYS2 is shared), and link that in for the plugins. |
Ok, but I still think that it might be a problem that I access sources from a parent directory with '..' in the plugins/CMakeLists.txt |
As mentioned, that's not a problem here, just CMake internals... |
Afaict, that is how cmake works. And iiuc, the error message is not about the object file not being found. |
Nope, the units are just plain missing (if the intention is to build in statically), or shared |
It's because these codecs are now compiled as independent plugins. But since they still share some code with libheif, some of the libheif core code also has to be included when compiling the plugin DLL. BTW: dynamic plugins are not yet supported on Windows. Thus, it doesn't make much sense to compile them as DLLs. |
Can you please do platform detection and set appropriate defaults then? Or have them as opt-in rather than opt-out if they're not working everywhere? Update the release notes? So RAV1E, which was available as on option until 1.13.0, has to now be removed on Windows? |
rav1e still works, but has to be compiled into libheif as before. |
Ok, |
With the above change, it should now compile with the default settings. |
Thanks, confirmed working as well, just perhaps missing some optional polish, as still says early:
but then, correctly later:
I'll close anyway, with the unused variable PR above and this commit, it now builds cleanly in all MSYS2 environments. |
Up until 1.14.0, the build worked pretty much out of the box, but now it fails, see the log here: https://github.com/msys2/MINGW-packages/actions/runs/3473745090/jobs/5806121808#step:11:386
Major: missing symbols when linking the new
libheif-svtenc.dll
... and many more
Minor: unused variable (
-Werror=unused-variable
is default on MSYS2)The text was updated successfully, but these errors were encountered: