sdk-pdk download - hp webos developer center

5
12/09/13 SDK-PDK Download - HP webOS Developer Center file:///Users/marco/Desktop/SDK-PDK Download - HP webOS Developer Center.html 1/5 Versione solo testo Questa è la copia cache di Google di https://developer.palm.com/content/resources/develop/sdk_pdk_download.html . È un'istantanea della pagina visualizzata il 25 lug 2013 17:22:53 GMT. Nel frattempo la pagina corrente potrebbe essere stata modificata. Ulteriori informazioni Suggerimento. Per trovare rapidamente il termine di ricerca su questa pagina, digita Ctrl+F o F (Mac) e utilizza la barra di ricerca. Home Resources SDKPDK Download SDK-PDK Download Downloading and Installing the 3.0.5 SDK and PDK The HP webOS 3.0.5 SDK (release notes here) contains the libraries necessary to do both JavaScript development and C/C++ development. For JavaScript development, the SDK includes the command line tools needed to package, download, and debug applications, as well as sample code, reference code, and reference documentation. For C/C++ development, the SDK also includes the Plugin Development Kit (PDK), which includes a GCC compiler, SDL and OpenGL code libraries, project templates, sample source code, scripts, utilities, documents. You will be given an opportunity to opt out of installing the PDK during the installation process. You can install the SDK on Windows, OS X, and Ubuntu Linux host PCs. For C/C++ development, the SDK integrates with Visual Studio on Windows, and Xcode on OS X, although you can use commandline tools if you prefer. (App templates are currently only available for Xcode 3.6 and earlier.) Note: PDK development is now supported for Linux. See the Linux download section below for more information. The SDK tools are also commandline based, but if you prefer to use an integrated development environment (IDE), HP provides a webOS plugin for the Eclipse IDE. Ready to get to work? Click below on your platform of choice to download: Windows OS X Ubuntu Linux Installing the SDK and PDK on a Windows PC Uninstall any existing SDK or PDK installations Warning: SAVE YOUR DATA! —Uninstalling the SDK and PDK will delete the directories in which they are installed. If you have project source code in those directories it will be deleted! Your project source should not be stored in the SDK or PDK installation directories. 1. Uninstall the previous SDK (if present) using the Windows Add/Remove Program control panel. 2. Uninstall the previous PDK (if present) by running c:\Program Files\Palm\PDK\uninstallpdk.exe. When prompted, make sure you also uninstall the Novacom driver. Install Java Download and install the latest version of Java™. To verify that Java is installed, go to the Command Prompt and type: java -version If Java is installed, Java version information appears. Note: Download Java

Upload: jason-anderson

Post on 27-Oct-2015

801 views

Category:

Documents


0 download

DESCRIPTION

Web page of webOS SDK Download

TRANSCRIPT

Page 1: SDK-PDK Download - HP WebOS Developer Center

12/09/13 SDK-PDK Download - HP webOS Developer Center

file:///Users/marco/Desktop/SDK-PDK Download - HP webOS Developer Center.html 1/5

Versione solo testo

Questa è la copia cache di Google di https://developer.palm.com/content/resources/develop/sdk_pdk_download.html. È un'istantanea della pagina visualizzata il 25lug 2013 17:22:53 GMT. Nel frattempo la pagina corrente potrebbe essere stata modificata. Ulteriori informazioniSuggerimento. Per trovare rapidamente il termine di ricerca su questa pagina, digita Ctrl+F o ⌘­F (Mac) e utilizza la barra di ricerca.

 

Home Resources SDK­PDK Download

SDK-PDK Download

Downloading and Installing the 3.0.5 SDK and PDK

The HP webOS 3.0.5 SDK (release notes here) contains the libraries necessary to do both JavaScript development andC/C++ development. For JavaScript development, the SDK includes the command line tools needed to package, download,and debug applications, as well as sample code, reference code, and reference documentation. For C/C++ development,the SDK also includes the Plug­in Development Kit (PDK), which includes a GCC compiler, SDL and OpenGL code libraries,project templates, sample source code, scripts, utilities, documents. You will be given an opportunity to opt out ofinstalling the PDK during the installation process.

You can install the SDK on Windows, OS X, and Ubuntu Linux host PCs. For C/C++ development, the SDK integrates with Visual Studio onWindows, and Xcode on OS X, although you can use command­line tools if you prefer. (App templates are currently only available for Xcode3.6 and earlier.)

Note: PDK development is now supported for Linux. See the Linux download section below for more information.

The SDK tools are also command­line based, but if you prefer to use an integrated development environment (IDE), HP provides a webOSplug­in for the Eclipse IDE.

Ready to get to work? Click below on your platform of choice to download:

WindowsOS XUbuntu Linux

Installing the SDK and PDK on a Windows PC

Uninstall any existing SDK or PDK installations

Warning:SAVE YOUR DATA! —Uninstalling the SDK and PDK will delete the directories in which they are installed. If you have project source code in thosedirectories it will be deleted!

