Build and Deploy for the Neo
The Greenphone SDK provides the
gph tool which is missing in the Qtopia SDK.
So you have to create and install the packages manually.
# set the headers to be used
source /opt/Qtopia/SDK/scripts/devel-ficgta01.sh
# create the Makefile
/opt/Qtopia/SDK/4.3.1/ficgta01/bin/qtopiamake
# create .pro file
/opt/Qtopia/SDK/4.3.1/ficgta01/bin/qtopiamake -project
Edit the files
<project>.desktop and
<project>.pro (samples below)
make
make packages
# copy package to server-directory
sudo cp pkg/qpe-packageName_1.0.0-1_arm.qpk /var/www/
cd /var/www
sudo chmod 664 qpe-packageName_1.0.0-1_arm.qpk
# add packages to server list
sudo /opt/Qtopia/SDK/scripts/mkPackages
To install the package on the Neo, do the following:
- Go to Settings -> Software Packages
- Select "Downloads" tab
- Select "Options" -> "Edit servers"
- Select "Options" -> "New"
- Enter a name and the IP of your SDK (http://192.168.0.200)
- Save it and than connect to that server
- Now your packages should be listed, and can be installed
Sample of a .pro-file
This file contains all files which consists your application of (HEADERS, SOURCES).
Further it contains all images which should be included into the package (PICS.*).
Also the package descriptions are made here (PKG.*)
qtopia_project(qtopia app)
TARGET=Mapviewer
CONFIG+=qtopia_main
CONFIG+=no_singleexec
CONFIG+=no_quicklaunch
CONFIG+=no_tr
# Input
HEADERS += src/mapviewer.h
SOURCES += src/main.cpp \
src/mapviewer.cpp
desktop.files=Mapviewer.desktop
desktop.path=/apps/Applications
desktop.hint=desktop
INSTALLS+=desktop
pics.files=pics/osm.png
pics.path=/pics/Mapviewer
pics.hint=pics
INSTALLS+=pics
pkg.name=Mapviewer
pkg.desc=Mapviewer Application
pkg.version=1.0.0-1
pkg.maintainer=Kai Winter
pkg.license=GPL
pkg.SxeCompatible=No
Sample of a .desktop-file
This file defines how the application should be added to the Qtopia menu.
[Desktop Entry]
Exec=Mapviewer
Icon=Mapviewer/osm.png
Type=Application
Name[]=Mapviewer
Encoding=UTF-8