<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Epakai</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Epakai"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Epakai"/>
	<updated>2026-04-07T09:30:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=PDK_on_Linux&amp;diff=18401</id>
		<title>PDK on Linux</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=PDK_on_Linux&amp;diff=18401"/>
		<updated>2011-09-09T12:47:28Z</updated>

		<summary type="html">&lt;p&gt;Epakai: /* Get CodeSourcery Linux cross-compiler */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The official Palm PDK development kit for writing native programs is not supported on Linux. &lt;br /&gt;
&lt;br /&gt;
The instructions on this page should allow you to get the official Palm webOS PDK for OSX working on Linux.  &lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
* Get the command line tool &amp;quot;xar&amp;quot;.  Some debian based systems have it, try apt-get install xar.  If not found, get it from http://code.google.com/p/xar/  (I needed package libxml2-dev to compile it) (I also needed openssl-dev to compile it on Ubuntu 10.10)&lt;br /&gt;
To install xar in a recent Debian/Ubuntu system and it isn't found via apt-get, you can download these packages and install them manually: Ubuntu: [http://packages.ubuntu.com/hardy/libxar1 libxar1], [http://packages.ubuntu.com/hardy/xar xar] Debian: [http://packages.debian.org/lenny/libxar1 libxar1], [http://packages.debian.org/lenny/xar xar]&lt;br /&gt;
&lt;br /&gt;
* You will need to have git installed to retrieve files from the WIDK repository. &lt;br /&gt;
* Building the pkg file requires Curl and libbz2-dev&lt;br /&gt;
* Since you're planning to write native software for webOS, this assumes you have things like gcc and make and normal developer stuff like that.  &lt;br /&gt;
&lt;br /&gt;
We will be using tools found in the WIDK cross-compile repository is really helpful as it already has functionality to download and extract the OSX PDK, most of which will &amp;quot;just work&amp;quot; on Linux.  Tools found in the WIDK repository can also download the CodeSourcery toolchain for Linux to replace the one included in the PDK, built for Darwin.&lt;br /&gt;
&lt;br /&gt;
==Setup==&lt;br /&gt;
===Get the Palm PDK using the Webos-Internals makefile===&lt;br /&gt;
&lt;br /&gt;
This downloads Palm's DMG file, downloads and patches a tool for converting DMG's, and runs it against the Palm DMG, ending up with a Xar format package file.  (filename ends in .pkg)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin-left:50px;&amp;quot;&amp;gt;	&lt;br /&gt;
git clone git://git.webos-internals.org/preware/cross-compile.git&lt;br /&gt;
cd cross-compile&lt;br /&gt;
make doctors/Palm_webOS_SDK-Mac-1.4.5.465.pkg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You now have a Palm_webOS_SDK-Mac-1.4.5.465.pkg in doctors/ .  &lt;br /&gt;
&lt;br /&gt;
===Extract that .pkg file===&lt;br /&gt;
&lt;br /&gt;
Now let's extract it into /  (this will create /opt/PalmPDK)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin-left:50px;&amp;quot;&amp;gt;&lt;br /&gt;
xar -xf doctors/Palm_webOS_SDK-Mac-1.4.5.465.pkg palmpdk.pkg&lt;br /&gt;
sudo sh -c 'gzip -cd palmpdk.pkg/Payload | (cd /; cpio -i)'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You now have a Palm PDK in /opt/PalmPDK, but you don't have a working cross-compile toolchain, because the one Palm supplied was for osX / Darwin  not Linux.  We need to fix that.&lt;br /&gt;
&lt;br /&gt;
===Get CodeSourcery Linux cross-compiler===&lt;br /&gt;
Install the CodeSourcery Linux cross-compiler toolchain where Palm's toolchain built for OSX was.&lt;br /&gt;
&lt;br /&gt;
During 'make toolchain' it currently fails to download two files. You can modify the makefile or manually fetch them and place them in cross-compile/downloads.&lt;br /&gt;
[ftp://ftp2.jp.debian.org/pub/sourceforge/m/project/mr/mrdd/arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2]&lt;br /&gt;
[http://sources.nslu2-linux.org/sources/arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2]&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin-left:50px&amp;quot;&amp;gt;&lt;br /&gt;
make toolchain&lt;br /&gt;
sudo cp -r toolchain/arm-2007q3 /opt/PalmPDK&lt;br /&gt;
cd /opt/PalmPDK&lt;br /&gt;
sudo mv arm-gcc arm-gcc-darwin&lt;br /&gt;
sudo ln -s arm-2007q3 arm-gcc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Someone who is familiar with the PDK should test this at this point to see if you can actually use it in the proper ways.&lt;br /&gt;
&lt;br /&gt;
== Alternative setup ==&lt;br /&gt;
&lt;br /&gt;
The github project [http://github.com/kayahr/linux-webos-pdk linux-webos-pdk] automates the process of creating a webOS PDK for Linux. The only requirements are wget, 7zip, pax and patch. All these requirements are available even in Debian Stable (So I guess all other distributions provide them, too).&lt;br /&gt;
&lt;br /&gt;
To install the PDK just do this:&lt;br /&gt;
&lt;br /&gt;
  $ git clone git://github.com/kayahr/linux-webos-pdk.git&lt;br /&gt;
  $ cd linux-webos-pdk&lt;br /&gt;
  $ ./linux-webos-pdk.sh&lt;br /&gt;
  $ sudo mv opt/PalmPDK /opt&lt;br /&gt;
&lt;br /&gt;
After this the PDK is installed in /opt/PalmPDK and ready to be used. This PDK is successfully used to create the official [http://wiki.scummvm.org/index.php/Compiling_ScummVM/WebOS ScummVM app] for WebOS and all of its required libraries.&lt;/div&gt;</summary>
		<author><name>Epakai</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=PDK_on_Linux&amp;diff=18399</id>
		<title>PDK on Linux</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=PDK_on_Linux&amp;diff=18399"/>
		<updated>2011-09-09T12:32:51Z</updated>

		<summary type="html">&lt;p&gt;Epakai: /* Prerequisites */ Added links to Debian lenny packages of xar &amp;amp; libxar1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The official Palm PDK development kit for writing native programs is not supported on Linux. &lt;br /&gt;
&lt;br /&gt;
The instructions on this page should allow you to get the official Palm webOS PDK for OSX working on Linux.  &lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
* Get the command line tool &amp;quot;xar&amp;quot;.  Some debian based systems have it, try apt-get install xar.  If not found, get it from http://code.google.com/p/xar/  (I needed package libxml2-dev to compile it) (I also needed openssl-dev to compile it on Ubuntu 10.10)&lt;br /&gt;
To install xar in a recent Debian/Ubuntu system and it isn't found via apt-get, you can download these packages and install them manually: Ubuntu: [http://packages.ubuntu.com/hardy/libxar1 libxar1], [http://packages.ubuntu.com/hardy/xar xar] Debian: [http://packages.debian.org/lenny/libxar1 libxar1], [http://packages.debian.org/lenny/xar xar]&lt;br /&gt;
&lt;br /&gt;
* You will need to have git installed to retrieve files from the WIDK repository. &lt;br /&gt;
* Building the pkg file requires Curl and libbz2-dev&lt;br /&gt;
* Since you're planning to write native software for webOS, this assumes you have things like gcc and make and normal developer stuff like that.  &lt;br /&gt;
&lt;br /&gt;
We will be using tools found in the WIDK cross-compile repository is really helpful as it already has functionality to download and extract the OSX PDK, most of which will &amp;quot;just work&amp;quot; on Linux.  Tools found in the WIDK repository can also download the CodeSourcery toolchain for Linux to replace the one included in the PDK, built for Darwin.&lt;br /&gt;
&lt;br /&gt;
==Setup==&lt;br /&gt;
===Get the Palm PDK using the Webos-Internals makefile===&lt;br /&gt;
&lt;br /&gt;
This downloads Palm's DMG file, downloads and patches a tool for converting DMG's, and runs it against the Palm DMG, ending up with a Xar format package file.  (filename ends in .pkg)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin-left:50px;&amp;quot;&amp;gt;	&lt;br /&gt;
git clone git://git.webos-internals.org/preware/cross-compile.git&lt;br /&gt;
cd cross-compile&lt;br /&gt;
make doctors/Palm_webOS_SDK-Mac-1.4.5.465.pkg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You now have a Palm_webOS_SDK-Mac-1.4.5.465.pkg in doctors/ .  &lt;br /&gt;
&lt;br /&gt;
===Extract that .pkg file===&lt;br /&gt;
&lt;br /&gt;
Now let's extract it into /  (this will create /opt/PalmPDK)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin-left:50px;&amp;quot;&amp;gt;&lt;br /&gt;
xar -xf doctors/Palm_webOS_SDK-Mac-1.4.5.465.pkg palmpdk.pkg&lt;br /&gt;
sudo sh -c 'gzip -cd palmpdk.pkg/Payload | (cd /; cpio -i)'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You now have a Palm PDK in /opt/PalmPDK, but you don't have a working cross-compile toolchain, because the one Palm supplied was for osX / Darwin  not Linux.  We need to fix that.&lt;br /&gt;
&lt;br /&gt;
===Get CodeSourcery Linux cross-compiler===&lt;br /&gt;
Install the CodeSourcery Linux cross-compiler toolchain where Palm's toolchain built for OSX was.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin-left:50px&amp;quot;&amp;gt;&lt;br /&gt;
make toolchain&lt;br /&gt;
sudo cp -r toolchain/arm-2007q3 /opt/PalmPDK&lt;br /&gt;
cd /opt/PalmPDK&lt;br /&gt;
sudo mv arm-gcc arm-gcc-darwin&lt;br /&gt;
sudo ln -s arm-2007q3 arm-gcc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Someone who is familiar with the PDK should test this at this point to see if you can actually use it in the proper ways.&lt;br /&gt;
&lt;br /&gt;
== Alternative setup ==&lt;br /&gt;
&lt;br /&gt;
The github project [http://github.com/kayahr/linux-webos-pdk linux-webos-pdk] automates the process of creating a webOS PDK for Linux. The only requirements are wget, 7zip, pax and patch. All these requirements are available even in Debian Stable (So I guess all other distributions provide them, too).&lt;br /&gt;
&lt;br /&gt;
To install the PDK just do this:&lt;br /&gt;
&lt;br /&gt;
  $ git clone git://github.com/kayahr/linux-webos-pdk.git&lt;br /&gt;
  $ cd linux-webos-pdk&lt;br /&gt;
  $ ./linux-webos-pdk.sh&lt;br /&gt;
  $ sudo mv opt/PalmPDK /opt&lt;br /&gt;
&lt;br /&gt;
After this the PDK is installed in /opt/PalmPDK and ready to be used. This PDK is successfully used to create the official [http://wiki.scummvm.org/index.php/Compiling_ScummVM/WebOS ScummVM app] for WebOS and all of its required libraries.&lt;/div&gt;</summary>
		<author><name>Epakai</name></author>
	</entry>
</feed>