Has anybody tried using CLion to build Cinder?

Hi guys.

Anybody tried using CLion to build Cinder?

A

hey man this should work out of the box on osx and linux for cinder and projects. I don’t know if anyone has had luck on windows although I did notice that you can now build cinder using cmake on windows when sussing out this exciting pull request for gstreamer video playback on win:

1 Like

Android NDK on windows has come on a lot bit it’s still a bit of a PITA. Might be worth revisiting though - the IDE has moved on loads.

I use CLion to build Cinder on macOS. It’s really easy, here’s my CMakeLists.txt:

No other configuration was needed for me, all completion and intellisense works perfectly

cmake_minimum_required(VERSION 3.10)
project(cinder)

set(CMAKE_CXX_STANDARD 14)

get_filename_component( CINDER_PATH "~/cinder_master" ABSOLUTE )

include( "${CINDER_PATH}/proj/cmake/modules/cinderMakeApp.cmake" )

ci_make_app(
        APP_NAME "CinderExample"
        CINDER_PATH ${CINDER_PATH}
        SOURCES main.cpp
)

I am new to CMake and and C++ in general. I followed your instructions but I found an error I can’t solve. There seems to be a unmatched reference.

CMake Error at /Users/oscar/Code/tools/cinder_0.9.2_mac/proj/cmake/modules/cinderMakeApp.cmake:78 (find_package):
Could not find a package configuration file provided by “cinder” with any
of the following names:

cinderConfig.cmake
cinder-config.cmake

Add the installation prefix of “cinder” to CMAKE_PREFIX_PATH or set
“cinder_DIR” to a directory containing one of the above files. If “cinder”
provides a separate development package or SDK, be sure it has been
installed.

Are you building your own application that does not find Cinder? Did you build Cinder?
If you did not first build Cinder then try to build your app. Make sure the build type (Debug or Release) matches.