Installing the Palm webOS SDK on Mandriva Linux

From Mandriva Community Wiki

Jump to: navigation, search

Installing the Palm webOS SDK on Mandriva Linux 2009.1 for testing Palm Pre emulator and developp applications for the webOS operating system used in the Palm Pre et Palm Pixi smartphones.

Contents

Introduction

The official name for Palm webOS SDK is Palm® Mojo™ SDK, but to help indexing and research in Google, the word Mojo was replaced by webOS in this article's title.

The list with several releases for Palm webOS SDK and the changes is available on the the webpage Release Notes Index and there is also a webpage with several links for starting with this SDK at Getting Started

Palm provide a package and a procedure for installing the Palm Mojo SDK and Palm Pre emulator on the Ubuntu Linux distribution, but there is nothing for Linux distribution that use RPM packages as Mandriva linux. So here the procedure for testing the Palm Pre emulator and make applications development for webOS with rhe Palm's SDK on our dear Mandriva Linux distribution.

Requirements installation : Sun JRE and VirtualBox

1) Install the Sun Java JRE 1.6 Verify that the following Java packages are installed (here in version 1.6.0_15):

  • java-1.6.0-sun
  • java-1.6.0-sun-alsa
  • java-1.6.0-sun-fonts
  • java-1.6.0-sun-jdbc
  • java-1.6.0-sun-plugin
  • java-access-bridge

To avoid conflicts and incompatibilities with the Sun's Java JRE 1.6, verify that the packages java-1.6.0-openjdk and gcj are uninstalled on your PC. The SDK is not compatible with java-1.6.0-openjdk et gcj.

2) In the Palm documentation, you nedd to install VirtualBox in the 3.0.x release, but the Mandriva packages available on the VirtualBox's website don't work correctly with Mandriva 2009.1 for the Palm SDK and Palm Pre emulator.

If you have a Mandriva Linux 2009.1 (alias Spring) : Consequently, the Mandriva Linux 2009.1's users must install Palm webOS SDK 1.2.0 and Novacom 0.3. The Palm webOS SDK 1.3.1 and Novacom 1.0 don't work with Virtualbox because there is only a 2.2.0 release for Mandriva Linux 2009.1, otherwise you will have a error message (see later in this article). So to 2009.1, you must install the following packages and their dependencies that are in the Mandriva repositeries :

  • virtualbox 2.2.0
  • dkms-virtualbox 2.2.0

If you have a Mandriva Linux 2010.0 : The Mandriva Linux 2010.0's users can install Palm webOS SDK 1.3.1 and Novacom 1.0 or Palm webOS SDK 1.2.0 and Novacom 0.3. So to 2010.0, you must install the following packages and their dependencies that are in the Mandriva repositeries :

  • virtualbox 3.0.8
  • dkms-virtualbox 3.0.8

Download and convert Palm webOS SDK's package from *.deb to *.rpm

3) Download the Palm MOJO SDK on the webpage "Download Palm® Mojo™ Software Development Kit

For Linux, there is only one package available for Ubuntu.

  • You can download this file palm-sdk_1.4.1-svn274946-sdk1436-pho427_i386.deb for Ubuntu that

we will turn later in RPM at the following URL : palm-sdk_1.4.1-svn274946-sdk1436-pho427_i386.deb

Older Palm webOS SDK release are available at :
palm-sdk_1.4.0-svn263907-sdk1428-pho420_i386.deb
palm-sdk_1.3.5-svn234138-sdk117-pho368_i386.deb
palm-sdk_1.3.1-svn222348-sdk100-pho314_i386.deb
palm-sdk_1.2.0-svn202408-sdk77-pho33_i386.deb

download one of these folowing files that is for your operating system : An Novacom 1.0.55 release to use with The Palm webOS SDK 1.4.1 is available at : 32 bits palm-novacom_1.0.55_i386.deb 64bits palm-novacom_1.0.55_amd64.deb

An old Novacom 1.0.46 release to use with The Palm webOS SDK 1.3.x is available at :
palm-novacom_1.0.51_i386.deb

An old Novacom 1.0.46 release to use with The Palm webOS SDK 1.3.x is available at :
palm-novacom_1.0.46_i386.deb

An old Novacom 0.3 release to use with The Palm webOS SDK 1.2.0 is available at :
palm-novacom_0.3-svn196852-hud21_i386.deb

4) Install the package : alien (here in 8.78 release) and the following dependencies as dpkg, etc...

5) Go in the folder where is the package palm-sdk_1.4.1-svn274946-sdk1436-pho427_i386.deb In command line with the root account (root is necessary to avoid problems with file permissions when creating package), launch the following comand line to convert the package from *.deb to *.rpm :

alien -r --scripts palm-sdk_1.4.1-svn274946-sdk1436-pho427_i386.deb

messages :

palm-sdk-1.4.1_svn274946_sdk1436-1.i386.rpm generated

then

