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
Build fails on Manjaro/Arch (and other systems using OpenCV with OpenEXR 3.2+) if libdeflate isn't explicitly linked #1248
Comments
Can you copy/paste the output of the build into a file and add it to this issue so i can see the real compile error which should have been thrown somewhere before it stopped? |
All I saw leading up to the Makefile error was warnings, not build errors, but here's the entire log. |
Oh, also, OpenToonz has been building fine without any of these errors. It's just Tahoma2D that's having this trouble. |
From the log:
|
Sometimes I could find that error (usually at the end), but other times it got lost in all the other output so I wasn't sure if it was consistent. But when I tried downgrading libdeflate from 1.19 to 1.18 (that was the only change I could think of on my system in the time that it stopped compiling) that seemingly went away but the makefile error was still there. |
Nevermind, the error is still there even if I downgrade the version (after deleting the build directory and trying again) >.< |
It seems like |
What is As for why it can't find libdeflate? Maybe add the location of the libarary to the library path? May need to add |
Openexr is mostly a dependency for graphics programs on my system.
It seems to be finding libdeflate just fine, since it's detected in the configure step. If I downgrade openexr and remove libdeflate then it stops in the configure process because it can't find it, so that doesn't seem to be the problem. How would I add |
What version of opencv are you using? Does that require openexr? Did you install that for T2D or was that already there? You can edit the toonz\sources\CMakeLists.txt. There is a section for CMAKE_C_FLAGS and CMAKE_CXX_FLAGS for Linux builds. Might also be able to add it as an environment variable which would add it. |
I'm using opencv 4.8.1, and it does require openexr. Both of them were already installed for other things long before Tahoma2D, but I wouldn't be sure what in particular (probably one of the graphics programs I mentioned). I found Tahoma2D more recently (maybe a year ago), so I wouldn't have installed openexr specifically for Tahoma2D. Okay, explicitly linking libdeflate seems to have fixed it! |
Hello, I'm the maintainer of the AUR pkgbuilds of tahoma2d and tahoma2d-git, in addition to the libdeflate problem I have an issue with libwebp With libwebp I have that problem since earlier this year, v is 1.3.2, its build option can be seen here https://gitlab.archlinux.org/archlinux/packaging/packages/libwebp/-/blob/main/PKGBUILD?ref_type=heads
Any more info I can provide? |
@FabioLolix This is likely a similiar situation as the libdeflate issue. If you are not compiling OpenCV as part of the build process, that is likely the reason for this. As part of OpenCV building for T2D, I compile with the following options:
I build OpenCV, in part to ensure LGPL compliance when packaging, and also to avoid the compile errors. |
Bug Description
When I compile Tahoma2D, following the Linux build instructions either as is or with a modified PKGBUILD, it always stops around 62% after it says it finished building something, e.g.
toonzqt
ortnzstdfx
, with the errormake: *** [Makefile:136: all] Error 2
. If I try compiling again a few times, somehow it seems to get past that part and I can even get to 100% (after it says it finished building theTahoma2D
executable) but still have this error. AddingLANG=C
andVERBOSE=1
doesn't give any more helpful/meaningful output.This has been a problem since around August or September, and I don't know what changed.
Edit: Possibly something to do with
openexr
updating from 3.1.11 to 3.2.0 and installinglibdeflate
as a dependency (has a linker error, usually further up around 42% or 43%, about undefined references inlibimage
tolibdeflate
).Steps to reproduce
Relevant logs/screenshots
Software Version
Other (Specify below)
Software Version Information
Commit 919d538 (or whichever is latest at the time, since I try again with each commit)
Operating System
Manjaro with Linux kernel 6.5.7
Graphics Card
No response
Drawing Tablet
No response
The text was updated successfully, but these errors were encountered: