CMAKE_CXX_COMPILER-NOTFOUND Error

This is a discussion on CMAKE_CXX_COMPILER-NOTFOUND Error within the KDE forums, part of the Tools category; When i try to use Cmake I get the following error. ******************* code ******************* [sindhu @ localhost build]$ cmake .. -- Check for working C compiler: /usr/bin/gcc -- Check for ...

Go Back   Unix Linux Forum > Technologies & Tools > Tools > KDE

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-14-2008, 07:37 AM
Default CMAKE_CXX_COMPILER-NOTFOUND Error

When i try to use Cmake I get the following error.

******************* code *******************
[sindhu@localhost build]$ cmake ..
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
found. lease set CMAKE_CXX_COMPILER to a valid compiler
path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake
failed
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND --
broken
CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not
able to comp le a simple test program.
It fails with the following output:


CMake will not be able to correctly generate this project.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
found. lease set CMAKE_CXX_COMPILER to a valid compiler
path or name.
-- Configuring done

******************* code *******************

What do i do?

Reply With Quote
  #2  
Old 08-14-2008, 12:06 PM
Default Re: CMAKE_CXX_COMPILER-NOTFOUND Error

Sindhu wrote:

> When i try to use Cmake I get the following error.
>
> ******************* code *******************
> [sindhu@localhost build]$ cmake ..
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Check size of void*
> -- Check size of void* - done
> -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
> CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
> found. lease set CMAKE_CXX_COMPILER to a valid compiler
> path or name.
> CMake Error: Internal CMake error, TryCompile configure of cmake
> failed
> -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND --
> broken
> CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not
> able to comp le a simple test program.
> It fails with the following output:
>
>
> CMake will not be able to correctly generate this project.
> CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
> found. lease set CMAKE_CXX_COMPILER to a valid compiler
> path or name.
> -- Configuring done
>
> ******************* code *******************
>
> What do i do?

Looks like you didn't install the C++ component of gcc. So you can't compile
any C++ program.

Reply With Quote
  #3  
Old 08-15-2008, 10:03 AM
Default Re: CMAKE_CXX_COMPILER-NOTFOUND Error

On Aug 14, 9:06*pm, Markus Kossmann wrote:
> Sindhu wrote:
> > When i try to use Cmake I get the following error.

>
> > ******************* code *******************
> > [sindhu@localhost build]$ cmake ..
> > -- Check for working C compiler: /usr/bin/gcc
> > -- Check for working C compiler: /usr/bin/gcc -- works
> > -- Check size of void*
> > -- Check size of void* - done
> > -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
> > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
> > found. * * * * * *lease set CMAKE_CXX_COMPILER to a valid compiler
> > path or name.
> > CMake Error: Internal CMake error, TryCompile configure of cmake
> > failed
> > -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND --
> > broken
> > CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not
> > able to comp * * * * le a simple test program.
> > It fails with the following output:

>
> > CMake will not be able to correctly generate this project.
> > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
> > found. * * * * * *lease set CMAKE_CXX_COMPILER to a valid compiler
> > path or name.
> > -- Configuring done

>
> > ******************* code *******************

>
> > What do i do?

>
> Looks like you didn't install the C++ component of gcc. So you can't compile
> any C++ program.


what package should i get?
Reply With Quote
  #4  
Old 08-15-2008, 12:32 PM
Default Re: CMAKE_CXX_COMPILER-NOTFOUND Error

Sindhu wrote:

> On Aug 14, 9:06*pm, Markus Kossmann wrote:
>> Sindhu wrote:
>> > When i try to use Cmake I get the following error.

>>
>> > ******************* code *******************
>> > [sindhu@localhost build]$ cmake ..
>> > -- Check for working C compiler: /usr/bin/gcc
>> > -- Check for working C compiler: /usr/bin/gcc -- works
>> > -- Check size of void*
>> > -- Check size of void* - done
>> > -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
>> > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
>> > found. * * * * * *lease set CMAKE_CXX_COMPILER to a valid compiler
>> > path or name.
>> > CMake Error: Internal CMake error, TryCompile configure of cmake
>> > failed
>> > -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND --
>> > broken
>> > CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not
>> > able to comp * * * * le a simple test program.
>> > It fails with the following output:

>>
>> > CMake will not be able to correctly generate this project.
>> > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
>> > found. * * * * * *lease set CMAKE_CXX_COMPILER to a valid compiler
>> > path or name.
>> > -- Configuring done

>>
>> > ******************* code *******************

>>
>> > What do i do?

>>
>> Looks like you didn't install the C++ component of gcc. So you can't
>> compile any C++ program.

>
> what package should i get?

Probably something like gcc-c++. But the exact naming depends on your
distribution.
And ther might be other packages, you have to install, too.
If your distributions package management provides a set of packages for C++
development, you should install the complete set.

Reply With Quote
  #5  
Old 08-16-2008, 02:20 AM
Default Re: CMAKE_CXX_COMPILER-NOTFOUND Error

On Aug 15, 9:32*pm, Markus Kossmann wrote:
> Sindhu wrote:
> > On Aug 14, 9:06*pm, Markus Kossmann wrote:
> >> Sindhu wrote:
> >> > When i try to use Cmake I get the following error.

>
> >> > ******************* code *******************
> >> > [sindhu@localhost build]$ cmake ..
> >> > -- Check for working C compiler: /usr/bin/gcc
> >> > -- Check for working C compiler: /usr/bin/gcc -- works
> >> > -- Check size of void*
> >> > -- Check size of void* - done
> >> > -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
> >> > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
> >> > found. * * * * * *lease set CMAKE_CXX_COMPILER to a valid compiler
> >> > path or name.
> >> > CMake Error: Internal CMake error, TryCompile configure of cmake
> >> > failed
> >> > -- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND --
> >> > broken
> >> > CMake Error: The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not
> >> > able to comp * * * * le a simple test program.
> >> > It fails with the following output:

>
> >> > CMake will not be able to correctly generate this project.
> >> > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
> >> > found. * * * * * *lease set CMAKE_CXX_COMPILER to a valid compiler
> >> > path or name.
> >> > -- Configuring done

>
> >> > ******************* code *******************

>
> >> > What do i do?

>
> >> Looks like you didn't install the C++ component of gcc. So you can't
> >> compile any C++ program.

>
> > what package should i get?

>
> Probably something like gcc-c++. But the exact naming depends on your
> distribution.
> *And ther might be other packages, you have to install, too.
> If your distributions package management provides a set of packages for C++
> development, you should install the complete set. *


well thanks, i will check up on that.
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 09:30 AM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger