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
cairo.h not found Arch Linux #6202
Comments
this seems to be a problem with the latest cairo packages, we are getting this error in the msys2 tests as well. can you post the output of |
This is it:
|
not sure what's going on, i0ve just tried with latest archlinux and everything works fine, i'm on gcc 8.2.1 so you probably just need to update |
Everything here is updated, and I have GCC 8.2 but I had changed the symlinks to gcc-7and g++-7 because CUDA 10 supports upto GCC 7. But since you say everything works fine....I will try with GCC 8.2. Did you try with the website package or the one from github??? |
website nightly |
I am facing the same errors with the 2019 nightly version from the website.
There are a few things which bothers me. First of all I want to make it clear that |
yes this is a problem with opencv 4 not being compatible with opencv 3 anymore, while we port the OF addons to make them compatible, i've compiled an archlinux pkg for opencv 3.4.4. You'll need to remove opencv 4 first then install this package:
That should solve the problem by now but not sure if the package will get updated when updating the system and changes in the standard library might break the package and need a recompile |
OK, I'll try this package. Coming to permanent fixes, even if I downgrade OpenCV from 4 to 3, is there any way to fix the Cairo problem? |
cairo is ok, it seems to fail to find it cause the whole command fails when opencv is not found but once you fix opencv it should find cairo without problem |
I have built OpenCV 3.4.5 from source and everything works like a charm now!!! The problem was with OpenCV 4 not being backwards compatible with OpenCV 3. Thank you for creating such an amazing library. I am closing this issue now. |
I'm having the same issue, however I'm on windows (msys2/mingw32) and when I try to install opencv 3.4.4, pacman says Update: |
You can try building OpenCV 3 from source (manually) using CMake. That's what worked for me. |
thanks, going to reopen though since this will become a problem in other distros as well any time soon so we need a more definitive fix |
Hello, |
@xseignard that must be something else, OF 0.10.1 should work fine in raspbian. have you run the install dependencies scripts? |
yes thanks! |
@arturoc I am facing the same issue with the nightly building version, it doesn't find cairo.h even though it is installed (checked: ls /usr/include/cairo) |
Hi! I got the same issue (I haven't use OF in a while). This is in Ubuntu 20.04 ....
frameworks/addons/ofxFaceTracker2/example-pose/src/main.cpp
In file included from /home/patricio/Desktop/openFrameworks/libs/openFrameworks/ofMain.h:65,
from /home/patricio/Desktop/openFrameworks/addons/ofxFaceTracker2/example-pose/src/main.cpp:1:
/home/patricio/Desktop/openFrameworks/libs/openFrameworks/graphics/ofCairoRenderer.h:4:10: fatal error: cairo.h: No such file or directory
4 | #include "cairo.h"
| ^~~~~~~~~
I do have Cairo install $ sudo apt install libcairo2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcairo2-dev is already the newest version (1.16.0-4ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Any idea? |
I'm getting the same. Did you get to solve this, @patriciogonzalezvivo?
and I also have Cairo installed:
|
I downloaded the nightly build for openframeworks from
linux64gcc6_nightly
The compilation of 3d/cameralensOffsetExample produces the following output:
The output of pkg-config is:
I am using GCC 7.4.1 compiler
The text was updated successfully, but these errors were encountered: