parkingfert.blogg.se

Clion cmake
Clion cmake












clion cmake
  1. #CLION CMAKE INSTALL#
  2. #CLION CMAKE PORTABLE#

#CLION CMAKE INSTALL#

In the next dialog click the plus in the top left corner, and then set name and program to make, arguments to install and the working directory to. in the top right drop-down menu (Note that if you have two profiles you'll have to repeat this step with both and select the correct path). You can also set build options to -j 4 where '4' can be replaced with any number, usually the amount of CPU cores to speed up building.Īfter you click apply CLion will reload the CMake project and you should be able to build and run obs-studio. The path is up to you, if you do want a release profile make sure to set the path to a different one than for debug for obvious reasons. -DCMAKE_INSTALL_PREFIX="$/git/obs-studio/build-debug".if you want a separate release and debug profile), but for this we'll just use the existing debug profile and set the following two options in CMake options: Here you can configure different profiles (eg. To do this open the settings dialog ( File > Settings or Ctrl + Alt + S) and navigate to Build, Execution, Deployment > CMake.

#CLION CMAKE PORTABLE#

After that you'll have to configure CMake to build a portable version of obs, because the normal build won't find the obs data for some reason. It'll go over it's usual setup routine, but it won't work or otherwise you wouldn't be reading this. Now you can open the repository folder in CLion. Make a build directory $ cd obs-studio & mkdir build-debug.clone the repository with $ git clone -recursive.Install dependencies (Depends on your distribution).Nothing special here, just follow the guide up on github, which boils down to: Since I use it only on linux this guide was only tested there it should technically work on macOS, but I can't confirm that. While it's not free you can test if for 30 days or get a free license as a student or apply for a license if you work on a larger open source project. Since CLion does not seem to be capable of setting up a development environment automatically for OBS Studio (It usually will be unable to compile and run and will hide builds in a deep folder structure) here's how I made CLion play nice with OBS Studio's source code.ĬLion is a cross platform C/C++ IDE by jetbrains with great features like code analysis and an integrated debugger.














Clion cmake