Enter at the terminal:
cocos run --proj-dir .. -p mac
The error information is as follows:
-- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:30 (project): No CMAKE_C_COMPILER could be found. CMake Error at CMakeLists.txt:30 (project): No CMAKE_CXX_COMPILER could be found. -- Configuring incomplete, errors occurred! See also "/Users/roy/Desktop/workspace/CocosProject/MyGame/mac-build/CMakeFiles/CMakeOutput.log". See also "/Users/roy/Desktop/workspace/CocosProject/MyGame/mac-build/CMakeFiles/CMakeError.log".
sudo xcode-select --reset
- Cmake Error The C compiler identification is GNU 7.5.0 — The CXX compiler identification is unknown
- [Solved] OpenGL PowerVR SDK Compiling Error: Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
- CMake Error: The source directory “opencv Install Catalog“ does not appear to contain CMakeLists.txt.
- [PX4 Bug] make px4_sitl gazebo Error: CMake Error: The following variables are used in this project
- Clion new method shows undefined reference to solution
- [Solved] Mac Cmake Complie openmp Error: fatal error: ‘omp.h‘ file not found
- [Solved] NPM Error: gyp: No Xcode or CLT version detected!
- [Solved] Vue.js error: Module build failed: Error: No parser and no file path given, couldn’t infer a parser.
- [How to Fix]Unable to find the requested Boost libraries
- Cmake Setting Support C++11 This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options
- [Solved] Xcode error: cycle inside*******; building could produce unreliable results.
- How to Solve Docker ERROR: Service’workspace’ failed to build: ERROR: Service’php-fpm’ failed to build
- Error:scalac: Scala compiler JARs not found [How to Solve]
- SLAMBook2 in ch3 code run fatal error: Eigen/Core: No such file or directory
- Xcode12.5 package framework error [How to Solve]
- [Solved] Android Studio Error: ERROR: Cause: executing external native build for cmake
- MAC: Failed building wheel for lxml [How to Solve]
- How to Solve Msys2/mingw64 Run cmake GUI Error
- QT Creator Error while building deploying project
- Grpc Compilation issues: “C++ versions less than C++11 are not supported.