

Your setup as far as I can tell seems to be ok but perhaps you can try a few things. This should then give you the option to re-generate the Visual Studio project within Unreal Editor ( File -> Refresh / Generate Visual Studio Project ) Once this is complete you simply follow the initial set of instructions but instead of picking CLion just select Visual Studio. Specifically the following folders / files inside of your root project: In case you are not happy with CLion and want to revert things back to use Visual Studio I recommend cleaning up the files the CLion integration generated. To correct go to Settings -> Build, Execution, Deployment -> CMake and change the Build Type from Debug to Release.ĭeleting CLion references and changing back to a different editor If you come across this error when trying to compile your CMakeLists.txt file it is most likely tied to building with Debug instead of Release. The CMakeLists.txt file when generated by Unreal sometimes will contain non escaped backslashes, \ vs \\, which will have to be adjusted manually. If you come across anything similar here are a few instructions that should hopefully help. There are a handful of issues I ran into while compiling this article. Specifically have a look at the various shortcuts that come with CLion. The compile times are similar to Visual Studio but the richness of the CLion tool suite makes development a lot easier to traverse. You should be able to build your project using CTRL + F9 and see your changes reflected in the Unreal Editor / your game.


HOW TO COMPILE IN CLION CODE

Open Unreal Editor ( source or binary doesn’t matter ).This plugin includes auto completion features for property / reflection specifiersĪt this point we need to setup the Unreal side of the things.
HOW TO COMPILE IN CLION INSTALL
HOW TO COMPILE IN CLION DOWNLOAD
Download the latest and greatest version of CLion.CLion should automagically recognize what you have installed and assign the correct compiler configurations.Ensure that you either have Visual Studio Community 2017 installed or alternatively just the Visual Studio Build Tools as you need something to still compile the code.In order to get unreal going with CLion you need to do a few things Please note that I am running this setup with the following app / os versions but with some minor tweaks this should be transferable to macOS and linux. Recently I started playing around with a few alternative editors to Visual Studio Community 2017, specifically Visual Studio Code and CLion.Ĭoming from a Java background it was nice to see that the JetBrains folks have also brought their IDE wizardry to C++ in the form of CLion.
