# How to build using the lib from source using cmake under windows for VS2019?

**URL:** <https://discourse.libcinder.org/t/how-to-build-using-the-lib-from-source-using-cmake-under-windows-for-vs2019/2009>\
**Category:** Uncategorized\
**Created:** [June 2, 2022, 6:28pm UTC](https://discourse.libcinder.org/t/how-to-build-using-the-lib-from-source-using-cmake-under-windows-for-vs2019/2009 "2022-06-02T18:28:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmos](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@cosmos](https://discourse.libcinder.org/u/cosmos)\
**Post date:** [June 2, 2022, 6:28pm UTC](https://discourse.libcinder.org/t/how-to-build-using-the-lib-from-source-using-cmake-under-windows-for-vs2019/2009/1 "2022-06-02T18:28:10Z")

</div>

Hello to all, I am new here.  
I have not used cmake before but I have task that I have to build the cinder from source using cmake.  
I am using windows and visual studio 2019.  
I have never used cmake before, so I am not even sure if it’s possible.  
I followed

```auto
mkdir build
cd build
cmake ..
make -j4

```

at the step make -j4 i get the make: \*\*\* No target specified and no makefile found. Stop.  
Is there some guidline how to build cinder under windows?

---

<div class="post-metadata">

**Author:** ![lithium](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/lithium/32/38_2.png) [@lithium](https://discourse.libcinder.org/u/lithium)\
**Post date:** [June 3, 2022, 12:26am UTC](https://discourse.libcinder.org/t/how-to-build-using-the-lib-from-source-using-cmake-under-windows-for-vs2019/2009/2 "2022-06-03T00:26:59Z")

</div>

I think the default cmake generator on windows is MSVC (as opposed to Makefile) so when you run cmake it’s not generating a Makefile, but a visual studio solution. Have a look in the build folder for `cinder.sln`, which you can open up and build from inside VS.

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [June 3, 2022, 1:23pm UTC](https://discourse.libcinder.org/t/how-to-build-using-the-lib-from-source-using-cmake-under-windows-for-vs2019/2009/3 "2022-06-03T13:23:42Z")

</div>

You can also build from the command line without opening Visual Studio if you prefer that:

```auto
cmake --build . --config Debug

```

---

<div class="post-metadata">

**Author:** ![cosmos](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@cosmos](https://discourse.libcinder.org/u/cosmos)\
**Post date:** [June 3, 2022, 3:31pm UTC](https://discourse.libcinder.org/t/how-to-build-using-the-lib-from-source-using-cmake-under-windows-for-vs2019/2009/4 "2022-06-03T15:31:07Z")

</div>

Thanks!  
I tired but I get,  
Error: could not load cache

I was able to build the proj/vc2019/cinder.sln  
but I have to use docker version of imgui in the project, so I have replaced all files manually but they seem incompatible.  
maybe the instructuions were old.

The resources they say I have to use.

This step does not produce valid project :

> **[GitHub - simongeilfus/Cinder-ImGui: Dear ImGui Renderer/Wrapper for Cinder](https://github.com/simongeilfus/Cinder-ImGui)**
>
> Dear ImGui Renderer/Wrapper for Cinder. Contribute to simongeilfus/Cinder-ImGui development by creating an account on GitHub.

Download or check out this repository into your `Cinder/blocks` directory, then use Tinderbox to create a new project using ImGui.

> **[GitHub: Where the world builds software](https://github.com/)**
>
> GitHub is where over 83 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

/cinder/Cinder newest  
/ocornut/imgui/tree/docking  
/simongeilfus/Cinder-ImGui
