# Using Visual studio with Cinder

**URL:** https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297
**Category:** Using Cinder
**Created:** [September 5, 2018, 8:13am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297 "2018-09-05T08:13:10Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Nihara](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@Nihara](https://discourse.libcinder.org/u/Nihara)
#### Post date: [September 5, 2018, 8:13am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/1 "2018-09-05T08:13:10Z")

</div>

Hi,  
Im new to Cinder and would like to use Visual Studio with Cinder.  
I started with this link [https://libcinder.org/docs/guides/windows-setup/index.html](https://libcinder.org/docs/guides/windows-setup/index.html) but was unable to open the sample image with visual studio 2013.  
How do I go about compiling with Visual studio?

Thanks

---

<div class="post-metadata">

### Author: ![xumo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/xumo/32/75_2.png) [@xumo](https://discourse.libcinder.org/u/xumo)
#### Post date: [September 5, 2018, 8:52am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/2 "2018-09-05T08:52:13Z")

</div>

Well it’s always nice to use git, even for your own projects. So this is how I do it:

- Install git
- Install MS Visual Studio C++ (I have the 2017 version).
- clone the cinder repository:  
git clone --recursive [https://github.com/cinder/Cinder.git](https://github.com/cinder/Cinder.git)
- go to the Cinder folder
- open proj/vc2015/cinder.sln
- accept to upgrade project’s compiler version to v141
- compile the project for the versions you want to use, usually Debug and Release both x64 and x86(win32).  
now you can test any of the projects in the samples folder.

If you use another version of Visual Studio this might also work. If you downloaded the released version of Cinder from the website just open the cinder.sln and compile it with the version of Visual Studio that you have.

---

<div class="post-metadata">

### Author: ![Nihara](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@Nihara](https://discourse.libcinder.org/u/Nihara)
#### Post date: [September 5, 2018, 9:33am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/3 "2018-09-05T09:33:39Z")

</div>

Hi,  
I was trying to open VC2013/cinder.sln in my visual studio 2017 but i kept getting errors while compiling.  
Am i supposed to add any dependencies?  
Untitled|690x388

---

<div class="post-metadata">

### Author: ![xumo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/xumo/32/75_2.png) [@xumo](https://discourse.libcinder.org/u/xumo)
#### Post date: [September 5, 2018, 11:21am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/4 "2018-09-05T11:21:27Z")

</div>

With 2017 I think it’s better to use the latest git version and use the one in the vc2015 folder.

---

<div class="post-metadata">

### Author: ![brucelane](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/brucelane/32/541_2.png) [@brucelane](https://discourse.libcinder.org/u/brucelane)
#### Post date: [September 5, 2018, 4:45pm UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/5 "2018-09-05T16:45:04Z")

</div>

I usually copy the Cinder vc2015 folder to a new vc2017 so I can keep updating from git repo without conflicts.  
Same for blocks, samples…

---

<div class="post-metadata">

### Author: ![Nihara](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@Nihara](https://discourse.libcinder.org/u/Nihara)
#### Post date: [September 6, 2018, 4:41am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/6 "2018-09-06T04:41:25Z")

</div>

![Untitled](https://canada1.discourse-cdn.com/flex030/uploads/libcinder/original/1X/e5095a0223166df12332766e8db674da0a87a383.png)

I used the Vc2015 in my 2017 visual studio and tried compiling but there these errors popping up.  
So i was wondering if i need to do any additional steps?

Thanks

---

<div class="post-metadata">

### Author: ![balachandran\_c](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@balachandran\_c](https://discourse.libcinder.org/u/balachandran_c)
#### Post date: [September 6, 2018, 6:55am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/7 "2018-09-06T06:55:08Z")

</div>

This [so question](https://stackoverflow.com/questions/38290169/cannot-find-corecrt-h-universalcrt-includepath-is-wrong) might be useful.

---

<div class="post-metadata">

### Author: ![Nihara](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@Nihara](https://discourse.libcinder.org/u/Nihara)
#### Post date: [September 7, 2018, 4:46am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/8 "2018-09-07T04:46:40Z")

</div>

I reintalled my visual studio.  
I dont get any errors but it shows build failed.

---

<div class="post-metadata">

### Author: ![balachandran\_c](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@balachandran\_c](https://discourse.libcinder.org/u/balachandran_c)
#### Post date: [September 7, 2018, 5:30am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/9 "2018-09-07T05:30:01Z")

</div>

Could you please post the build output?

---

<div class="post-metadata">

### Author: ![Nihara](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@Nihara](https://discourse.libcinder.org/u/Nihara)
#### Post date: [September 7, 2018, 8:28am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/10 "2018-09-07T08:28:51Z")

</div>

I tried instaling Windows sdk10. I ended up with errors when i opened the sample project and when I compiled it too.  
 ![error1](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex030/uploads/libcinder/original/1X/cf64195c03a8b143ff2f862302072d8688aa33fa.png) ![error2](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex030/uploads/libcinder/original/1X/1533e567f65604f838b65469e548f1a8a5f55a18.png)

---

<div class="post-metadata">

### Author: ![xumo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/xumo/32/75_2.png) [@xumo](https://discourse.libcinder.org/u/xumo)
#### Post date: [September 7, 2018, 9:11am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/11 "2018-09-07T09:11:54Z")

</div>

What version of cinder are you compiling? The git version should compile just with a regular Visual Studio C++ 2017 install.

---

<div class="post-metadata">

### Author: ![Nihara](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@Nihara](https://discourse.libcinder.org/u/Nihara)
#### Post date: [September 7, 2018, 9:50am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/12 "2018-09-07T09:50:52Z")

</div>

Im compiling vc2015 from the cinder folder.  
And i used the regular 2017 VS.

When i compiled it again few mins ago, it comes as build failed but its not showing me any errors

 ![error3](https://canada1.discourse-cdn.com/flex030/uploads/libcinder/original/1X/d4cee2ccd8462b299e5356c579ff672456a25446.png)

---

<div class="post-metadata">

### Author: ![xumo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/xumo/32/75_2.png) [@xumo](https://discourse.libcinder.org/u/xumo)
#### Post date: [September 7, 2018, 9:54am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/13 "2018-09-07T09:54:57Z")

</div>

I see you are building Debug\_Angle, select just Debug.

---

<div class="post-metadata">

### Author: ![Nihara](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@Nihara](https://discourse.libcinder.org/u/Nihara)
#### Post date: [September 8, 2018, 8:17am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/14 "2018-09-08T08:17:04Z")

</div>

I

 ![Untitled](https://canada1.discourse-cdn.com/flex030/uploads/libcinder/original/1X/1ccb71480c03cdfd795516544fe9a162eab3d27e.png)

I used just debug and tried both X64 and win32.  
it doesnt build and but this time it has no errors 😕

I tried even reinstalling VS sigh.  
Maybe i should just try in another pc

---

<div class="post-metadata">

### Author: ![Nihara](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@Nihara](https://discourse.libcinder.org/u/Nihara)
#### Post date: [September 12, 2018, 1:33am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/15 "2018-09-12T01:33:18Z")

</div>

![Untitled](https://canada1.discourse-cdn.com/flex030/uploads/libcinder/original/1X/e3f09cb944c46e2a46ae432f30715ec849cfed43.png)  
I tried with a different pc but im getting too many errors this time.

---

<div class="post-metadata">

### Author: ![paul.houx](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/paul.houx/32/31_2.png) [@paul.houx](https://discourse.libcinder.org/u/paul.houx)
#### Post date: [September 12, 2018, 5:59am UTC](https://discourse.libcinder.org/t/using-visual-studio-with-cinder/1297/16 "2018-09-12T05:59:11Z")

</div>

Hi Nihara,

sorry to hear you’re still struggling with this. In your latest screenshot, it looks like you’re missing the `boost` library. I assume you’re using Cinder’s Git version? When cloning the repository, make sure to also update its submodules. A repository contains all files necessary to compile and build an application. Sometimes it depends on another repository (in this case the `boost` library), which is then added as a “linked repository” called a submodule. The easiest way to download all of that is when cloning Cinder like this:

```auto
git clone --recursive git://github.com/cinder/Cinder.git cinder_master

```

If you want to update the submodules afterwards, open a command window, browse to the root of your cinder folder and run:

```auto
git submodule update --init --recursive

```

See also [this guide](https://libcinder.org/docs/guides/git/index.html), which describes everything in more detail. I should mention that the guide was written with VS2013 in mind. When using VS2015 and above, open the cinder project file in the vs2015 folder. The name and location of the `cinder.lib` file have been changed, too. See [this old post](https://discourse.libcinder.org/t/rfc-android-linux-merge/451) with a description.

-Paul
