No subject


Fri Jan 14 08:05:08 EST 2011


(TOPDIR does not exist, TOPDIR is actually the absolute path to the
startup directory)

TOPDIR=$PWD
(cd build/sdk &&
 cmake -DCMAKE_FIND_ROOT_PATH=$TOPDIR/build/ecos_install \
       -DSDK_PATH=$TOPDIR/build/sdk/install -DCMAKE_BUILD_TYPE=DEBUG \
       -DPYTHON=/usr/bin/python2.6 ../../sdk && /usr/bin/make install)

I also define:

  SET (CMAKE_SYSTEM_NAME eCos)
  SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY LAST)
  SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE LAST)

(again, I can't remember why I selected "LAST" at some point in the
past, but "ONLY" led to some other issues)

When I drop CMAKE_FORCE_C_COMPILER and replace it with
CMAKE_C_COMPILER, I get the following error message

Building sdk in DEBUG
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/local/homebrew/bin/arm-eabi-gcc-4.5.2
CMake Error at /usr/local/homebrew/Cellar/cmake/2.8.4-rc2/share/cmake/Modules/Platform/eCos.cmake:36
(MESSAGE):
  Could not find eCos pkgconf/system.h.  Build eCos first and set up
  CMAKE_FIND_ROOT_PATH correctly.
Call Stack (most recent call first):
  /usr/local/homebrew/Cellar/cmake/2.8.4-rc2/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36
(INCLUDE)
  CMakeLists.txt:2 (PROJECT)


Best Regards,
Emmanuel


More information about the CMake mailing list