6 - Creating a CPP Project from your IDE

By now, you've learned how to configure your IDE to run UE4 in a Linux environment. Also, you've learned how to create a new Blueprint project using a Project template. In this section, we'll show you how to create a new CPP project from UE4. For the purposes of this demonstration, let's suppose that you want to create a new CPP game with a driving mechanic.

  1. While in the New Project menu, make sure that the C++ menu is open.

    Click for full image.

  2. Select the Vehicle CPP project template and name the project DrivingCPP_Prj.

    Click for full image.

  3. Finally, click the Create Project button to create your new CPP project using the Vehicle CPP project template.

    Click for full image.

    Depending on your system specifications, it may take a couple of minutes for UE4 to create your new CPP project. After UE4 creates your new CPP project, an instance of Qt Creator for your new CPP project will be launched, closing UE4Editor in the process.

  4. At this point, you should see Qt Creator's Configure Project menu in the newly launched instance of Qt Creator. Use what you've learned thus far to configure your new CPP project to have the following Build Settings for Debug Mode;

    SetupIDE_Step27a.png

    And Release Mode:

    SetupIDE_Step27.png

    At this time, project settings aren't inherited from the original UE4 Editor project settings. So, when you create a new UE4 CPP project using Qt Creator, you'll need to configure the project settings using the same steps that you learned earlier in this guide.

  5. Now, configure your new CPP project to have the following Run Settings:

    SetupIDE_Step28.png

  6. Switch to Edit mode in your IDE by clicking on the Edit button in the left panel of your IDE. Alternatively, you can press the Ctrl+2 keyboard combination to open Qt Creator's Edit Mode.

    Click for full image.

  7. Now, click the Run button. Alternatively, you can press the Ctrl+R keyboard combination to run UE4 from the IDE.

    Click for full image.

  8. After the Missing DriveCPP_Prj Modules dialogue box appears, click the Yes button.

    Click for full image.

  9. Depending on your system specifications, it may take several minutes for the IDE to build and launch your new CPP project.

    Click for full image.

End Result

Click for full image.

Congratulations! You should now see your new CPP project running from inside of Qt Creator. Now that you've created and launched your new CPP project, you've learned everything you need to work on UE4 projects from an IDE in your Linux environment. As you worked your way through this tutorial, you learned:

✓ How to configure your IDE to build UE4 in debug and release mode.
✓ How to configure your IDE to run UE4 in debug and release mode.
✓ How to build UE4 from your IDE.
✓ How to run UE4 from your IDE.
✓ How to create and configure a new Blueprint project with UE4 from your IDE.
✓ How to create and configure a new CPP project with UE4 from your IDE.

Getting Started with Unreal Engine

Learn how to use Unreal Engine by referring to our Get Started with UE4 documentation!

If you're looking to quickly get started with UE4, refer to the following tutorials:

Tags