webOS Nation Forums >  webOS Developers >  webOS Development > 3.0.5 SDK/PDK now available.
3.0.5 SDK/PDK now available.
  Reply
 
Thread Tools Display Modes
Old 01/15/2012, 07:02 PM   #1 (permalink)
News Contributor
 
akitayo's Avatar
 
Posts: 2,039
3.0.5 SDK/PDK now available.

the 3.0.5 SDK is available for download here: https://developer.palm.com/content/r..._download.html


The release notes here:https://developer.palm.com/content/a...3.0.5-676.html

Highlights here: HP webOS Developer Blog


From the HP webOS developer Blog:


We have just released webOS 3.0.5 as an over-the-air update for TouchPads, and the 3.0.5 SDK is now out of Early Access. Get the latest and greatest here.https://developer.palm.com/content/r..._download.html

Highlights https://developer.palm.com/content/a...3.0.5-676.html include a new Sensor API, the ability to have plug-ins use both processor cores, and improvements to audio and video playback, plus various updates to Enyo we think you’ll like. We’ve also incorporated a homebrew patch to the Bluetooth SPP service to support binary data, so we expect to see some hardware hacks soon. (Hmm—new App Hack theme?)

Enjoy!

Release Notes - webOS SDK 3.0.5 (Build 676)

Welcome to the SDK for webOS 3.0.5. The following items have changed since the 3.0.4 release:
webOS Platform

A new Sensor API is available for PDK applications; see the documentation for details.

Fixed performance issue with SDL hybrid applications.

Fixed issue causing PDL_isAppLicensedForDevice to fail when app is started with no network connection.

In hybrid apps, the plugin defaults to using only one processor core. Add the line "processors":2 to appinfo.json to allow it to use both cores.

Fixed issue that could cause WebSQL calls to hang.

Full-screen HTML 5 video playback now works in all screen orientations.

Addressed audio playback issues observed when connecting to/disconnecting from the TouchPad's audio jack multiple times, or after waking from sleep.

In Media Indexer, fixed Ogg Vorbis tag parsing to correctly handle tags that aren't all uppercase.

Updated Text Assist UI to allow users to choose whether a double-space will be automatically replaced by a period.

Download Manager now alerts users when disk space is almost full and refuses to download more files.

Incorporated homebrew patch to support binary data in Bluetooth SPP service.

Enyo Framework

WebView controls now have a scroll indicator provided by the system.

Fixed issues causing PeoplePicker widget to not work in third-party apps.

Cross-launching the Camera app from Enyo.CrossAppUI now works.

The enyo.Video kind now takes a "poster" param to show a default image when video is not streaming.

Fixed issue causing spinning text in QuickOffice. Developers are advised to avoid placing their own content inside Spinner controls.

Known Issues and Limitations
SDK Tools

Apps generated using palm-generate may not run in Safari on Windows. In order to run in Google Chrome, Chrome must be launched with the --allow-file-access-from-files flag. On Windows, this may be specified in a desktop shortcut. On Mac, you can launch Chrome by typing the following in Terminal:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files

You can also specify the file to open--e.g. after generating "enyotest", you can open it by typing

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files enyotest/index.html

Documentation

When viewing the documentation in the Chrome browser, links may not work correctly unless you have launched Chrome using the --allow-file-access-from-files command-line switch.

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 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 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 command-line 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 command-line based, but if you prefer to use an integrated development environment (IDE), HP provides a webOS plug-in 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.

Uninstall the previous SDK (if present) using the Windows Add/Remove Program control panel.
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 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.

Download Java
Note:

If you are using a 64-bit version of Windows, you will need to download Java from Java Downloads for All Operating Systems. You MUST do this in Internet Explorer. Other browsers do not show the 64-bit Jave Runtime Environment installer. From here, follow the instructions for "Windows 7, XP Offline (64-bit)". You can also download it directly from http://javadl.sun.com/webapps/downlo...BundleId=47155.
Install VirtualBox

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

Download VirtualBox
Install the HP webOS SDK for Windows

Download the appropriate Windows SDK installer (Windows Vista and Windows 7 only):

Download SDK/PDK for 32-bit machines.

Download SDK/PDK for 64-bit machines.
Ensure VirtualBox is not running before starting the webOS SDK Installer.
Double-click the webOS SDK Installer file.
Proceed through the licensing agreements.
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 the CodeSourcery website.

To download the CodeSourcery Toolchain, go to:

