Difference between revisions of "Compiling ScummVM/WebOS"

Jump to navigation Jump to search
152 bytes removed ,  17:23, 2 February 2016
m
Add notice about no longer existing Palm App Catalog
m (Corrected variable name)
m (Add notice about no longer existing Palm App Catalog)
 
(10 intermediate revisions by the same user not shown)
Line 3: Line 3:
=== Install the WebOS SDK ===
=== Install the WebOS SDK ===


Download the latest [https://developer.palm.com/content/resources/develop/sdk_pdk_download.html WebOS SDK] from the [https://developer.palm.com/ Palm Developer Center] and install it. This is an Ubuntu package for x86 but it also works on Debian and even on x86_64 as described on the download page. When successful you will end up with a ''/opt/PalmSDK/Current'' directory and you are able to call programs like ''palm-package'' from the command-line. The SDK needs a Java 6 Runtime Environment so you have to install that, too.
Download the latest [https://developer.palm.com/content/resources/develop/sdk_pdk_download.html WebOS SDK] from the [https://developer.palm.com/ Palm Developer Center] and install it. The Ubuntu package is for x86 but it also works on Debian and even on x86_64 as described on the download page. When successfully installed you will end up with a ''/opt/PalmSDK/Current'' and a ''/opt/PalmPDK'' directory and you are able to call programs like ''palm-package'' from the command-line. The SDK needs a Java 6 Runtime Environment so you have to install that, too.


<syntaxhighlight type="bash">
'''Palm has removed the download pages for the WebOS PDK. The old download page is [https://web.archive.org/web/20130527051214/https://developer.palm.com/content/resources/develop/sdk_pdk_download.html archived here]. The files are also [http://www.ailis.de/~k/permdata/20140715/palm/ archived here]'''.
sudo apt-get install openjdk-6-jre
wget https://cdn.downloads.palm.com/sdkdownloads/2.1.0.519/sdkBinaries/palm-sdk_2.1.0-svn409992-pho519_i386.deb
sudo dpkg -i --force-architecture palm-sdk_2.1.0-svn409992-pho519_i386.deb
</syntaxhighlight>


=== Install the WebOS PDK ===
=== Fixing the WebOS PDK ===


The PDK is needed for compiling native applications for WebOS. Unfortunately Palm doesn't provide an official PDK for Linux. But the PDK is a pretty simple piece of software which can be hacked together by
Since [https://github.com/scummvm/scummvm/commit/4d13d44f8a2db8f887e285dbcbd3bb75ccc0ae2e Commit #4d13d44] ScummVM includes some SDL headers which are incorrectly configured in the WebOS PDK. This causes X11 related error messages (WebOS has no X11). To fix this simply edit the file ''/opt/PalmPDK/include/SDL/SDL_config.h'' and remove or comment-out the following line:
using the PDK for MacOS X and replacing the Mac binaries of the toolchain with the corresponding linux binaries. The [https://github.com/kayahr/linux-webos-pdk linux-webos-pdk project] can be used for creating a WebOS PDK for Linux:


<syntaxhighlight type="bash">
<syntaxhighlight type="c">
sudo apt-get install wget p7zip-full pax patch git
#define SDL_VIDEO_DRIVER_X11 1
git clone git://github.com/kayahr/linux-webos-pdk.git
cd linux-webos-pdk
./linux-webos-pdk
sudo mv opt/PalmPDK /opt/PalmPDK
</syntaxhighlight>
</syntaxhighlight>
When the ''linux-webos-pdk'' script asks for the toolchain to use then choose version ''2011.03-41''.
After this the PDK is installed in ''/opt/PalmPDK''.


=== Environment variables ===
=== Environment variables ===
Line 47: Line 34:


<syntaxhighlight type="bash">
<syntaxhighlight type="bash">
wget http://palm.cdnetworks.net/opensource/2.1.0/zlib-1.2.3.tar.bz2
wget http://downloads.help.palm.com/opensource/3.0.5/zlib-1.2.3.tar.bz2
tar xvfj zlib-1.2.3.tar.bz2
tar xvfj zlib-1.2.3.tar.bz2
wget http://palm.cdnetworks.net/opensource/2.1.0/zlib-1.2.3-patches.tgz
wget http://downloads.help.palm.com/opensource/3.0.5/zlib-1.2.3-patches.tgz
tar xvfz zlib-1.2.3-patches.tgz  -O | patch -d zlib-1.2.3
tar xvfz zlib-1.2.3-patches.tgz  -O | patch -d zlib-1.2.3
cd zlib-1.2.3
cd zlib-1.2.3
Line 71: Line 58:
     --disable-xmms-plugin --disable-cpplibs --disable-rpath \
     --disable-xmms-plugin --disable-cpplibs --disable-rpath \
     --disable-ogg --disable-oggtest \
     --disable-ogg --disable-oggtest \
     CFLAGS="-mcpu=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp"
     CFLAGS="-mcpu=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp -O1"
make install
make install
</syntaxhighlight>
</syntaxhighlight>
Line 170: Line 157:
       --default-dynamic \
       --default-dynamic \
       --enable-release \
       --enable-release \
      --disable-debug\
       --enable-zlib \
       --enable-zlib \
       --enable-tremor \
       --enable-tremor \
Line 194: Line 182:


== Distributing on App Catalog ==
== Distributing on App Catalog ==
'''NOTICE: The Palm App Catalog does not exist anymore. So the information in this section has only historical value.'''


=== Increasing the package version ===
=== Increasing the package version ===


''VER_PACKAGE'' in ''backends/platforms/webos/webos.mk'' must be set to a number which is higher than the currently used package version in the app catalog.  So when creating an updated package for ScummVM 1.3.9 and the current ScummVM package in the app catalog is version 1.3.0902 then you must set VER_PACKAGE to 3 to create the ScummVM package with version 1.3.0903.  Yeah, I know that's ugly but WebOS package version numbers are restricted to three numeric components.
''VER_PACKAGE'' in ''backends/platform/webos/webos.mk'' must be set to a number which is higher than the currently used package version in the app catalog.  So when creating an updated package for ScummVM 1.3.9 and the current ScummVM package in the app catalog is version 1.3.0902 then you must set VER_PACKAGE to 3 to create the ScummVM package with version 1.3.0903.  Yeah, I know that's ugly but WebOS package version numbers are restricted to three numeric components.


=== App ID and name ===
=== App ID and name ===
40

edits

Navigation menu