How to integrate Intel AppUp™ SDK and create RPM package for MeeGo* applications
In this article I will show you how to prepare your MeeGo* app to be validated in the Intel AppUpSM Center. This article is based on the project from my another article Modern mobile applications with Qt* and QML. No changes will be made in the project source code. Thanks to Qt*, our Windows* application can be launched on MeeGo* without any changes in code. All you need is just to recompile it.
Integrating AppUp™ SDK
Launch Qt Creator* installed with MeeGo* SDK. If you don't have MeeGo* SDK installed, here is a link. On this page you can find everything you need to start developing MeeGo* apps. Open project, open project file (4Toddler.pro) and add following lines:
# Add path to Intel AppUp™ SDK headers directory
INCLUDEPATH += "$$(IADP_SDK_DIR_MEEGO)Cpp/include"
# Add required libraries
LIBS += -lxml2 -lpthread
LIBS += "$$(IADP_SDK_DIR_MEEGO)Cpp/lib/libadpruntime.a" \
"$$(IADP_SDK_DIR_MEEGO)Cpp/lib/libadpcore.a" \
"$$(IADP_SDK_DIR_MEEGO)Cpp/lib/libxerces-c.a" \
"$$(IADP_SDK_DIR_MEEGO)Cpp/lib/libxml-security-c.a" \
"$$(IADP_SDK_DIR_MEEGO)Cpp/lib/libcrypto.a"
Next open main.cpp file. Include header file from the Intel AppUp™ SDK:
#include "adpcppf.h"
And new function:
bool IsAuthorized()
{
#ifdef QT_DEBUG
// Do not check authorization for debug version
return true;
没有评论:
发表评论