https://sourcery.mentor.com/sgpp/lit...bscription3057

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 the following 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 also requires a header file change and can not be fixed with just changing libraries. This is also true of other __isoc99 calls.

Verify the SDK Installation

Start the webOS emulator.
Click OK to dismiss the dialog boxes.
Create or choose a directory to use as your development workspace.
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
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 required before installing the HP webOS SDK. Note: The emulator now supports VirtualBox 4.0 and 4.1.

Download VirtualBox

Download the SDK/PDK disk image file

Download SDK/PDK

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 those directories it will be deleted!

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

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


Install the HP webOS SDK/PDK for Mac

Ensure VirtualBox is not running before starting the webOS SDK Installer.
Open the Mac disk image file if you haven't already.
Double-click the webOS SDK Installer file and follow the instructions.
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 files are 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 device and 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, you should be able to use the standard g++ compiler. (On x64 Linux, the native desktop toolchain will generate x64 code, which will not work in the emulator.)
Update the Package Repository Information

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

If you are using 10.04 (Lucid Lynx):

deb Index of /virtualbox/debian/ lucid non-free

If you are installing on 9.04 (Jaunty Jackalope):

deb Index of /virtualbox/debian/ jaunty non-free

Download and register the OracleŽ public key for apt-secure:

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

Refresh the package index files:

sudo apt-get update

Install Java™

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 working or tells you that the default Java setting is not correct.
Install VirtualBox

The webOS emulator is built on VirtualBox™, virtual machine software that you can download free from Oracle. VirtualBox is required before installing the HP webOS SDK. Note: The webOS emulator now supports VirtualBox 4.0 and 4.1.
Installing or Upgrading VirtualBox

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

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 packages from download.virtualbox.org and is instead trying to pull an old VirtualBox 1.5 binary from Ubuntu's own repositories. Make sure to register the repository key before doing the update. If there is an issue with using the Ubuntu repository, you can also download and install VirtualBox 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-novacomd
sudo start palm-novacomd

Install the SDK for Linux

Download Novacom - 32-bit

Download Novacom - 64-bit

and

Download SDK
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.deb
sudo 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.deb
sudo 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

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

1.3.5
1.4.0
1.4.1
1.4.5
2.1.0
2.2.0 (Pre3 format only)
2.2.4 (Pre2 and Pre3 format)

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



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



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



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

Source: http://developer.palm.com/blog/2012/...ection+Blog%29
akitayo is offline   Reply With Quote
Old 01/15/2012, 10:56 PM   #2 (permalink)
Member
 
Posts: 665
the thing that interests me the most is "Bluetooth SPP service to support binary data" ...but i have no idea what that means. does this open the possibility to have more bluetooth devices recognized by webOs?
c000 is offline   Reply With Quote
Old 01/15/2012, 11:01 PM   #3 (permalink)
Member
 
Stevesrjr86's Avatar
 
Posts: 753
Quote:
Originally Posted by ccx View Post
the thing that interests me the most is "Bluetooth SPP service to support binary data" ...but i have no idea what that means. does this open the possibility to have more bluetooth devices recognized by webOs?
I think this is for bluetooth controllers but I'm not exactly sure...
Stevesrjr86 is offline   Reply With Quote
Old 01/15/2012, 11:14 PM   #4 (permalink)
News Contributor
 
akitayo's Avatar
 
Posts: 2,039
The BT SPP service was allowed since webOS 2.0

https://developer.palm.com/content/a...bluetooth.html

Last edited by akitayo; 01/15/2012 at 11:19 PM.
akitayo is offline   Reply With Quote
Old 01/15/2012, 11:24 PM   #5 (permalink)
Member
 
The Bard's Avatar
 
Posts: 702
Quote:
Full-screen HTML 5 video playback now works in all screen orientations.
I'm no software dev, but I hope this means that kalemsoft media player can play HD movie at any orientation we want?

Is this release have major new progress to be open source?

I want TTS feature can be enhanced to transfer any files beside just an url link.
The Bard is offline   Reply With Quote
Old 02/01/2015, 02:24 PM   #6 (permalink)
Member
 
Posts: 14
Download link no longer works for the PDK (not surprising). I am not finding a link to a recent PDK by searching. Does anyone have a link? Or, if its dead, what are people using to tweak or develop for webos/luneos these days?
klktrk is offline   Reply With Quote
Old 02/01/2015, 03:59 PM   #7 (permalink)
Member
 
Posts: 825
WebOS SDK
look here for how to download the sdk
mazzinia is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0