Languages

Menu
Sites
Language
shell script to set environment for Tizen x86/arm compiling

Hi, I have some C and C++ libraries I would like to compile for Tizen on OSX. However, I am having a hard time setting the enviornments so that the make scripts work. Is there a shell script or what not that I can use to do this? Also, should I be using clang/clang++ or i386-linux-gnueabi-gcc, etc. Any tips are much appreciated.

Responses

1 Replies
Mango Bar

To compile your CPP code  you can change compiler settings for C++ easily

 

Step-1: Right click on your project then go to

Properties --> C/C++ Build --> Settings --> Tool Settings --> C++ Compiler --> Dialect

Now select C++11 from "Language Standard" menu. After that Click OK to save it.

Step-2: Again Right click on project then go to

Properties --> C/C++ Build --> Tizen Settings --> Platform

Then goto "Toolchain Information" section and select any one from GCC-4.9 (default) or LLVM GCC-4.9 (default) from "Name" menu. Finally click OK to save it.

 

Alternatively, You will find comand to change architecture from the following thread. You can use that command to make a script.

https://developer.tizen.org/forums/native-application-development/command-line-build-llvm-3.6?langredirect=1