[CMake] Cross-compiling for Tizen emulator
Bogdan Cristea
cristeab at gmail.com
Thu Dec 5 17:22:36 EST 2013
Hi
I am trying to write a toolchain cmake script in order to crosscompile a
cpp program for Tizen emulator. Here is the cmake script I am using:
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER
/home/bogdan/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/i386-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER
/home/bogdan/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/i386-linux-gnueabi-g++)
SET(CMAKE_FIND_ROOT_PATH
/home/bogdan/dev/src/tizenbuildtools/emulator/GBS-ROOT/local/BUILD-ROOTS/scratch.i586.0)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
However, at compile I get errors about missing files: crt1.o, cdti.o and
the compiler is not detected. I have checked that the above
CMAKE_FIND_ROOT_PATH is set with the path that is normally specified in
the --sysroot command line option of the gcc compiler. Any ideas how to
solve this issue ?
thanks
Bogdan
More information about the CMake
mailing list