qertny.blogg.se

Clion blog
Clion blog






If not professionals, I suggest you use it CodeBlocks, lately CodeBlocks Update to 20.03, Holistic UI The design is also very beautiful, And it doesn't need too much configuration, The error prompt is clear at a glance. six, Newly established C/C++ Is the file declared to CMakeListsīloggers want to use CLion Because UI good-looking, But when you configure it, it's very troublesome, Step on a lot of holes, And there can't be any Chinese path yet, You need to output Chinese in the learning process, It needs to be changed utf-8 Coding and GBK code, It's a lot of trouble. Study) # C++ compiler set(CMAKE_CXX_STANDARD 14) # Executable file generation add_executable(study main. # Declaration required cmake Minimum version cmake_minimum_required(VERSION 3.15) # Make a statement cmake engineering project( This is generally automatic configuration, You can check if it is correct and configure it manually There is such a problem, Suggest Xiaobai to rebuild a project, Copy the original project code directly, Because rebuilding the project will automatically configure it CMake, This is the easiest way. four, Open someone else's project, this error prompt appears If it's inconvenient, You can create a desktop shortcut to a folder. Ow, The absolute path of project creation cannot contain Chinese, Wood has a way ,MinGW And CMake Chinese path is not supported, Chinese garbled code cannot be recognized ,CMake It cannot be configured. two, see CLion Is the compiler configured correctlyĬhoose the right one MinGW position ,CLion The absolute paths of other tools are automatically filled in, After success, it will be checked. Put the following cmake file in the newly created cmake/modules. Create a cmake/modules directory in your project root. First, open your project and set the default toolchain (found in settings) to the bundled mingw that comes with CLion. remember CMake The installation path of cannot contain Chinese, When installing, you can check add to Path You don't need to add it manually. Setting up SDL2 with CMake for CLion can be a hassle but in this tutorial we are going to solve that. The blogger installed it alone here CMake, It's completely installed MinGW Does not need to be installed again.

clion blog

Such D The root directory of the disk, Not added to the environment variable, It needs to be added in the system advanced settings path. one ,MinGw Installation directory and environment variable configurationįirst, We need to make sure that MinGW The installation path of does not contain Chinese, It is recommended to put it directly in the D:\mingw64 Novice step on the pit : New contact CLion Encountered a problem when creating a project with a small partner of CMake project is not loaded Error tips for, How to solve it ? CLion Novice step on the pit :CMake project is not loaded








Clion blog