alien -r --scripts palm-novacom_1.0.55_i386.deb

messages :

palm-novacom-1.0.55-2.i386.rpm generated

Install Palm webOS SDK *.rpm package

6) Now, we have 2 packages in RPM format for Mandriva Linux 2009.1, but they were compiled for Ubuntu and thus have dependencies to old libraries.

First, we're installing palm-novacom :

[root@localhost]# rpm -ivh palm-novacom-1.0.55-2.i386.rpm
Préparation...              ########################################### [100%]
1:palm-novacom           ########################################### [100%]
ln: création d'un lien symbolique `/etc/event.d/palm-novacomd': No file ou folder of this type
/var/tmp/rpm-tmp.Xa8AIi: line 33: stop: command not found
/var/tmp/rpm-tmp.Xa8AIi: line 36: start: command not found

Then we try to install the palm-sdk, but there is some error messages if you try to install them :

[root@localhost]# rpm -ivh palm-sdk-1.4.1_svn274946_sdk1436-1.i386.rpm
Error: Dependency requirements :
libgnutls.so.13 is required for palm-sdk-1.4.1_svn274946_sdk1436-1.i386
libicudata.so.38 is required for palm-sdk-1.4.1_svn274946_sdk1436-1.i386
libicui18n.so.38 is required for palm-sdk-1.4.1_svn274946_sdk1436-1.i386
libicuuc.so.38 is required for palm-sdk-1.4.1_svn274946_sdk1436-1.i386
libjpeg.so.62 is required for palm-sdk-1.4.1_svn274946_sdk1436-1.i386
devel(libgconf-2) is required for palm-sdk-1.4.1_svn274946_sdk1436-1.i386

Then we're installing the package without checking dependencies :

[root@localhost]# rpm -ivh --nodeps palm-sdk-1.4.1_svn274946_sdk1436-1.i386.rpm
Prepare...              ########################################### [100%]
  1:palm-sdk               ########################################### [100%]

Launch Palm Pré et Pixi emulator

7) Launch the Novacom daemon necessary for Palm Pre emulator with the root account :

[root@localhost]# exec /opt/Palm/novacom/novacomd &
[1] 19871
[2009/12/5 13:06:52] novacomd version novacomd-78 starting...
[2009/12/5 13:06:52] novacomctl socket ready to accept

Note:you can launch the NovaCom daemon with an other account than root account, but using the USB port (for Palm emulator ?) is not possible, because there is a specific message when the daemon was launched :

[root@localhost]# exec /opt/Palm/novacom/novacomd &
[1] 19871
[2009/12/5 13:04:49] novacomd version novacomd-78 starting...
[2009/12/5 13:04:49] novacomctl socket ready to accept
 [2009/12/5 13:04:49] need to run as super user to access usb 

Note !!! If you have error messages like :

[2010/1/5 20:42:27] novacom_usb_findandattach_thread:424: usb_handle 0x08061e70, bus 001 dev 005
[2010/1/5 20:42:27] novacom_usb_rx_thread:354: error reading packet,         retry, rc: -1, errno 9
[2010/1/5 20:42:27] novacom_usb_rx_thread:358: error reading packet, shutting down, rc: -1, errno 9

and that you use Novacom four updating the webOS ROM on your Palm Pre or Pixi, then you must use the workaround that you can find here. You need to use libusb 0.1.x et 1.0.x libraries from Ubuntu to launch Novacom.

Verify that the novacomd daemon is launched :

[root@localhost]# ps -edf | grep nova
root     19871 19710  0 13:06 pts/1    00:00:00 /opt/Palm/novacom/novacomd
root     19881 19710  0 13:06 pts/1    00:00:00 grep --color nova

8) Launch the emulator

# /usr/local/bin/palm-emulator
[root@localhost ~]# [2009/10/25 0:10:37] Incoming connection from 127.0.0.1/35153
[2009/10/25 0:10:37] novacom_go_online
[2009/10/25 0:10:37] novacom_register_device:188: dev 'be6a716afc0d30134df12d4a84250c4bd1c595d0' via tcp type emulator

Note : If you launch the Palm SDK 1.3.1's file /usr/local/bin/palm-emulator with VirtualBox 2.2.0 installed on your PC, you will have a window with the message : "Palm Emulator requires that VirtualBox 3.0.0 or greater is installed".

9) Then you can show a logo and a window in console mode launch the Linux 2.6 Kernel for WebOS used in the Palm Pre emulator. After all these steps, you can see Palm Pre desktop with icons.

Palm Pré and Pixi emulator use

10) For testing the Palm Pre in the emulator, a good manual is necessary. Use the user manuel for Palm Pre in english.

11) The Palm Pré have 2 area where you can use you fingers : the tactile scree and the gestures area. But the gestures area doesn't exist in Palm Pre emulator, but there is a reminder of the essential keys of keyboard shortcuts to use : reminder for gesture area.

Personal tools
In other languages