How to download and install the SDK and PDK (1)

Source: Internet
Author: User

BKJIA: The HP webOS SDK contains libraries necessary for JavaScript development and C/C ++ development. For JavaScript development, the SDK includes command line tools that need to encapsulate, download, and debug applications, as well as sample code, reference code, and reference documents. For C/C ++ development, the SDK also includes the plug-in Development Kit PDK ), it includes a GCC compiler, SDL and OpenGL code library, Project template, sample source code, script, utility, and file. You will have the opportunity to install PDK during installation.

You can install the SDK on Windows, OS X, and Ubuntu Linux host computers. However, PDK development does not currently support Linux. For C/C ++ development, the SDK integrates Visual Studio for Windows and Xcode for OS X, so if you want to, you can use the command line tool.

Of course, this SDK tool can be based on the command line, but if you like to use the integrated development environment IDE), HP provides the webOS plug-in that supports Eclipse IDE.

1. Install SDK and PDK on Windows

1. Uninstall the existing SDK or PDK

Warning: Save your data! The uninstalled sdks and PDK will delete their installation directories. If you have the program source code in the installation directory, the source code will be deleted! The source code of your project should not be stored in the installation directory of the SDK or PDK.

1) uninstall the previous SDK if it exists), use Add/delete programs in the Windows Control Panel.

2) If the unmounted PDK exists, run c: \ Program Files \ Palm \ PDK \ uninstallpdk.exe. When prompted, you must also uninstall the Novacom driver.

2. install Java

Download and install the latest Java version.

To confirm whether Java is successfully installed, type:

java -version

If Java has been installed successfully, the Java version information will appear in the command prompt.

Java

Note:

If you are using a Windows 64-bit version, you will need to download JDK from different locations. Click here to go to the Java download page, and then click the "JDK" Link under the "Java download" icon. From there, you can select a 64-bit Windows JDK.

3. Install VirtualBox

The webOS simulator is built on VirtualBox. You can download Virtual Machine software from Oracle for free. Install VirtualBox before installing the webOS SDK of HP.

Note: webOS simulators cannot run on VirtualBox 4.0. Use the following link to download version 3.2 .)

VirtualBox

4. Install the HP webOS SDK on Windows

1) download the corresponding Windows SDK installer only supports Windows Vista and Windows 7 ):

32-bit Windows SDK/PDK.

64-bit Windows SDK/PDK.

2) Make sure that the webOS SDK has not run VirtualBox before installing it.

3) double-click the webOS SDK installer file.

4) continue to execute the license agreement.

5) Click "F inish" to complete the installation.

5. Download The CodeSourcery tool chain only PDK)

If you want to develop plug-ins or other C/C ++ programs, perform this step.

If you have not installed CodeSourcery, download the tool chain-Sourcery G ++ Lite for arm gnu/Linux. This was previously an option for PDK download, but it is no longer available. You can download it from the CodeSourcery website.

We recommend that you install the following two versions:

◆ 2009q1-203: It is recommended that most developers use newer versions.

◆ 2007q3-51: It is recommended that developers who encounter the following problems use this older version.

1) C ++ Exception Handling: the version number of the undefined link.

2) _ libc_csu_init/fini CILS: the version number of the link is not defined.

3) _ isoc99_sscanf: The symbol is added to GLIBC 2.7 and used to call scanning and format string input until _ USE_GNU is used in your code. This problem also needs to be changed in a header file, not just a change to the fixed library. Other _ isoc99 calls are also correct.

In general, if there is a problem with the new version, you can try an old one.

6. Verify SDK Installation

1) Start the webOS simulator.

2) Click OK to close the dialog box.

3) create or select a directory as your development workspace.

4) open a command prompt window and type:

palm-generate

Verify that the tool is installed correctly:

◆ If the help information is displayed, these tools are correctly installed.

◆ If the palm-generate command is not identified, these tools are not correctly installed.

◆ If Java commands are not identified, Java is not correctly installed.

5) Exit the Command Prompt window and simulator.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.