# BasicSample build fails on Linux

**URL:** <https://discourse.libcinder.org/t/basicsample-build-fails-on-linux/108>\
**Category:** Developing Cinder\
**Created:** [June 23, 2016, 4:02pm UTC](https://discourse.libcinder.org/t/basicsample-build-fails-on-linux/108 "2016-06-23T16:02:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick\_fuerst](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/patrick_fuerst/32/87_2.png) [@patrick\_fuerst](https://discourse.libcinder.org/u/patrick_fuerst)\
**Post date:** [June 23, 2016, 4:02pm UTC](https://discourse.libcinder.org/t/basicsample-build-fails-on-linux/108/1 "2016-06-23T16:02:55Z")

</div>

Tested on RaspberryPi and Ubuntu.

When ever I try to build a sample with the new cmake file in proj/cmake directory.  
I get the following error:

> patrick@patrick-ubuntu:~/DEV/Cinder/samples/BasicApp/proj/build$ cmake -DCINDER\_VERBOSE=true …/cmake  
> CINDER\_TARGET\_GL: ogl  
> – APP\_NAME: BasicApp  
> – SOURCES: /home/patrick/DEV/Cinder/samples/BasicApp/src/BasicApp.cpp  
> – INCLUDES:  
> – CINDER\_PATH: /home/patrick/DEV/Cinder  
> – CMAKE\_RUNTIME\_OUTPUT\_DIRECTORY: /home/patrick/DEV/Cinder/samples/BasicApp/proj/cmake/build/Debug  
> – CMAKE\_BINARY\_DIR: /home/patrick/DEV/Cinder/samples/BasicApp/proj/build  
> – CINDER\_TARGET: linux  
> – CINDER\_LIB\_DIRECTORY: lib/linux/x86\_64/ogl/Debug/  
> CMake Error at /home/patrick/DEV/Cinder/proj/cmake/modules/cinderMakeApp.cmake:40 (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.  
> Call Stack (most recent call first):  
> CMakeLists.txt:11 (ci\_make\_app)

> – Configuring incomplete, errors occurred!  
> See also “/home/patrick/DEV/Cinder/samples/BasicApp/proj/build/CMakeFiles/CMakeOutput.log”.

As far as I looked into it, cmake is looking for `cinderConfig.cmake` file at `CINDER_LIB_DIRECTORY` path, but the config file lies in `"/linux/Debug/ogl/"` for me.

Did I miss something ?  
Thanks for the help.

Patrick

---

<div class="post-metadata">

**Author:** ![patrick\_fuerst](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/patrick_fuerst/32/87_2.png) [@patrick\_fuerst](https://discourse.libcinder.org/u/patrick_fuerst)\
**Post date:** [June 23, 2016, 4:20pm UTC](https://discourse.libcinder.org/t/basicsample-build-fails-on-linux/108/2 "2016-06-23T16:20:50Z")

</div>

Looks like I was to fast on writing a post.  
I build cinder with the old `cibuild` script, which cmake didn’t like when building the samples.

After building cinder as @rich.e mentioned, it worked totally fine:

> To build cinder with cmake, you can either use the command line, or Jetbrains CLion5, which has been maturing quite a bit in the past few months. For command line, the process is similar to most other cmake projects you might have used, for example from the main cinder repo path

> mkdir build  
> cd build  
> cmake …  
> make -j4

---

<div class="post-metadata">

**Author:** ![rich.e](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/rich.e/32/1025_2.png) [@rich.e](https://discourse.libcinder.org/u/rich.e)\
**Post date:** [June 24, 2016, 8:05pm UTC](https://discourse.libcinder.org/t/basicsample-build-fails-on-linux/108/3 "2016-06-24T20:05:15Z")

</div>

Right, yea the old cibuild script is placing its lib output in a slightly different location as the new one, which has been modified to support future things like vulkan or other unforeseeable platform variants.
