Question
Is it possible to build a Tizen project written in C++ with C++11 standard features using the command line interface (CLI)? I would appreciate any guidance on this matter.
Answer
Problem Understanding
The user wants to know if they can compile a Tizen native application written in C++ (using C++11 features) through command line tools rather than using the Tizen Studio IDE.
Solution Methods
-
Yes, you can build Tizen C++ projects with C++11 support using the command line interface. The Tizen CLI tools provide this capability.
-
To enable C++11 features, you need to:
- Add
-std=c++11to your compiler flags in the project configuration - Use the Tizen CLI build tools (tizen build-native) for compilation
- Add
-
For detailed instructions, refer to the official documentation on building native applications via CLI.
Code Examples
To add C++11 support in your project's CMakeLists.txt:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
Additional Tips
- Make sure you have the Tizen CLI tools properly installed and configured
- Verify your Tizen SDK version supports C++11 features
- For more information, visit the official documentation at Samsung Tizen OS Developer Resources