Testing cameraLensOffsetExample fails, cairo.h not found on Manjaro LInux


#1

trying to test the examples, I get the following error (on Manjaro linux):

Compiling cameraLensOffsetExample for Debug
make[1]: Entering directory ‘/home/gust/Software/openFrameworks/examples/3d/cameraLensOffsetExample’
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk±3.0 libmpg123
with PKG_CONFIG_LIBDIR=
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing opencv.pc' to the PKG_CONFIG_PATH environment variable Package 'opencv', required by 'virtual:world', not found Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containingopencv.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘opencv’, required by ‘virtual:world’, not found
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing opencv.pc' to the PKG_CONFIG_PATH environment variable Package 'opencv', required by 'virtual:world', not found Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containingopencv.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘opencv’, required by ‘virtual:world’, not found
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing opencv.pc' to the PKG_CONFIG_PATH environment variable Package 'opencv', required by 'virtual:world', not found cat: obj/linux64/Debug/.compiler_flags: No such file or directory Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containingopencv.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘opencv’, required by ‘virtual:world’, not found
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘opencv’, required by ‘virtual:world’, not found
Compiling /home/gust/Software/openFrameworks/examples/3d/cameraLensOffsetExample/src/ofApp.cpp
g++ -c -g3 -DDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK -DOF_USING_MPG123 -I/home/gust/Software/openFrameworks/libs/fmodex/include -I/home/gust/Software/openFrameworks/libs/glm/include -I/home/gust/Software/openFrameworks/libs/glm/include/glm -I/home/gust/Software/openFrameworks/libs/glm/include/glm/simd -I/home/gust/Software/openFrameworks/libs/glm/include/glm/detail -I/home/gust/Software/openFrameworks/libs/glm/include/glm/gtx -I/home/gust/Software/openFrameworks/libs/glm/include/glm/gtc -I/home/gust/Software/openFrameworks/libs/json/include -I/home/gust/Software/openFrameworks/libs/kiss/include -I/home/gust/Software/openFrameworks/libs/tess2/include -I/home/gust/Software/openFrameworks/libs/utf8/include -I/home/gust/Software/openFrameworks/libs/utf8/include/utf8 -I/home/gust/Software/openFrameworks/libs/openFrameworks -I/home/gust/Software/openFrameworks/libs/openFrameworks/types -I/home/gust/Software/openFrameworks/libs/openFrameworks/events -I/home/gust/Software/openFrameworks/libs/openFrameworks/utils -I/home/gust/Software/openFrameworks/libs/openFrameworks/math -I/home/gust/Software/openFrameworks/libs/openFrameworks/3d -I/home/gust/Software/openFrameworks/libs/openFrameworks/video -I/home/gust/Software/openFrameworks/libs/openFrameworks/gl -I/home/gust/Software/openFrameworks/libs/openFrameworks/app -I/home/gust/Software/openFrameworks/libs/openFrameworks/graphics -I/home/gust/Software/openFrameworks/libs/openFrameworks/communication -I/home/gust/Software/openFrameworks/libs/openFrameworks/sound -I/home/gust/Software/openFrameworks/examples/3d/cameraLensOffsetExample/src -I/home/gust/Software/openFrameworks/addons/ofxOpenCv/src -MMD -MP -MF obj/linux64/Debug/src/ofApp.d -MT obj/linux64/Debug/src/ofApp.o -o obj/linux64/Debug/src/ofApp.o -c /home/gust/Software/openFrameworks/examples/3d/cameraLensOffsetExample/src/ofApp.cpp
In file included from /home/gust/Software/openFrameworks/libs/openFrameworks/ofMain.h:65,
from /home/gust/Software/openFrameworks/examples/3d/cameraLensOffsetExample/src/ofApp.h:3,
from /home/gust/Software/openFrameworks/examples/3d/cameraLensOffsetExample/src/ofApp.cpp:1:
/home/gust/Software/openFrameworks/libs/openFrameworks/graphics/ofCairoRenderer.h:4:10: fatal error: cairo.h: No such file or directory
#include “cairo.h”
^~~~~~~~~
compilation terminated.
make[1]: *** [/home/gust/Software/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:223: obj/linux64/Debug/src/ofApp.o] Error 1
make[1]: Leaving directory ‘/home/gust/Software/openFrameworks/examples/3d/cameraLensOffsetExample’
make: *** [/home/gust/Software/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:146: Debug] Error 2
error compiling cameraLensOffsetExample

Also, not sure if this is relevant, but I have ardour installed on my system as well (requires a customized version of cairo), but I don’t fully understand this error.