Your project source should not be stored in the SDK or PDK installation directories.

1.  Uninstall the previous SDK (if present) using the Windows Add/Remove Program control panel.2.  Uninstall the previous PDK (if present) by running c:\Program Files\Palm\PDK\uninstallpdk.exe.

When prompted, make sure you also un­install the Novacom driver.

Install JavaDownload and install the latest version of Java™.To verify that Java is installed, go to the Command Prompt and type:

 

java -version

 

If Java is installed, Java version information appears.

Note:

Download Java

Page 2: SDK-PDK Download - HP WebOS Developer Center

12/09/13 SDK-PDK Download - HP webOS Developer Center

file:///Users/marco/Desktop/SDK-PDK Download - HP webOS Developer Center.html 2/5

If you are using a 64­bit version of Windows, you will need to download Java from http://www.java.com/en/download/manual.jsp. YouMUST do this in Internet Explorer. Other browsers do not show the 64­bit Jave Runtime Environment installer. From here, follow theinstructions for "Windows 7, XP Offline (64­bit)". You can also download it directly from http://javadl.sun.com/webapps/download/AutoDL?BundleId=47155.

Install VirtualBoxThe webOS emulator is built on VirtualBox™, virtual machine software that you can download free from Oracle®. VirtualBox is requiredbefore installing the HP webOS SDK. Note: The webOS emulator now runs on Virtualbox 4.0 and 4.1.

Install the HP webOS SDK for Windows1.  Download the appropriate Windows SDK installer (Windows Vista and Windows 7 only):

  SDK/PDK for 32­bit machines.

  SDK/PDK for 64­bit machines.

2.  Ensure VirtualBox is not running before starting the webOS SDK Installer.3.  Double­click the webOS SDK Installer file.4.  Proceed through the licensing agreements.5.  Click "Finish" to complete the installation.

Download the CodeSourcery Toolchain (PDK only)Perform this step only if you intend to do plug­in or other C/C++ development.

If not already installed, download the CodeSourcery Toolchain—Sourcery G++ Lite for ARM GNU/Linux. You can download this from theCodeSourcery website.

To download the CodeSourcery Toolchain, go to:

https://sourcery.mentor.com/sgpp/lite/arm/portal/subscription3057

Click on the "Sourcery G++ Lite 2009q1­203" link, and download the Windows Installer.

If you have problems with this version, you can also try version 2007q3­51. This is an older version for developers who run into thefollowing problems:

C++ exception handling — Unresolved links to versioned symbols._libc_csu_init/fini calls — Unresolved links to versioned symbols.__isoc99_sscanf — Symbol added in GLIBC 2.7 that gets used for calls to sscanf unless you use _USE_GNU in your code. This issue alsorequires a header file change and can not be fixed with just changing libraries. This is also true of other __isoc99 calls.

Verify the SDK Installation1.  Start the webOS emulator.2.  Click OK to dismiss the dialog boxes.3.  Create or choose a directory to use as your development workspace.4.  Open a Command Prompt window, and then type:

palm-generate

to verify that the tools are installed:

If help information appears, the tools are correctly installed.If palm­generate is not recognized as a command, the tools are not correctly installed.If java is not recognized as a command, Java is not correctly installed

5.  Exit both the Command Prompt window and the emulator.

Installing the SDK and PDK on a Mac

Install VirtualBox™The webOS emulator is built on VirtualBox, virtual machine software that you can download free from Oracle®. VirtualBox is requiredbefore installing the HP webOS SDK. Note: The emulator now supports VirtualBox 4.0 and 4.1.

Download VirtualBox

Download

Download

Page 3: SDK-PDK Download - HP WebOS Developer Center

12/09/13 SDK-PDK Download - HP webOS Developer Center

file:///Users/marco/Desktop/SDK-PDK Download - HP webOS Developer Center.html 3/5

Download the SDK/PDK disk image file

Uninstall any existing SDK/PDK installations

Warning:SAVE YOUR DATA! —Uninstalling the SDK and PDK will delete the directories in which they are installed. If you have project source code in thosedirectories it will be deleted!

Your project source should not be stored in the SDK or PDK installation directories.

1.  Open the Mac disk image file.2.  Double click the uninstall­previous­sdk.command script.3.  Answer “yes” when prompted.4.  Enter your admin password when prompted.

Install the HP webOS SDK/PDK for Mac1.  Ensure VirtualBox is not running before starting the webOS SDK Installer.2.  Open the Mac disk image file if you haven't already.3.  Double­click the webOS SDK Installer file and follow the instructions.4.  During installation, you will be given the option to install the PDK as well. Note that this option is selected by default.

Once the SDK is installed:

The webOS emulator becomes available in the Applications folder.The webOS command­line tools become available from the Terminal.

We recommend that OS X users run the ssh­key­init script for each device they use. This avoids being requested for a password when filesare transferred to the device using a shell.

