Of course. Here is the toolchain file content:

# This one is important

SET(CMAKE_SYSTEM_NAME Linux)

# This one not so much

SET(CMAKE_SYSTEM_VERSION 2.5)

# Specify the cross compiler

SET(CMAKE_FORCE_C_COMPILER /cross/arm-linux/bin/arm-linux-gcc GNU)

SET(CMAKE_FORCE_CXX_COMPILER /cross/arm-linux/bin/arm-linux-g++ GNU)

# Where is the target environment

SET(CMAKE_FIND_ROOT_PATH / )

# Search for programs in the build host directories

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

# For libraries and headers in the target directories

SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)

SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Here is the command line content:

CC=arm-linux-gcc CXX=arm-linux-g++ cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE=
Toolchain-arm-linux.cmake -DCMAKE_INSTALL_PREFIX=$PREFIX/$LIBSUFFIX
/my/source/directory
On 3/13/08, Alexander Neundorf <[EMAIL PROTECTED]> wrote:
>
> On Thursday 13 March 2008, John Xu wrote:
> > Alex,
> >
> > Just ran the cvs version of CMake and got the following output:
> >
> > sh: error while loading shared libraries: /usr/lib/libncurses.so.5: ELF
> > file OS ABI invalid
>
> You have to post the cmake command line, and the toolchain file (you
> should
> have one).
> Otherwise I can't know what you did.
>
> Alex
>
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to