-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Cannot compile OpenJPEG decoder plugin #1134
Comments
Can you say which compiler you are using? Also, which OpenJPEG version do you have? |
Of course, sorry:
(from the cmake output; cmake is 3.27.7 and make is GNU Make 4.4.1). Is this the relevant OpenJPEG info?
|
That is a pretty new compiler, and could be part of the issue. Probably not the only problem though, from that list of warnings. For OpenJPEG, I was looking for what it is linking to. Possibly the entry in the CMakeCache.txt is the easiest way to see. Mine looks like:
Do you have something similar? |
Thanks, appreciate these quick responses! I have this in my CMakeCache.txt:
Which looks older than yours? Is this connected to the openjpeg libs installed? I notice the openjpeg lib is v1.5 (while the openjpeg2 lib is 2.5). Would it help to try compiling openjpeg from source first? |
libheif builds fine w/ this compiler in e.g. MSYS2 UCRT64 environment...
No need, but you somehow need to make sure the 2.5 version is used, not the 1.5 one... Can you uninstall all 1.5 packages, are they required by something? @bradh Maybe the CMake find procedure should explicitly check for the suitable version? |
It looks like you have two versions, and that cmake is picking up the older one. So I think its more that we need to make sure we pick up the right one. |
I think @donaldi Please test this before removing 1.5, would be interesting to know if that handles two installed versions. |
Thanks for your help, yes @kmilos I can confirm that just changing that line in CMakeLists.txt let the compilation go through to completion successfully, without removing the older package. Much appreciated! |
I'm trying to compile the libheif library from source on my fedora 39 machine. On both the latest tagged release and the master branch I run into this error:
I'm not sure what I'm doing wrong or how to fix it?
The text was updated successfully, but these errors were encountered: