-
Notifications
You must be signed in to change notification settings - Fork 0
IDE Setup Guide
This article will help you install and configure the MyEngine project on different operating systems.
On different operating systems, you can choose any C++ Integrated Development Environment (IDE) for project development. Here are some common C++ IDE options:
If you want to set up a C/C++ environment all at once, we recommend:
CLion is a powerful cross-platform IDE that supports all platforms (Windows, Linux, MacOS), has a relatively small footprint, and relies on CMake for project building with MinGW as the corresponding compiler. It is the most suitable IDE for installing or configuring the MyEngine project on this platform.
Visual Studio is beginner-friendly and fully compatible with the Windows platform. However, it has a relatively large footprint and uses MSVC as the corresponding compiler.
Different IDEs have different configuration methods. Here are configurations for the following mainstream IDEs:
ℹ️ Note:
On Windows systems, you don't need to install additional build tools like MinGW, Ninja, or CMake; Clion already has built-in corresponding build tools.
All you need to do is configure the system environment variables so that you can directly use the corresponding build tools in any terminal.
You can directly right-click the Windows icon, select the System menu item, and open Advanced system settings in the settings. In the system properties window that pops up, click the Environment Variables button. Next, you will need to add the path to Clion's corresponding build tools to the system environment variables. Usually, you only need to add to the Path environment variable.
Of course, you can also directly run a script in PowerShell to add the path to Clion's corresponding build tools to the system environment variables. Here's how:
Please directly create any file (for example: set-clion-path.ps1), execute the following command in PowerShell to add the path to Clion's corresponding build tools to the system environment variables. Before executing the following command, remember to replace $clionPath with your own Clion installation path.
# Need to modify $clionPath to your own path.
$clionPath = "\path\to\Jetbrains\Clion"
# Add the path to the system environment variable.
$newPath = "$clionPath\bin;$clionPath\bin\mingw\bin;$clionPath\bin\gdb\win\x64\bin;$clionPath\bin\ninja\win\x64;$clionPath\bin\cmake\win\x64\bin"
# Add the path to the user environment variable.
$currentUserPath = [Environment]::GetEnvironmentVariable("PATH", "User")
# Set the user environment variable.
[Environment]::SetEnvironmentVariable("PATH", "$currentUserPath;$newPath", "User")
# Current session will be affected.
$env:PATH = [Environment]::GetEnvironmentVariable("PATH", "User")💡 TIPS:
Note that the above configuration only takes effect for the current user.
If you need it to take effect for all users, you need to run PowerShell as an administrator and replace
"User"with"Machine".
For specific installation methods, please refer to Compiler Installation Guide.
For specific installation methods, please refer to Compiler Installation Guide.
Please directly open the terminal and configure, compile, and install the project according to the Quick Start → Source Repository Installation section in the article.
If you have never installed Visual Studio, please directly open the Visual Studio Installer.
-
In the
Availabletab, select any IDE and click theInstallbutton. -
In the
Workloadstab, select theDesktop development with C++andC++ development tools for Linux and Macworkloads. -
In the
Installation Locationtab, modify theProductinstallation path, then click theInstallbutton and wait for the download and installation to complete.
If you have already installed Visual Studio, please click Tools → Get Tools and Features in the menu bar to launch the Visual Studio Installer.
-
Select your IDE and click the
Modifybutton. -
In the pop-up window, select the
Individual componentstab. -
Enter
cmakein the search box and check theCMakecomponent. -
Click the
Installbutton to install the CMake component.
Please open the command line Developer PowerShell for VS or Developer Command Prompt for VS (located in the Visual Studio folder in the Start menu) and configure, compile, and install the project according to the Quick Start → Source Repository Installation section in the article.
For configuration, please refer to the following links:
Please directly open the terminal and configure, compile, and install the project according to the Quick Start → Source Repository Installation section in the article.