Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update build script to fix build errors

Open-webos-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@palm.com>

Change-Id: Iadbac03d89292dac3e2884dd7e4d3d521626c84f
  • Loading branch information...
commit f020e74b8aa3f9bd787f31b58a49c2547d62df75 1 parent 9279f02
Roger Stringer RS102839 authored
Showing with 37 additions and 28 deletions.
  1. +21 −18 README.md
  2. +15 −9 build-webos-desktop.sh
  3. +1 −1  run-luna-sysmgr.sh
39 README.md
View
@@ -2,8 +2,6 @@ build-desktop
=============
The scripts in this repository are used to build, install, and run Open webOS on an Ubuntu Linux desktop computer.
-
-This is the current active development repository for the desktop build scripts for Open webOS.
How to Build on Ubuntu Linux
@@ -15,8 +13,8 @@ Note: Builds on Ubuntu Server (or other non-desktop) installations are not curr
Note: Builds on 64-bit machines are not currently supported (or working).
-a) Prerequisites
-----------------
+Prerequisites
+-------------
* Ensure you have a fast and reliable internet connection since you'll be downloading about 500MB
@@ -50,35 +48,41 @@ a) Prerequisites
* cmake version 2.8.7 will be fetched and used for the build; there is no need to install it.
-b) Getting the code
--------------------
+Downloading
+-----------
+
+Download the zip file and unzip it into an empty directory or better yet, "git clone" the repository.
-Get the build-desktop zip file and unzip it into a known directory or better yet, "git clone" the repository.
-
-c) Building Open webOS
-----------------------
+
+Building Open webOS
+-------------------
Change to the folder where you downloaded the build-desktop scripts and run the build script:
./build-webos-desktop.sh
-Note: This will typically take one to three hours, depending on the speed of your system and of your internet connection. The build will go much faster on a multi-core machine.
+Note: This will typically take one to three hours, depending on the speed of your system and of your internet connection. The build will go much faster on a multi-core machine.
+If you experience build errors, try the following:
+ * Verify you are on a compatible system
+ * Reapply the prerequisite components
+ * Run the build script with the clean parameter: "./build-webos-desktop.sh clean"
-d) Installing Open webOS
-------------------------
+Installing Open webOS
+---------------------
Change to the folder where the build-desktop scripts are located (if necessary) and run the "install" script to create expected folders and symlinks into various system directories:
sudo ./install-webos-desktop.sh
-In general, you should only have to run the install script once (unless you update to a newer version).
+In general, you should only have to run the install script once (unless you update to a newer version of the script).
You can run "sudo ./install-webos-desktop.sh remove" to remove the system folders and symlinks.
+
How to Run on Ubuntu Linux
==========================
-Please note that this version of the build provides minimal runtime functionality.
+Please note that this version of the build does not provide full runtime functionality.
1) Change to the folder where the build-desktop scripts are located (if necessary).
@@ -92,9 +96,9 @@ Please note that this version of the build provides minimal runtime functionalit
./service-bus.sh services
- * The message __Services started!__ indicates success. You can safely ignore error messages.
+ * The message `Services started!` indicates success. You can safely ignore error messages.
-4) The first time you start, you'll need to create a default account:
+4) The first time you start, you'll need to create a default account:
./service-bus.sh init
@@ -111,7 +115,6 @@ Please note that this version of the build provides minimal runtime functionalit
# Known Issues
* Error messages are generated in the LunaService log output, which can be ignored.
- * Since the components supporting "Just Type" have not yet been released, attempting to enter text in the "Just Type" field will not work as expected.
* The email application may not work properly.
# Copyright and License Information
24 build-webos-desktop.sh
View
@@ -17,6 +17,8 @@
#
# LICENSE@@@
+export VERSION=7
+
if [ "$1" = "clean" ] ; then
export SKIPSTUFF=0
set -e
@@ -33,7 +35,7 @@ elif [ "$1" = "--help" ] ; then
echo " "
exit
elif [ "$1" = "--version" ] ; then
- echo "Desktop build script for Open webOS #3"
+ echo "Desktop build script for Open webOS #${VERSION}"
exit
elif [ -n "$1" ] ; then
echo "Parameter $1 not recognized"
@@ -237,9 +239,7 @@ function build_nyx-lib
######################
function build_qt4
{
- if [ ! -d $BASE/qt4 ] ; then
- do_fetch openwebos/qt $1 qt4
- fi
+ do_fetch openwebos/qt $1 qt4
export STAGING_DIR=${LUNA_STAGING}
if [ ! -f $BASE/qt-build-desktop/Makefile ] ; then
rm -rf $BASE/qt-build-desktop
@@ -460,8 +460,8 @@ function build_luna-sysservice
# NOTE: Make binary findable in /usr/lib/luna so ls2 can match the role file
cp -f debug-x86/LunaSysService $ROOTFS/usr/lib/luna/
# ls-control is used by serviceinstaller
- chmod ugo+x ../desktop-support/ls-control
- cp -f ../desktop-support/ls-control $ROOTFS/usr/lib/luna/
+ #chmod ugo+x ../desktop-support/ls-control
+ #cp -f ../desktop-support/ls-control $ROOTFS/usr/lib/luna/
# TODO: cmake should do this for us (after we switch)
cp -rf files/conf/* ${ROOTFS}/etc/palm
@@ -944,7 +944,7 @@ function build_db8
cd $BASE/db8
make $JOBS -e PREFIX=$LUNA_STAGING -f Makefile.Ubuntu install BUILD_TYPE=release
# NOTE: Make binary findable in /usr/lib/luna so ls2 can match the role file
- cp release-linux-x86/mojodb-luna "${ROOTFS}/usr/lib/luna/"
+ cp -f release-linux-x86/mojodb-luna "${ROOTFS}/usr/lib/luna/"
# TODO: remove after switching to cmake
cp -f desktop-support/com.palm.db.json.pub $ROOTFS/usr/share/ls2/roles/pub/com.palm.db.json
cp -f desktop-support/com.palm.db.json.prv $ROOTFS/usr/share/ls2/roles/prv/com.palm.db.json
@@ -987,7 +987,7 @@ function build_activitymanager
make $JOBS
make install
# NOTE: Make binary findable in /usr/lib/luna so ls2 can match the role file
- cp activitymanager "${ROOTFS}/usr/lib/luna/"
+ cp -f activitymanager "${ROOTFS}/usr/lib/luna/"
cp -f ../desktop-support/com.palm.activitymanager.json.pub $ROOTFS/usr/share/ls2/roles/pub/com.palm.activitymanager.json
cp -f ../desktop-support/com.palm.activitymanager.json.prv $ROOTFS/usr/share/ls2/roles/prv/com.palm.activitymanager.json
cp -f ../desktop-support/com.palm.activitymanager.service.pub $ROOTFS/usr/share/ls2/services/com.palm.activitymanager.service
@@ -1121,7 +1121,7 @@ function build_filecache
$CMAKE -D WEBOS_INSTALL_ROOT:PATH=${LUNA_STAGING} -DCMAKE_INSTALL_PREFIX=${LUNA_STAGING} ..
make $JOBS
make install
- cp filecache "${ROOTFS}/usr/lib/luna/"
+ cp -f filecache "${ROOTFS}/usr/lib/luna/"
cp -f ../desktop-support/com.palm.filecache.json.pub $ROOTFS/usr/share/ls2/roles/pub/com.palm.filecache.json
cp -f ../desktop-support/com.palm.filecache.json.prv $ROOTFS/usr/share/ls2/roles/prv/com.palm.filecache.json
cp -f ../desktop-support/com.palm.filecache.service.pub $ROOTFS/usr/share/ls2/services/com.palm.filecache.service
@@ -1215,6 +1215,11 @@ mkdir -p ${ROOTFS}/var/palm
mkdir -p ${ROOTFS}/var/usr/palm
set -x
+if [ ! -f "$BASE/build_version_${VERSION}" ] ; then
+ echo "Build script has changed. Force a clean build"
+ export SKIPSTUFF=0
+fi
+
export LSM_TAG="0.901"
if [ ! -d "$BASE/luna-sysmgr" ] || [ ! -d "$BASE/tarballs" ] || [ ! -e "$BASE/tarballs/luna-sysmgr_${LSM_TAG}.zip" ] ; then
do_fetch openwebos/luna-sysmgr ${LSM_TAG} luna-sysmgr
@@ -1288,6 +1293,7 @@ build mojomail 1.03
echo ""
echo "Complete. "
+touch $BASE/build_version_$VERSION
echo ""
echo "Binaries are in $LUNA_STAGING/lib, $LUNA_STAGING/bin"
echo ""
2  run-luna-sysmgr.sh
View
@@ -43,7 +43,7 @@ if [ "$1" = "--help" ] ; then
echo " "
exit
elif [ "$1" = "--version" ] ; then
- echo "Desktop run script for Open webOS #3"
+ echo "Desktop run script for Open webOS #7"
exit
elif [ "$1" = "-q" ] ; then
REDIRECT="-q"
Please sign in to comment.
Something went wrong with that request. Please try again.