Submit Meego Application for Intel AppUP(SM)Center Composite MeeGo™ Courseware Submit Meego Application for Intel AppUP(SM)Center
Meego Apps Platforms for Testing & Validation 1st Choice Develop: Meego Apps on Windows/Linux Platform Using Meego SDK Testing and Valiadating: Real Meego Device(tabet, netbook, phone, IVI etc) (Lab 1) 2nd Choice Testing and Valiadating: Virtual Meego on Oracle Virtualbox (Lab 2) 3rd Choice Testing and Valiadating: Meego emulator under Qemu provided by Meego SDK (Lab 3)
Lab 01: Real Device (Lenovo S10 Convertible or ExoPC Tablet)for Apps testing, validating and submission
Lab 1: Prerequisite Step 1:Installing MeeGo* Tablet OS on Real Device: http://appdeveloper.intel.com/en-us/article/installing-meego-tablet-os Step 2:Building a MeeGo* Application for AppUp(SM) using Windows* Development Environment: http://appdeveloper.intel.com/en-us/article/building-meego-application-appup-using-windows-development-environment Or Step 3:Building MeeGo* Application Using Linux* Development Environment http://appdeveloper.intel.com/en-us/articles/building-meego-application-appup-using-linux-development-environment
Setting up MeeGo Netbook as Development Environment Install MeeGo Login to MeeGo, Applications -> System Tools -> Terminal “sudo zypper refresh” ; “sudo zypper install –t pattern development-libs development-tools” ; “sudo zypper install –t pattern x-software-development” ; “sudo zypper install qt-creator qt-devel-tools qt-designer qt-qmake qt-qmlviewer automoc4” Other Qt™ packages: “sudo zypper search qt”
Install Appup ™ Meego SDK for Windows Download the Software Development Kit (SDK) The Intel AppUp™ Software Development Kit (SDK) for native MeeGo* application development provides many developer benefits including authorization, crash reporting, and a consumer store client emulator for testing. All submitted applications with the exception of open source applications must integrate with the beta version of the SDK for validation Download and Install Appup(SM) Meego SDK for Windows: http://appdeveloper.intel.com/en-us/sdk
Putty: Use Putty terminal to connect to Virtual Meego or Emulator (127 Putty: Use Putty terminal to connect to Virtual Meego or Emulator (127.0.0.1) or Real Device (Real IP Address) 2/19/20192/19/2019
WinSCP: Use Winscp to upload files to to Virtual Meego or Emulator (127.0.0.1) Real Device (Real IP Address) 2/19/20192/19/2019
模拟器中安装 Debugger rpm –i utfs-client-1.959-1.3.i586.rpm rpm –i mad-developer-2.0-2.1.i586.rpm rpm –i appup-sdk-debugger-1.1.0-29.i386.rpm 2/19/20192/19/2019
1 2 3 远程IP网络上的Meego测试平台准备 Debugger 确定IP地址及启动 Meego Appup Debugger:( 点击如图屏幕上三角区域进入My Tablet.写下IP地址,然后启动Debugger) 1 2 Debugger 3 Home 2/19/20192/19/2019
启动Meego SDK里的QT Creator 点击 File Open File or Project 2/19/20192/19/2019
打开 Meego Appup SDK 样本 2/19/20192/19/2019 C:\Program Files\Intel\IntelAppUpSDKMeeGo\Cpp\Samples\cpp 文件夹 2/19/20192/19/2019
Step 1: Verify that the Qt Creator project has statically linked the application to the SDK Library. The following lines must appear in the Qt Creator application project (.pro) files: INCLUDEPATH += "$$(IADP_SDK_DIR_MEEGO)Cpp\include" 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" 2/19/20192/19/2019
Step 2: Include the SDK Header File In the declaration section at the start of the C++ source file, include the SDK header file reference, as shown below. #include “adpcppf.h” 2/19/20192/19/2019
Step 3:Insert SDK Authorization Code Using Authorized Debug ID 在这次动手实验中,我们使用debugger ID。所以可以不改动 com::intel::adp::Application *pBasicSampleApp = NULL; try{ pBasicSampleApp = new Application(ADP_DEBUG_APPLICATIONID); 2/19/20192/19/2019
设定QT选项 点击QT菜单中 Tools ->Options 2/19/20192/19/2019
选择正确的QT版本。若有红X,则点击Rebuild 2/19/20192/19/2019
Set up remote Connection with ExoPC Tablet 2/19/20192/19/2019
使用实际Lenovo Tablet测试验证应用 在Host Name: 选项输入你在第一步骤抄下的IP 地址。 2/19/20192/19/2019
在Project里Targets选项下去除 Shadow build 2/19/20192/19/2019
选择正确的QT版本(Tablet,Handset,Netbook 点击QT左边菜单中的Projects。然后选择你所需要的QT版本。 我们的实验可以选择其中任何一个版本 2/19/20192/19/2019
点击红圈中绿色三角执行,并直接推到Tablet上 2/19/20192/19/2019
Meego应用在IP网络上远程测试批准 QT 执行后直接送远程Meego 平台,在QT Application Out 显示如下 安装在远程Meego 平台上的Appup Debugger 收到推送后执行验证API及批准应用 2/19/20192/19/2019
Lab 02: Testing and Validating Meego Application using Virtual Meego Tablet on Oracle Virtualbox 2/19/20192/19/2019
Lab 2: Prerequisite A Step by Step Guide: Build A Virtual Meego Tablet on Oracle Virtualbox for Meego Apps Development and Testing http://origin-software.intel.com/en-us/blogs/2011/05/23/a-step-by-step-guide-build-a-virtual-meego-tablet-on-oracle-virtualbox-for-meego-apps-development-and-testing/
Platform Environment and Emulator Qemu and Emulator Start MADDE Terminal(Location:Start >All Programs > MeeGo 1.2 SDK > MADDE Terminal) 查看可用的平台环境与模拟器,运行如下命令: mad-admin list 安装netbook平台环境示范,运行如下命令: mad-admin create -f meego-netbook-ia32-w32-1.1 安装netbook模拟器,运行如下命令: mad-admin create -e -f meego-netbook-ia32-w32-qemu-1.1.20101031.2037-sda-runtime 2/19/20192/19/2019
启动模拟器加速器kqemu net start kqemu 使用管理员用户启动命令控制台: 开始 > 所有程序 > 附件 > 命令提示符 选择后鼠标右键Run as Administrator。 启动命令控制台后,运行如下命令: net start kqemu 2/19/20192/19/2019
启动MeeGo模拟器 (inside QTCreator) 命令行的方式启动模拟器: 开始 > 所有程序 > MeeGo SDK > MADDE Terminal启动)下运行如下命令: mad list。查看目标平台列表以及模拟器列表 mad remote -r <runtime> poweron <runtime> 内容为已经安装的模拟器名字 2/19/20192/19/2019
首先启动模拟器加速器kqemu net start kqemu 使用管理员用户启动命令控制台: 开始 > 所有程序 > 附件 > 命令提示符 选择后鼠标右键Run as Administrator。 启动命令控制台后,运行如下命令: net start kqemu 2/19/20192/19/2019
启动Meego SDK里的QT Creator 点击 File Open File or Project 2/19/20192/19/2019
打开 Meego Appup SDK 样本 2/19/20192/19/2019 C:\Program Files\Intel\IntelAppUpSDKMeeGo\Cpp\Samples\cpp 文件夹 2/19/20192/19/2019
使用Meego模拟器测试和验证应用 2/19/20192/19/2019
核实平台环境以及模拟器已经安装 启动MADDE Terminal(位置:开始 > 所有程序 > MeeGo 1.2 SDK > MADDE Terminal) 查看可用的平台环境与模拟器,运行如下命令: mad-admin list 如果没有看到任何 Installed 模拟器。则向老师求助安装下来包: 安装netbook平台环境示范,运行如下命令: mad-admin create -f meego-netbook-ia32-1.1.2 安装netbook模拟器,运行如下命令: mad-admin create -e -f meego-netbook-ia32-qemu-1.1.20101031.2037-sda-runtime 2/19/20192/19/2019
启动MeeGo模拟器 (点击 Start Debugging) 启动Meego 模拟器:使用命令行的方式启动: 开始 > 所有程序 > MeeGo SDK > MADDE Terminal启动)下运行如下命令: mad list。查看目标平台列表以及模拟器列表 mad remote -r <runtime> poweron <runtime> 内容为已经安装的模拟器名字 2/19/20192/19/2019
使用WinSCP将Appup Debugger 的RPM上载到模拟器中。注意Port Number 是 6666 2/19/20192/19/2019
将Meego Appup Debugger 载入模拟器中 将文件上载到 /home/meego/Downloads 文件夹。使用 root户头安装 (rpm -i xxx)。使用 Appup Meego SDK 1.2 Preview 需要下列文件 2/19/20192/19/2019
使用Putty客户端连接到模拟器 2/19/20192/19/2019
使用Putty在模拟器中按下列顺序安装 Debugger rpm –i utfs-client-1.959-1.3.i586.rpm rpm –i mad-developer-2.0-2.1.i586.rpm rpm –i appup-sdk-debugger-1.1.0-29.i386.rpm 2/19/20192/19/2019
点击红圈中绿色三角执行,并直接推到模拟器上 2/19/20192/19/2019
Meego应用在模拟器中测试批准 QT 执行后直接送送模拟器中,在QT Application Out 显示如下 安装在模拟器上的Appup Debugger 收到推送后执行验证API及批准应用 2/19/20192/19/2019
Lab 03: Testing and Validating Meego Application using Meego emulator under Qemu
Lab 3: Prerequisite Getting started with the MeeGo SDK for Windows: http://wiki.meego.com/SDK/Docs/1.2/Getting_started_with_the_MeeGo_SDK_for_Windows
Platform Environment and Emulator Qemu and Emulator Start MADDE Terminal(Location:Start >All Programs > MeeGo 1.2 SDK > MADDE Terminal) 查看可用的平台环境与模拟器,运行如下命令: mad-admin list 安装netbook平台环境示范,运行如下命令: mad-admin create -f meego-netbook-ia32-w32-1.1 安装netbook模拟器,运行如下命令: mad-admin create -e -f meego-netbook-ia32-w32-qemu-1.1.20101031.2037-sda-runtime 2/19/20192/19/2019
启动模拟器加速器kqemu net start kqemu 使用管理员用户启动命令控制台: 开始 > 所有程序 > 附件 > 命令提示符 选择后鼠标右键Run as Administrator。 启动命令控制台后,运行如下命令: net start kqemu 2/19/20192/19/2019
启动MeeGo模拟器 (inside QTCreator) 命令行的方式启动模拟器: 开始 > 所有程序 > MeeGo SDK > MADDE Terminal启动)下运行如下命令: mad list。查看目标平台列表以及模拟器列表 mad remote -r <runtime> poweron <runtime> 内容为已经安装的模拟器名字 2/19/20192/19/2019
首先启动模拟器加速器kqemu net start kqemu 使用管理员用户启动命令控制台: 开始 > 所有程序 > 附件 > 命令提示符 选择后鼠标右键Run as Administrator。 启动命令控制台后,运行如下命令: net start kqemu 2/19/20192/19/2019
启动Meego SDK里的QT Creator 点击 File Open File or Project 2/19/20192/19/2019
打开 Meego Appup SDK 样本 2/19/20192/19/2019 C:\Program Files\Intel\IntelAppUpSDKMeeGo\Cpp\Samples\cpp 文件夹 2/19/20192/19/2019
使用Meego模拟器测试和验证应用 2/19/20192/19/2019
核实平台环境以及模拟器已经安装 启动MADDE Terminal(位置:开始 > 所有程序 > MeeGo 1.2 SDK > MADDE Terminal) 查看可用的平台环境与模拟器,运行如下命令: mad-admin list 如果没有看到任何 Installed 模拟器。则向老师求助安装下来包: 安装netbook平台环境示范,运行如下命令: mad-admin create -f meego-netbook-ia32-1.1.2 安装netbook模拟器,运行如下命令: mad-admin create -e -f meego-netbook-ia32-qemu-1.1.20101031.2037-sda-runtime 2/19/20192/19/2019
启动MeeGo模拟器 (点击 Start Debugging) 启动Meego 模拟器:使用命令行的方式启动: 开始 > 所有程序 > MeeGo SDK > MADDE Terminal启动)下运行如下命令: mad list。查看目标平台列表以及模拟器列表 mad remote -r <runtime> poweron <runtime> 内容为已经安装的模拟器名字 2/19/20192/19/2019
使用WinSCP将Appup Debugger 的RPM上载到模拟器中。注意Port Number 是 6666 2/19/20192/19/2019
将Meego Appup Debugger 载入模拟器中 将文件上载到 /home/meego/Downloads 文件夹。使用 root户头安装 (rpm -i xxx)。使用 Appup Meego SDK 1.2 Preview 需要下列文件 2/19/20192/19/2019
使用Putty客户端连接到模拟器 2/19/20192/19/2019
使用Putty在模拟器中按下列顺序安装 Debugger rpm –i utfs-client-1.959-1.3.i586.rpm rpm –i mad-developer-2.0-2.1.i586.rpm rpm –i appup-sdk-debugger-1.1.0-29.i386.rpm 2/19/20192/19/2019
点击红圈中绿色三角执行,并直接推到模拟器上 2/19/20192/19/2019
Meego应用在模拟器中测试批准 QT 执行后直接送送模拟器中,在QT Application Out 显示如下 安装在模拟器上的Appup Debugger 收到推送后执行验证API及批准应用 2/19/20192/19/2019
Backup Slides
More Qt Toolchain Qmake Help to generate Makefile for compilation Example: Generate Microsoft Visual Studio project: “qmake -tp vc yourapp.pro” Generate Intel® C++ compiler 64-bit mode Makefile: “qmake -spec linux-icc-64 yourapp.pro” Generate Mac* Xcode project: “ qmake -spec macx-xcode yourapp.pro” Moc Integrated with Qmake to handle Qt* C++ extensions Rcc Integrated with Qmake for bundling static resources
GNU Tools MeeGo supports all standard GNU toolchains such as gcc, gdb. Recommended gcc compiler flags for performance and optimization: -march=atom -mtune=atom -O3 –flto –ffast-math More Info: http://www.intel.com/products/processor/manuals/ Intel® 64 and IA-32 Architectures Optimization Reference Manual
Recap On a 32-bit Window* system, install MeeGo* SDK (from meego.com) Install MeeGo* AppUp SDK for Windows* (from appdeveloper.intel.com) Develop in Qt* Tool Chains such as QtCreator Test run inside Qemu Generate RPM package from QtCreator (optional) Deploy RPM package on actual MeeGo* device for final testing
Summary AppUpSM SDK is optional but highly recommended – DRM, crash reporting, other future offers Allows C, C++, Ruby, Python, Perl (AppUp SDK only for C, C++) Must follow MeeGo* Compliance Guideline (from meego.com) and AppUpSM Validation Guideline (from appdeveloper.intel.com) Accepts MeeGo* netbook apps and MeeGo* tablet apps
Summary and Resources Get started today! App developer portal: http://appdeveloper.intel.com Intel Tools: http://appdeveloper.intel.com/en-us/meego-sdk-suite Developer incentives and opportunities: http://appdeveloper.intel.com/opportunities