[CMake] KDevelop3 and Build->Compile file

David Somers dsomers at omz13.com
Wed Jul 20 12:58:04 EDT 2005


There is a problem somewhere with the way that cmake makes the kdevelop3 
project files.

Example. With a project made by KDevelop3, when I do Build->Compile file, the 
messages are:

cd '/home/users/dsomers/prj/wibble/debug/src' && WANT_AUTOCONF_2_5="1" 
WANT_AUTOMAKE_1_6="1" gmake -k wibble.lo
compiling fi (gcc)
compiling wibble.o (gcc)
/home/users/dsomers/prj/wibble/src/wibble.c: In function `main':
/home/users/dsomers/prj/wibble/src/wibble.c:32: error: `i' undeclared (first 
use in this function)
/home/users/dsomers/prj/wibble/src/wibble.c:32: error: (Each undeclared 
identifier is reported only once
/home/users/dsomers/prj/wibble/src/wibble.c:32: error: for each function it 
appears in.)
gmake: *** [wibble.lo] Error 1
*** Exited with status: 2 ***

But when I do Build->Compile file with CMake generated the project files, I 
get this

cd '/home/users/dsomers/prj/checkcvswrappers/src' && gmake -k -j1 
'checkcvswrappers.o'
cc -c -o checkcvswrappers.o checkcvswrappers.c
checkcvswrappers.c:67:30: \x used with no following hex digits
gmake: *** [checkcvswrappers.o] Error 1
*** Exited with status: 2 ***

The problem is that KDevelop isn't then able to parse the output correctly so 
next/previous error don't work fully (the editor does not jump automagically 
to the file/line).


-- 
David Somers
VoIP: FWD 622885
PGP Key = 7E613D4E
Fingerprint = 53A0 D84B 7F90 F227 2EAB  4FD7 6278 E2A8 7E61 3D4E


More information about the CMake mailing list