I am following this topic and one to create my own KDE without sudo permission. Since the workstation did not have Git and CMake. I just installed both of them under / home / <user> and added / home / <user> / bin and / home / <user> / lib for both PATH and LD_LIBRARY_PATH. Since the KDE assembly only supports CMake, it is not configurable. Therefore, I must set the prefix via CMake, for example: cmake ~/kde-devel/src/kdelibs -DCMAKE_INSTALL_PREFIX=/home/<user> . At this point, I received the error below:
> ~/bin/cmake ~/kde-devel/src/kdelibs -DCMAKE_INSTALL_PREFIX=/home/<user> -- The CXX compiler identification is unknown -- Check for working CXX compiler: /home/gnu/bin/c++ -- Check for working CXX compiler: /home/gnu/bin/c++ -- broken CMake Error at /home/<user>/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE): The C++ compiler "/home/gnu/bin/c++" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/<user>/kde-devel/build/kdelibs/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" ...
I checked that there are 2 C ++ compilers:
> where c++ /home/gnu/bin/c++ /usr/bin/c++
Should I install the default C ++ Cake compiler on /usr/bin/c++ ? And How? Or is there a way to fix this problem?
linux cmake
Stan Mar 14 2018-12-12T00: 00Z
source share