# Imgui sample code cannot be built on linux

**URL:** <https://discourse.libcinder.org/t/imgui-sample-code-cannot-be-built-on-linux/1759>\
**Category:** Using Cinder\
**Created:** [January 17, 2021, 7:06am UTC](https://discourse.libcinder.org/t/imgui-sample-code-cannot-be-built-on-linux/1759 "2021-01-17T07:06:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigginer-man](https://avatars.discourse-cdn.com/v4/letter/b/e79b87/32.png) [@bigginer-man](https://discourse.libcinder.org/u/bigginer-man)\
**Post date:** [January 17, 2021, 7:06am UTC](https://discourse.libcinder.org/t/imgui-sample-code-cannot-be-built-on-linux/1759/1 "2021-01-17T07:06:41Z")

</div>

## Question

* * *

Hi.

I’m someone who wants to build imgui sample code  
First

> ~/Cinder/blocks

among

```terminal
git clone https://github.com/simongeilfus/Cinder-ImGui.git
cd Cinder-ImGui / lib
git clone https://github.com/ocornut/imgui.git

```

And introduced ImGui.

And

> ~/Cinder/blocks /samples/Basic/linux

among  
I ran the following command

```terminal
mkdir build
cd build
cmake ..

```

Then, the following error will occur.

```error_log
CMake Error at CMakeLists.txt: 14 (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.

```

How can I build it?

I would be happy if you could tell me.

## Development environment

* * *

| Type of software | name | version |
| --- | --- | --- |
| os | Linux Mint | 20 |
| build tool | Cmake | 3.19.1 |
| build tool | Gnu Make | 4.2.1 |
| conpiler | g++ | 10.2.0 |
| frame work | Cinder | 0.9.3 |

---

<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:** [January 18, 2021, 4:12pm UTC](https://discourse.libcinder.org/t/imgui-sample-code-cannot-be-built-on-linux/1759/2 "2021-01-18T16:12:05Z")

</div>

Hi,

If you’re using the latest master branch, Dear ImGui is shipped with libcinder, you don’t need the older Cinder-ImGui block. It should be available to your cinder app by default.

cheers,  
Rich

---

<div class="post-metadata">

**Author:** ![bigginer-man](https://avatars.discourse-cdn.com/v4/letter/b/e79b87/32.png) [@bigginer-man](https://discourse.libcinder.org/u/bigginer-man)\
**Post date:** [January 29, 2021, 4:58am UTC](https://discourse.libcinder.org/t/imgui-sample-code-cannot-be-built-on-linux/1759/3 "2021-01-29T04:58:39Z")

</div>

Thank you for the information.  
mr rich.e
