Before compiling applications for running on the Tizen* target, you must install Tizen SDK (Software Development Kits).
Using -gnu-prefix and --sysroot Compiler Options for Cross-Compiling
This method uses the --sysroot and -gnu-prefix compiler options.
After installation, set PATH, TZN_SYSROOT and TZN_EXEC_PREFIX environment variables to match cross-compilation tools directories:
//On Ubuntu* host: export PATH=/opt/tzn20/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5_SAVE/bin:$PATH export TZN_SYSROOT=/opt/tzn0/tizen-sdk/platforms/tizen2.0/rootstraps/tizen-emulator-2.0.cpp export TZN_EXEC_PREFIX=i386-linux-gnueabi- //On Windows* host: set PATH=C:\tizen-sdk\tools\i386-linux-gnueabi-gcc-4.5\bin;%PATH% set TZN_SYSROOT=C:\tizen-sdk\platforms\tizen2.0\rootstraps\tizen-emulator-2.0.cpp set TZN_EXEC_PREFIX=i386-linux-gnueabi-
To compile the Tizen* application, specify -gnu-prefix and --sysroot compiler options.
To compile a C source file, for example, my_source_file.c, use a command similar to the following:
icc -gnu-prefix=$TZN_EXEC_PREFIX --sysroot=$TZN_SYSROOT my_source_file.c //Ubuntu* host icl -gnu-prefix=%TZN_EXEC_PREFIX% --sysroot=%TZN_SYSROOT% my_source_file.c //Windows* host
Parent topic: Linux* Platform
Inglés