Open vvzen opened 2 years ago
I am having the same issue on Arch Linux.
Yep, experiencing the same issue on Ubuntu. The issue is being caused because the function createWindowSurface()
is defined only for OSX and Windows, and not Linux. Looking into the Cairo.h
file, I could see that:
#if defined( CINDER_COCOA )
SurfaceQuartz createWindowSurface();
#elif defined( CINDER_MSW )
SurfaceGdi createWindowSurface();
#endif
Hi everyone!
A bit of a cmake noob here - so please forgive me if I am missed anything obvious.
I'm trying to compile the
CairoBasic
sample on macOS (10.14.6) using cmake (3.22.1). The build goes fine from the XCode project, but I can't manage to get it working via cmake - and I want to understand a bit more of how cmake works so that I can reuse the same knowledge when working under linux.I'm currently following the guide here: https://libcinder.org/docs/guides/cmake/cmake.html#building-your-application-with-cmake
This is what I get after I try to
make
:If i search around (
$ find ../../../ -name "Cairo.h"
) for that header file it appears to be in../../../blocks/Cairo/include/cinder/cairo/Cairo.h
. So I thought of addingblocks/Cairo/include
to theci_make_app
call, like this:If I do that, I get a linker error (after running
cmake ../proj/cmake
andmake
again from mybuild
dir) :Could anyone point me to some docs or could shed a light on what I'm doing wrong? I have a feeling that it's not actually pick up the correct Cairo.h, but I'm not sure how to go on about fixing it. Thanks!
Valerio