# How to compile orthanc in Clion?

**URL:** https://discourse.orthanc-server.org/t/how-to-compile-orthanc-in-clion/4236
**Category:** General
**Created:** [January 16, 2024, 8:24am UTC](https://discourse.orthanc-server.org/t/how-to-compile-orthanc-in-clion/4236 "2024-01-16T08:24:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Piggy](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@Piggy](https://discourse.orthanc-server.org/u/Piggy)
#### Post date: [January 16, 2024, 8:24am UTC](https://discourse.orthanc-server.org/t/how-to-compile-orthanc-in-clion/4236/1 "2024-01-16T08:24:36Z")

</div>

Does anyone know how to set up and run orthanc using Clion?  
I used `-G "Visual Studio 15 2017 Win64" -DMSVC_MULTIPLE_PROCESSES=ON -DSTATIC_BUILD=ON -DOPENSSL_NO_CAPIENG=ON -DALLOW_DOWNLOADS=ON` specified in the INSTALL doc,

 ![image](https://discourse.orthanc-server.org/uploads/default/original/2X/3/3d43336c8386f4e03b69ca482c54bafee23b4647.png)

but got the error: fatal error C1083: cannot open include file: “PrecompiledHeadersServer.h”: No such file or directory

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [April 1, 2024, 11:11am UTC](https://discourse.orthanc-server.org/t/how-to-compile-orthanc-in-clion/4236/2 "2024-04-01T11:11:57Z")

</div>

**Hello,**

> [@Piggy](#):
>
> Does anyone know how to set up and run orthanc using Clion?

Here is the link to the build instructions that have once been validated by some user of Orthanc for Microsoft Visual Studio 2017: [orthanc: 93dcc555b655 INSTALL](https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.3/INSTALL#l127)

As far as I’m concerned, as explained in [another thread](https://discourse.orthanc-server.org/t/while-building-orthanc-from-visual-studio-2022-getting-errors-in-protobufcompiler-project/4243/2), I only provide support for MSVC 2008 and MSVC 2015.

**Regards,**  
Sébastien-
