LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   CMake error -- needs full path of compiler (https://www.linuxquestions.org/questions/programming-9/cmake-error-needs-full-path-of-compiler-409844/)

Penguin of Wonder 01-30-2006 10:52 PM

CMake error -- needs full path of compiler [solved]
 
I've been programming on Windows for 4 years now with VB.NET and C++. I'm trying to get into it on Linux now, well the C++ atleast. So i'm using Kdevelop3. First it gave me a CMake dosen't exist error when I tryed to create a new project. So I used apt-get and isntalled CMake. Finally after some more "this dosen't exist" errors I think I've got everything I need. But when I run

Code:

cmake -G KDevelop3
in the Terminal it tells me it can't find my compiler. Well it can't find it because I didn't set it (DUH!), but the trouble is I don't know how. In the CMakeCache.txt file it says

Code:

//C++ compiler
CMAKE_CXX_COMPILER:STRING=CMAKE_CXX_COMPILER_FULLPATH-NOTFOUND

So my question is finally, what do i replace CMAKE_CXX_COMPILER_FULLPATH-NOTFOUND with if i'm using the g++ compiler. I'm using Kubuntu on this computer.

Thanks for the help guys.

sirclif 01-31-2006 01:45 PM

type

$ which g++

this will tell you the full path to the executable you need. for my system (Fedora Core 4) it is /usr/bin/g++. hope this helps a little.

Penguin of Wonder 01-31-2006 03:22 PM

Thanks for the responce. That fixed my problem. Now I just have three more errors to figure out that, lol me and my linux, it never works right.


All times are GMT -5. The time now is 12:48 PM.