Creating Hello World Application for Tizen: Difference between revisions
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Convert ExpressionEngine links) |
AutoSpider (talk | contribs) (Convert ExpressionEngine section headers) |
||
Line 32: | Line 32: | ||
# Now compile and deploy from QtCreator. You application should appear in homescreen on emulator or device (depending on Kit, you chose) | # Now compile and deploy from QtCreator. You application should appear in homescreen on emulator or device (depending on Kit, you chose) | ||
== Additional explanation == | |||
Qmake Variables | Qmake Variables | ||
''' CONFIG''= TIZEN_STANDALONE_PACKAGE- Qt libraries listed in TIZEN_BUNDLED_QT_LIBS will be copied to package lib subdirectory. Additionally Qt plugins will be copied from $$[QT_INSTALL_PLUGINS] to data/plugins package subdirectory and qml plugins from $$[QT_INSTALL_QML] to data/qml package subdirectory. | ''' CONFIG''= TIZEN_STANDALONE_PACKAGE- Qt libraries listed in TIZEN_BUNDLED_QT_LIBS will be copied to package lib subdirectory. Additionally Qt plugins will be copied from $$[QT_INSTALL_PLUGINS] to data/plugins package subdirectory and qml plugins from $$[QT_INSTALL_QML] to data/qml package subdirectory. |
Revision as of 15:49, 5 March 2015
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine. Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean. |
This article describes how to make a Qt Hello World application for Tizen emulator. For actual Tizen device the steps are the same.
Assumptions
- prepared development environment according to build howto
- basic knowledge about Tizen tpk structure
Steps
- See hello world example from qtquickcontrols-tizen wip/tizen branch
git clone -b wip/tizen https://git.gitorious.org/qt/qtquickcontrols-tizen.git<code>
# Create your own application as you would develop for desktop
# Create tizen subdirectory and copy there manifest.xml file from helloworld example in qtquickcontrols-tizen repository.
# Also copy ''shared'' folder from helloworld example in qtquickcontrols-tizen repository. It contains default application icon. Path to this icon is already set in manifest.xml.
# Choose application name and new Application ID from manifest editor in QtCreator(double click on manifest file in project explorer).
# adapt application's project pro file for tizen with tizen scope:
tizen {
tizen_shared.files = shared/res CONFIG = TIZEN_STANDALONE_PACKAGE TIZEN_BUNDLED_QT_LIBS=Qt5Core Qt5DBus Qt5Qml Qt5Quick Qt5Widgets Qt5Gui Qt5Network load(tizen_app)
}
# adapt application's main.cpp file by adding OspMain function:
extern "C" int OspMain(int argc, char argv[])
{
return main(argc, argv);
}
- Now compile and deploy from QtCreator. You application should appear in homescreen on emulator or device (depending on Kit, you chose)
Additional explanation
Qmake Variables
' CONFIG= TIZEN_STANDALONE_PACKAGE- Qt libraries listed in TIZEN_BUNDLED_QT_LIBS will be copied to package lib subdirectory. Additionally Qt plugins will be copied from $$[QT_INSTALL_PLUGINS] to data/plugins package subdirectory and qml plugins from $$[QT_INSTALL_QML] to data/qml package subdirectory.
- tizen_shared.files - flies which will be copied to application package shared subdirectory. There are also qmake variables for other directories:
- tizen_bin
- tizen_data
- tizen_info
- tizen_lib
- tizen_res
- tizen_setting