Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - cmake issue running the configure scripts on ubuntu 10.4: (5 Items)
   
cmake issue running the configure scripts on ubuntu 10.4  
I am new to cmake, and have an issue when i follow the webkit readme build instructions.  When I run the configure 
script ../build-scripts/configure-owb x86 "" from webket/trunk/nto-x86-gf directory I get:

loading initial cache file ../cmake/ConfigureBuildGf.cmake
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- Check for working CXX compiler: /usr/bin/qcc
CMake Error: your CXX compiler: "/usr/bin/qcc" was not found.   Please 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: /usr/bin/qcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:43 (MESSAGE):
  The C++ compiler "/usr/bin/qcc" is not able to compile a simple test
  program.

  It fails with the following output:

   
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:7 (project)


CMake Error: your CXX compiler: "/usr/bin/qcc" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path 
or name.
CMake Error: your C compiler: "/usr/bin/qcc" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or 
name.
-- Configuring incomplete, errors occurred!


I know gcc and g++ are working an reside in /usr/bin  so I have not been able to determine why cmake cannot find the 
compilers.  Anyone have any ideas on what is wrong and how to fix it?

The cmake web site talks about a the need for a CMakeLists.txt file, which I cannot find anywhere under opt/web-browsers
.

Thanks
Re: cmake issue running the configure scripts on ubuntu 10.4  
attached is the cache file that was generated
Attachment: Text CMakeCache.txt 11.34 KB
RE: cmake issue running the configure scripts on ubuntu 10.4  
Your $QNX_HOST environment variable is not set, so maybe you don't have
the QNX SDP installed? Or if you just recently installed it, you have
not logged out and then back in to make sure the environment variables
get set in new shells. 

-----Original Message-----
From: Darrin Garrett [mailto:community-noreply@qnx.com] 
Sent: Wednesday, September 01, 2010 12:00 PM
To: general-web_browsers
Subject: cmake issue running the configure scripts on ubuntu 10.4

I am new to cmake, and have an issue when i follow the webkit readme
build instructions.  When I run the configure script
../build-scripts/configure-owb x86 "" from webket/trunk/nto-x86-gf
directory I get:

loading initial cache file ../cmake/ConfigureBuildGf.cmake
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- Check for working CXX compiler: /usr/bin/qcc
CMake Error: your CXX compiler: "/usr/bin/qcc" was not found.   Please
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: /usr/bin/qcc -- broken
CMake Error at
/usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:43 (MESSAGE):
  The C++ compiler "/usr/bin/qcc" is not able to compile a simple test
  program.

  It fails with the following output:

   
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:7 (project)


CMake Error: your CXX compiler: "/usr/bin/qcc" was not found.   Please
set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "/usr/bin/qcc" was not found.   Please set
CMAKE_C_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!


I know gcc and g++ are working an reside in /usr/bin  so I have not been
able to determine why cmake cannot find the compilers.  Anyone have any
ideas on what is wrong and how to fix it?

The cmake web site talks about a the need for a CMakeLists.txt file,
which I cannot find anywhere under opt/web-browsers.

Thanks



_______________________________________________

General
http://community.qnx.com/sf/go/post65509
Re: RE: cmake issue running the configure scripts on ubuntu 10.4  
By SDP you mean Software Development Platform?

QNX SDP is installed at /opt/qnx641

Momentics works.

from env I get:

QNX_HOST=/opt/qnx641/host/linux/x86
Re: RE: cmake issue running the configure scripts on ubuntu 10.4  
it seems cmake was not changing the cache file and I needed to manually change it so all the compiler paths pointed to 
the correct location for gcc and other output directories.

The configuration script is working now.