Problem: when compiling GLOG 0.50, you should set the cross compiler. After setting the compiler, you will always report title errors. Enter the cross compiler on the Linux command line, but you can recognize the cross compiler;
The files for cross compiling are as follows:
the cross compiler can be recognized on the command line:
ubuntu0compile:~/glog-master/_build$ arm-linux-gnueabihf-g
arm-linux-gnueabihf-g++ arm-linux-gnueabihf-gcc-ar arm-linux-gnueabihf-gcov arm-linux-gnueabihf-gprof
arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc-nm arm-linux-gnueabihf-gdb
arm-linux-gnueabihf-gcc-4.9.4 arm-linux-gnueabihf-gcc-ranlib arm-linux-gnueabihf-gfortran
However, the following errors are reported during compilation:
ubuntu0compile:~/glog-master$ sudo cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/gcc-cxx11-crosscompiling.cmake" && cd -
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:11 (project):
The CMAKE_CXX_COMPILER:
arm-linux-gnueabihf-g++
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/glog-master/_build/CMakeFiles/CMakeOutput.log".
See also "/home/glog-master/_build/CMakeFiles/CMakeError.log".
The fundamental reason is that the cross compiler cannot be found. Under the path, only the directory of the cross compiler is set, either reset the environment variable, or set the path of the cross compiler to an absolute path; The problem is solved by setting the absolute path
Read More:
- CMake Error at CMakeLists.txt:5 (PROJECT): The CMAKE_C_COMPILER: cl is not a full path
- Solve the problem of the C compiler identification is unknown or the cxx compiler identification is unknown in the process of using cmake
- The cxx compiler identification is unknown
- CMake Error: The source directory “opencv_install_catalog“ does not appear to contain CMakeLists.txt.
- The C compiler identification is unknown
- CMake Error: The source directory “*” does not appear to contain CMakeLists.txt.
- CMake Error: The source directory “/home/Demo1“ does not appear to contain CMakeLists.txt.
- The C compiler identification is unknown solution
- Visual slam Lesson 6: curve fitting with g2o, error: cmake error at CMakeList.txt (find_ package) By not providing“FindG2O.cmake“
- ninja Compiling the C compiler identification source file CMakeCCompilerId.c failed
- Project files may be invalid appears when cmake compiles opencv3.1, and the debug additional dependency of the compiled opencv3.1 is at the end
- JOM error 2 problem when qtcreator uses cmake to build a project
- Solution: when cmake is compiled, “error in configuration process project files may be invalid” appears
- Clion appears cmake error: could not find cmake_ Root! What is the problem and how to solve it?
- Brief introduction of cmake generating all in vs Project_ BUILD、INSTALL、ZERO_ Check function!!
- When cmake is compiled, “error in configuration process project files may be invalid” appears
- When angular4.0 starts the project, an error is reported: the “@ angular / compiler cli” package was not properly installed
- Problems in compiling VTK with cmake: solutions to error configuration process, project files may be invalid
- CMake error: error in configuration process, project files may be invalid
- To solve problems in cmake VTK: error configuration process, project files may be invalid