Results 1 to 3 of 3

Thread: Failure to implement CMake when installing software from GIT Hub.

  1. #1
    Join Date
    Mar 2012
    Location
    Germany
    Beans
    87

    Failure to implement CMake when installing software from GIT Hub.

    There is custom software on GIT Hub, whose main project page is found at https://github.com/UniStuttgart-INS/INSTINCT. By following the installation instructions from that webpage, I have reached the point where:

    Code:
    ugk@sfon:~/INSTINCT$ cmake -Bbuild/Release -S. -DCMAKE_BUILD_TYPE=Release -DENABLE_MAIN=ON -DENABLE_TESTING=OFF -DENABLE_DOXYGEN=OFF -DENABLE_CLANG_TIDY=OFF -DENABLE_CPPCHECK=OFF -DLOG_LEVEL=INFO
    CMake Error at /usr/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake:48 (message):
      Could not find compiler set in environment variable CXX:
    
      clang++.
    
    Call Stack (most recent call first):
      CMakeLists.txt:16 (project)
    
    
    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
    -- Configuring incomplete, errors occurred!
    See also "/home/ugk/INSTINCT/build/Release/CMakeFiles/CMakeOutput.log".
    For the record, the contents of that "CMakeOutput.log" file is:

    Code:
    The system is: Linux - 5.15.0-67-generic - x86_64
    I admit this is very much a begginer's question for compiling custom software from C++ or C on GNU. I have used Linux and Python for a long time, and I have basic capabilities at Bash scripting and using Emacs in LisP Interaction mode. My question is whether somebody would please guide or help me to find the most practical possible work-around or solution to the error message displayed above. My system is Ubuntu Mate 22.04.
    Last edited by GwibberFooey; March 6th, 2023 at 07:16 PM.

  2. #2
    Join Date
    Mar 2010
    Location
    Been there, meh.
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Failure to implement CMake when installing software from GIT Hub.

    Did you install a C++ compiler and linker?
    The CMakefile is assuming the name of the compiler or the CXX variable inside it is incorrect.

  3. #3
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Failure to implement CMake when installing software from GIT Hub.

    That code assumes you have clang installed. If you had, then the result of 'which clang' would return '/usr/bin/clang' and the result of 'which clang++' would return '/usr/bin/clang++'...

    'clang' is not a default installed package. If ,for instance, you wanted to install the clang compiler for Ubuntu 22.04, then :
    Code:
    sudo apt install llvm build-essential clang-14

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •