语言

Menu
Sites
Language
What version of C++ does Tizen support?

I am new to tizen and can't seem to locate where it says what version of c++ tizen supports?  The new 2011, 98???

Any help would be appreciated.

 

 

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

8 回复
Pushpa G
Refer to https://developer.tizen.org/help/topic/org.tizen.native.apireference/group__Cplusplus.html, and also refer to https://developer.tizen.org/help/topic/org.tizen.native.appprogramming/html/cover_page.htm(helps you know how to create Tizen apps) And if you want to create direct c++ app, then In the IDE, select File->New->Project->C/C++->C++ project, also install MingW GCC(http://www.mingw.org) should be installed to run a plain c++ app in the eclipse/Tizen IDE
Funny Bunny
Hello, I am also new to Tizen, and I read the links that you provided "Pushpa", but I am concerned that I do not completely understand the approach of Tizen with regard to C++. I want to be very, very clear before I invest time in trying to port a large application. I have several questions: 1. If I write a traditional "Hello, World" C++ application, using [cout << "Hello, World!" " ], and attempt to run on a Tizen device that is owned by my (not-yet-known) customer, what will happen? 2. If I write a standard C++ application, that attempts to gain access to a kernel-mode device driver that is running on a Tizen device that id owned by my (not-yet-known) customer, what happen? I am trying to determined, exactly, what is meant by native code. Unfortunately, several vendors over the last 5 years have been redefining the definition of native development, so, before wasting a large amount of time trying to port my large C++ native application to Tizen, I would like to know exactly what I can do with Tizen and what I cannot do.
Pushpa G
ok, Instead of cout, you can use AppLog("Hello world"); It works in Tizen W.r.t device drivers, go through the help documents in Tizen: Tizen IDE->Help->Help contents>Getting Started with Tizen > Development Environment > Tizen SDK > Emulator Emulator Start-up Options And Tizen IDE->Help->Help contents>Getting Started with Tizen > Overview Tizen Architecture. And also go through the sample apps code available in Tizen by executing them on the Tizen emulator SDK link: https://developer.tizen.org/downloads/tizen-sdk
Pushpa G
After installing Tizen, open the IDE->File>New>Project>Tizen native project>Sample->Select BasicApp etc any easy sample and try them on your sdk and see the output and its workflow and code, It starts from BasicAppEntry.cpp in src folder of the project
Funny Bunny
Thank you Pushpa. So I understand that it is not possible to use C++ iostreams or anything similar on Tizen. That's fine. Also, I want to emphasize that my objective is not to learn how to write Tizen applications. I have already review the Tizen Website, and Tizen provides really nice, clean excellent documentation. :) I am more interested in determining, in advance, what is possible and what is not, with Tizen. Specifically, I have the following question: Tizen obviously is based upon Linux. In Linux, there are device drivers. For example, there are device drivers that interface with the hardware Ethhernet or WiFi port. Right now, I can write a native C/C++ application on Linux, and run that application on Linux, and my application will be able to: 1. open the device driver 2. do read/write/ioctl with the device driver 3. close the device driver I would like to know this: What will happen if I try to run this code under Tizen? Will it work or will it fail? My application is too large to experiment to find out. And, in any case, it is much faster if someone could just tell me. Which of the following two possibilities is the correct answer? 1. It will work. 2. It will not work. Thanks again, NC.
John Ixion
HI, Almost all dev packages are available: http://download.tizen.org/live/Tizen:/2.0:/Base/standard/i586/ What exactly is allowed in the Mobile Profile is not clear: https://source.tizen.org/compliance/compliance-specification
Funny Bunny
Hi Olivier, I think there is a misunderstanding here. The dev packages that are available is not relevant to my problem. Those dev packages, even though they might be present on a Tizen device, might not help my situation. I want to know if I write a C++ application that binds to a device driver on Ubuntu, and then, take my application, and put it on my web-site, will a "normal" computer user have trouble running my application? If the normal computer user has a Ph.D. in computer science, and 7 or 8 hours, then of course, the answer will be "no". The user will try to run my application, and if it fails, perhaps because some shared libraries are missing, or, more likely, because Tizen, itself, does not allow "regular" C++ applications to access device drivers, the normal user will simply root the phone, download Tizen source, recompile, and flash the device, but without the restrictions. If the normal computer user really is normal, meaning that he is only a user, and has no idea what a compiler is, then there is a problem. This user will download my application from my web site, install it, and when my application tries to run, it will fail, because it will try to access a device driver in Tizen, and Tizen will not allow it. Please note that I am quite aware that, if the second user calls me on the phone, and explains to me that my application failed, I could spend several hours telling the user how to root the phone, and how to flash an image that will allow my application to interact with device drivers. I am not interested in that. I want the user to be able to install my native C++ application, and I want for my native C++ application to be able to execute and bind to a device driver without being blocked by Tizen. Is this a reasonable expectation of Tizen, or is it more likely that all Tizen devices will block my application because it attempts to interact with system components?
Funny Bunny
For anyone else who is interested, I did a bit of research last night on the Internet, and the answer to my original question is almost certainly "NO". If you a third-party application developer, and you want to write a Linux app that can be installed by a Tizen customer, in general, Tizen will block your application from installation if it tries to do anything beyond what is allowed by the Tizen sandbox. In other words, while the source code might be open, the target platform seems to be closed to true native development.