在Tizen IDE中开始为可穿戴设备在C ++中开始本机应用程序开发 [英] Starting native app development in C++ for wearable device in Tizen IDE

查看:138
本文介绍了在Tizen IDE中开始为可穿戴设备在C ++中开始本机应用程序开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Tizen IDE中下载Tizen可穿戴设备的基本本地C ++示例项目.目前,我只能下载C语言的示例项目.

How to download basic native C++ sample project for Tizen wearables in Tizen IDE.Currently I’m able to download sample project of C language only.Thanks in advance.

推荐答案

当前C是Tizen的本机语言,因为大多数API都是C函数编写的.有一个名为DALi的C ++库.你会发现几个 Tizen Studio中移动UI细分下的示例应用程序.

Currently C is the native language of Tizen because most of the API are written as C function. There is a C++ library called DALi. You will find several sample app in Tizen Studio under Mobile UI segment.

但是,如果您愿意,您仍然可以在代码中使用C ++.为此,您必须按照以下步骤更改Tizen Studio中的某些设置

But if you want, you can still use C++ in your code. For that, you have to change some settings in Tizen studio as follows

步骤1:您必须通过右键单击项目的src文件夹来创建cpp扩展文件以使用cpp代码.转到

Step-1: You have to create cpp extension file to use cpp code by right clicking on src folder of your project. Go to

src->新建->文件->文件名必须具有.cpp扩展名

src --> New --> File--> file name must have .cpp extension

此后,您必须更改C ++的编译器设置

After that you have to change compiler settings for C++

第2步:右键单击您的项目,然后转到

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

属性-> C/C ++构建->设置->工具设置-> C ++编译器->方言

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

现在从语言标准"菜单中选择C ++ 11.之后,单击确定"保存它.

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

第3步:再次右键单击项目,然后转到

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

属性-> C/C ++构建-> Tizen设置->平台

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

然后转到工具链信息"部分,然后从名称"菜单中选择GCC-4.9(默认)或LLVM GCC-4.9(默认)中的任何一个. 最后,单击确定"保存它.

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.

这篇关于在Tizen IDE中开始为可穿戴设备在C ++中开始本机应用程序开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