Dolphin, the GameCube and Wii emulator - Forums

Full Version: C & CXX compiler identification is unknown when using cmake .. - Linux Mint
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

noooooooob

I'm using Linux Mint Cinnamon 4.8.6 and I'm trying to build Dolphin in the terminal because I was unable to use
Code:
sudo apt-add-repository ppa:dolphin-emu/ppa
because it said 'PPA was not found'

What I'm getting when I'm using cmake in the terminal of my system is.

Code:
cmake ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:5 (project):
  The CMAKE_C_COMPILER:

    clang

  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 "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:5 (project):
  The CMAKE_CXX_COMPILER:

    clang++

  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/local/dolphin-emu/Build/CMakeFiles/CMakeOutput.log".
See also "/home/local/dolphin-emu/Build/CMakeFiles/CMakeError.log".
I don't know if this was the correct place to post this but I really need help. I've been trying for fix this issue for about an hour or so and decided to post about it on the forums. Thanks in advance.
Linux Mint Cinnamon is based on Ubuntu, so on the Building Dolphin on Linux page, make sure you run the command to install all the dependencies you need

noooooooob

(04-22-2021, 02:23 AM)KHg8m3r Wrote: [ -> ]Linux Mint Cinnamon is based on Ubuntu, so on the Building Dolphin on Linux page, make sure you run the command to install all the dependencies you need

After installing all the dependencies and then using
Code:
cmake ..
I get
Code:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:5 (project):
 The CMAKE_C_COMPILER:

   clang

 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 "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
 the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:5 (project):
 The CMAKE_CXX_COMPILER:

   clang++

 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/local/dolphin-emu/Build/CMakeFiles/CMakeOutput.log".
See also "/home/local/dolphin-emu/Build/CMakeFiles/CMakeError.log".
So, to be more specific, Dolphin can't find the C and CXX compiler. To check what you have installed, run this command: dpkg --list | grep compiler
You'll get output that should look like this if you have the GNU C and C++ compilers installed that Dolphin needs:

Code:
ii  g++                                        4:7.4.0-1ubuntu2.3                               amd64        GNU C++ compiler
ii  g++-7                                      7.5.0-3ubuntu1~18.04                             amd64        GNU C++ compiler
ii  gcc                                        4:7.4.0-1ubuntu2.3                               amd64        GNU C compiler
ii  gcc-7                                      7.5.0-3ubuntu1~18.04                             amd64        GNU C compiler


If you do not have these installed, install gcc and g++ using apt install

If you do have these, run "gcc -v" and "g++ -v" to see if you can call them in a terminal. If not, your PATH isn't setup properly to call to the gcc and g++ compilers