Installing the SDK on Ubuntu Linux

A note about PDK development on Linux: The current SDK for Linux includes headers and libraries needed to do PDK development for the deviceand for the emulator. It also includes an arm­gcc toolchain for compiling applications for the device. If you are running a 32­bit i686 Linux desktop, youshould be able to use the standard g++ compiler. (On x64 Linux, the native desktop toolchain will generate x64 code, which will not work in theemulator.)

Update the Package Repository Information1.  Update the Package Repository Information to /etc/apt/sources.list:

If you are using 10.04 (Lucid Lynx):

deb http://download.virtualbox.org/virtualbox/debian lucid non-free

If you are installing on 9.04 (Jaunty Jackalope):

deb http://download.virtualbox.org/virtualbox/debian jaunty non-free

2.  Download and register the Oracle® public key for apt­secure:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

3.  Refresh the package index files:

sudo apt-get update

Install Java™

Download VirtualBox

Download SDK/PDK

Page 4: SDK-PDK Download - HP WebOS Developer Center

12/09/13 SDK-PDK Download - HP webOS Developer Center

file:///Users/marco/Desktop/SDK-PDK Download - HP webOS Developer Center.html 4/5

Download and install the Oracle Java Runtime Environment (JRE). The SDK is incompatible with the default Ubuntu GNU Compiler for Java(GCJ). Example:

 

sudo apt-get install sun-java6-jre

 

From time to time, typically after installing Ubuntu system updates, the default Java setting can get changed to something other than sun­java6. Ensure that sun­java6­jre is set as the default by typing 'sudo update­alternatives ­­config java', and select '/usr/lib/jvm/java­6­sun/jre/bin/java' if it is not already starred as the default. This may need to be done again in the future if the palm­emulator stops workingor tells you that the default Java setting is not correct.

Install VirtualBoxThe webOS emulator is built on VirtualBox™, virtual machine software that you can download free from Oracle. VirtualBox is requiredbefore installing the HP webOS SDK. Note: The webOS emulator now supports VirtualBox 4.0 and 4.1.

Installing or Upgrading VirtualBox

1.  If you are upgrading from a previous version of VirtualBox, follow the instructions to "Uninstall the webOS Emulator and Virtual Machine"on this page.

2.  Install version 4.0 of VirtualBox (optionally, you can install 4.1):

sudo apt-get install virtualbox-4.0

Note: If virtualbox­ose is installed (or suggested) instead of virtualbox­4.0, this is a sign that apt­get did not properly parse the packagesfrom download.virtualbox.org and is instead trying to pull an old VirtualBox 1.5 binary from Ubuntu's own repositories. Make sure to registerthe repository key before doing the update. If there is an issue with using the Ubuntu repository, you can also download and installVirtualBox manually here: http://www.virtualbox.org/wiki/Download_Old_Builds_4_0.

Click here to go directly to the VirtualBox Linux page.

Install ia32-libs (on 64-bit systems only)If you are installing on a 64­bit system, perform the following additional step before installation:

sudo apt-get install ia32-libs

If you happen to have installed palm­novacom before installing ia32­libs, then you must restart palm­novacomd:

sudo stop palm-novacomdsudo start palm-novacomd

Install the SDK for Linux

 

and

If you are installing on a 32­bit system, perform the following steps to install the SDK:

sudo dpkg -i palm-sdk_3.0.5-svn528736-pho676_i386.debsudo dpkg -i palm-novacom_1.0.80_i386.deb

If you are installing on a 64­bit system, perform the following steps to install the SDK:

sudo dpkg -i --force-architecture palm-sdk_3.0.5-svn528736-pho676_i386.debsudo dpkg -i --force-architecture palm-novacom_1.0.80_amd64.deb

Note: If you experience installation issues, try a clean install. To uninstall, follow the uninstall instructions.

Other Emulator Images

Download Novacom ­ 32­bit Download Novacom ­ 64­bit

Download SDK

Page 5: SDK-PDK Download - HP WebOS Developer Center

12/09/13 SDK-PDK Download - HP webOS Developer Center

file:///Users/marco/Desktop/SDK-PDK Download - HP webOS Developer Center.html 5/5

It is sometimes necessary to test your software on other versions of webOS. Use the links below to download VMDKs for these versions. (Besure to right­click and use "Save As..." to save these as binaries.)

1.3.51.4.01.4.11.4.52.1.0

2.2.0 (Pre 3 format only)

2.2.4 (Pre2 and Pre 3 format)

Once you have downloaded the zip file, you will need to "install" the image using the palm­emulator command from the command line. Forexample:

 

palm-emulator --install "~/Downloads/SDK 2.1.0.519.vmdk.zip"

 

Note: To avoid the letterbox bar that will show on the Pre 3 if your app retains it's Pre/Pre2­based aspect ratio, add the following to yourindex.html:

 

<meta name='viewport' content='height=device-height'>