I have just started to try this library today, but i am facing an issue when i try to statically compile on Manjaro, using CMake. I can link to the
libcinder.a file, but when I include headers, It fails to recognize them. E.g. , If i try to add this header:
I get the following error:
fatal error: cinder/gl/gl.h: No such file or directory 2 | #include "cinder/gl/gl.h"
Here is my CMake file:
cmake_minimum_required(VERSION 3.11) set(CMAKE_CXX_STANDARD 17) project(....) include_directories("/Cinder/include/") link_directories(Cinder/lib/linux/x86_64/ogl/Debug/) add_executable(binary main.cpp) target_link_libraries(binary -lGL -lpthread -lncurses -lX11 -lXxf86vm -lcinder)
BTW, I downloaded Cinder from git, and added it to the root of my project folder.
Any ideas what I am doing wrong?