← Back to team overview

kicad-developers team mailing list archive

Re: compile errors

 

Dirk Braun wrote:
Hello,

i tried to compile the latest revision (2364) without luck. My build system is debian lenny with wxWidgets 2.8.10. The error is as follows:

[ 73%] Built target cvpcb
[ 73%] creating /home/dbr/bazaar/kicad/kicad/eeschema/cmp_library_base.h(.cpp)
       from /home/dbr/bazaar/kicad/kicad/eeschema/cmp_library.lst
CMake Error: Error in cmake code at
/home/dbr/bazaar/kicad/kicad/CMakeModules/TokenList2DsnLexer.cmake:165:
Parse error. Function missing ending ")". Instead found left paren with text "(". CMake Error: Error processing file:/home/dbr/bazaar/kicad/kicad/CMakeModules/TokenList2DsnLexer.cmake
make[2]: *** [eeschema/cmp_library_base.h] Fehler 1
make[1]: *** [eeschema/CMakeFiles/eeschema.dir/all] Fehler 2
make: *** [all] Fehler 2


i use following versions of tools:
gcc/g++ 4.3.2
cmake 2.6

Can somone tell me whats wrong ?


165>  if( NOT ( tokensBefore EQUAL tokensAfter ) )
message( FATAL_ERROR "Duplicate tokens found in file <${inputFile}>." )
          endif( NOT ( tokensBefore EQUAL tokensAfter ) )


Line 165 is not complex.

It works for me using CMake 2.8.0 on Ubuntu Karmic

See if you can find another way to express the same logic that is compatible with 2.6.0


            http://cmake.org/cmake/help/cmake2.6docs.html


Otherwise we'll need to change

   cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)

to

   cmake_minimum_required(VERSION 2.8.0 FATAL_ERROR)

in the topmost CMakeLists.txt file and you'll need to user a newer CMake.

Dick






Follow ups

References