[bt-devel] cmake system and building one .cpp file

Martin Gruner mg.pub at gmx.net
Wed May 23 09:40:59 MST 2007


Hi,

> > On Tue, 22 May 2007 cricketc at gmail.com wrote:
> >> $cmake ../bibletime
> >> -- Check for working CXX compiler: /usr/bin/g++
> >> -- Check for working CXX compiler: /usr/bin/g++ -- works
> >> -- Looking for Q_WS_X11
> >> CMake Error: Unknown extension ".c" for file
> >> "/home/kde4/bibletime-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c".
> >> TRY_COMPILE only works for enabled languages.
> >> Currently enabled languages are: CXX
> >> See PROJECT command for help enabling other languages.
> >> -- Looking for Q_WS_X11 - not found.
> >> -- Looking for Q_WS_MAC
> >
> > These are not dangerous, it should still work.
> >
> >> CMake Error: Error in cmake code at
> >> ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake/tmp.pr
> >>o:27: MATH cannot parse the expression: "sh: ARGS: not found*10000 + sh:
> >> ARGS: not found*100 + sh: ARGS: not found": syntax error, unexpected
> >> exp_TIMES, expecting exp_OPENPARENT or exp_NUMBER (20)
> >
> > This is exactly the same error I got. Find file FindKDE4Internal.cmake
> > in your system. Find where it it uses macro_ensure_version to check gcc
> > version, somewhere around line 711. The problem was that couple of lines
> > above it tries to use variable CMAKE_C_COMPILER but it doesn't exist or
> > something. Changing it to CMAKE_CXX_COMPILER worked for me. Another but
> > dirty option is to change ${_gcc_version} to "4.1.2" (or your gcc
> > version, in Kubuntu Feisty it's this).
>
> I'm going to fix these 2 tonight, I think I know the cause. Probably
> my fault.


Can you please try again, these should be fixed now.

mg



More information about the bt-devel mailing list