Sie sind auf Seite 1von 5

12/09/13

SDK-PDK Download - HP webOS Developer Center

QuestalacopiacachediGoogledihttps://developer.palm.com/content/resources/develop/sdk_pdk_download.html.un'istantaneadellapaginavisualizzatail25 lug201317:22:53GMT.Nelfrattempolapaginacorrentepotrebbeesserestatamodificata.Ulterioriinformazioni Suggerimento.Pertrovarerapidamenteilterminediricercasuquestapagina,digitaCtrl+FoF(Mac)eutilizzalabarradiricerca. Versionesolotesto

Home

Resources

SDKPDKDownload

SDK-PDK Download
Downloading and Installing the 3.0.5 SDK and PDK
TheHPwebOS3.0.5SDK(releasenoteshere)containsthelibrariesnecessarytodobothJavaScriptdevelopmentand C/C++development.ForJavaScriptdevelopment,theSDKincludesthecommandlinetoolsneededtopackage,download, anddebugapplications,aswellassamplecode,referencecode,andreferencedocumentation.ForC/C++development, theSDKalsoincludesthePluginDevelopmentKit(PDK),whichincludesaGCCcompiler,SDLandOpenGLcodelibraries, projecttemplates,samplesourcecode,scripts,utilities,documents.Youwillbegivenanopportunitytooptoutof installingthePDKduringtheinstallationprocess. YoucaninstalltheSDKonWindows,OSX,andUbuntuLinuxhostPCs.ForC/C++development,theSDKintegrateswithVisualStudioon Windows,andXcodeonOSX,althoughyoucanusecommandlinetoolsifyouprefer.(ApptemplatesarecurrentlyonlyavailableforXcode 3.6andearlier.)

Note:PDKdevelopmentisnowsupportedforLinux.SeetheLinuxdownloadsectionbelowformoreinformation.

TheSDKtoolsarealsocommandlinebased,butifyouprefertouseanintegrateddevelopmentenvironment(IDE),HPprovidesawebOS pluginfortheEclipseIDE. Readytogettowork?Clickbelowonyourplatformofchoicetodownload: Windows OSX UbuntuLinux

Installing the SDK and PDK on a Windows PC


Uninstall any existing SDK or PDK installations
Warning:
SAVEYOURDATA!UninstallingtheSDKandPDKwilldeletethedirectoriesinwhichtheyareinstalled.Ifyouhaveprojectsourcecodeinthose directoriesitwillbedeleted! YourprojectsourceshouldnotbestoredintheSDKorPDKinstallationdirectories.

1. UninstallthepreviousSDK(ifpresent)usingtheWindows Add/RemoveProgramcontrolpanel. 2. UninstallthepreviousPDK(ifpresent)byrunning c:\ProgramFiles\Palm\PDK\uninstallpdk.exe. Whenprompted,makesureyoualsouninstalltheNovacomdriver.

Install Java
DownloadandinstallthelatestversionofJava. ToverifythatJavaisinstalled,gototheCommandPromptandtype:

j a v av e r s i o n

IfJavaisinstalled,Javaversioninformationappears. DownloadJava

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

12/09/13

SDK-PDK Download - HP webOS Developer Center

Ifyouareusinga64bitversionofWindows,youwillneedtodownloadJavafromhttp://www.java.com/en/download/manual.jsp.You MUSTdothisinInternetExplorer.Otherbrowsersdonotshowthe64bitJaveRuntimeEnvironmentinstaller.Fromhere,followthe instructionsfor"Windows7,XPOffline(64bit)".Youcanalsodownloaditdirectlyfromhttp://javadl.sun.com/webapps/download/AutoDL? BundleId=47155.

Install VirtualBox
ThewebOSemulatorisbuiltonVirtualBox,virtualmachinesoftwarethatyoucandownloadfreefromOracle.VirtualBoxisrequired beforeinstallingtheHPwebOSSDK. Note:ThewebOSemulatornowrunsonVirtualbox4.0and4.1. DownloadVirtualBox

Install the HP webOS SDK for Windows


1. DownloadtheappropriateWindowsSDKinstaller(WindowsVistaandWindows7only): Download SDK/PDKfor32bitmachines. Download SDK/PDKfor64bitmachines. 2. EnsureVirtualBoxisnotrunningbeforestartingthewebOSSDKInstaller. 3. DoubleclickthewebOSSDKInstallerfile. 4. Proceedthroughthelicensingagreements. 5. Click"Finish"tocompletetheinstallation.

Download the CodeSourcery Toolchain (PDK only)


PerformthissteponlyifyouintendtodopluginorotherC/C++development. Ifnotalreadyinstalled,downloadtheCodeSourceryToolchainSourceryG++LiteforARMGNU/Linux.Youcandownloadthisfromthe CodeSourcerywebsite. TodownloadtheCodeSourceryToolchain,goto: https://sourcery.mentor.com/sgpp/lite/arm/portal/subscription3057 Clickonthe"SourceryG++Lite2009q1203"link,anddownloadtheWindowsInstaller. Ifyouhaveproblemswiththisversion,youcanalsotryversion2007q351.Thisisanolderversionfordeveloperswhorunintothe followingproblems: C++exceptionhandlingUnresolvedlinkstoversionedsymbols. _libc_csu_init/finicallsUnresolvedlinkstoversionedsymbols. __isoc99_sscanfSymboladdedinGLIBC2.7thatgetsusedforcallstosscanfunlessyouuse_USE_GNUinyourcode.Thisissuealso requiresaheaderfilechangeandcannotbefixedwithjustchanginglibraries.Thisisalsotrueofother__isoc99calls.

Verify the SDK Installation


1. StartthewebOSemulator. 2. ClickOKtodismissthedialogboxes. 3. Createorchooseadirectorytouseasyourdevelopmentworkspace. 4. OpenaCommandPromptwindow,andthentype:

p a l m g e n e r a t e

toverifythatthetoolsareinstalled: Ifhelpinformationappears,thetoolsarecorrectlyinstalled. Ifpalmgenerateisnotrecognizedasacommand,thetoolsarenotcorrectlyinstalled. Ifjavaisnotrecognizedasacommand,Javaisnotcorrectlyinstalled 5. ExitboththeCommandPromptwindowandtheemulator.

Installing the SDK and PDK on a Mac


Install VirtualBox
ThewebOSemulatorisbuiltonVirtualBox,virtualmachinesoftwarethatyoucandownloadfreefromOracle.VirtualBoxisrequired beforeinstallingtheHPwebOSSDK. Note:TheemulatornowsupportsVirtualBox4.0and4.1.

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

2/5

12/09/13
DownloadVirtualBox

SDK-PDK Download - HP webOS Developer Center

Download the SDK/PDK disk image file


DownloadSDK/PDK

Uninstall any existing SDK/PDK installations


Warning:
SAVEYOURDATA!UninstallingtheSDKandPDKwilldeletethedirectoriesinwhichtheyareinstalled.Ifyouhaveprojectsourcecodeinthose directoriesitwillbedeleted! YourprojectsourceshouldnotbestoredintheSDKorPDKinstallationdirectories.

1. OpentheMacdiskimagefile. 2. Doubleclickthe uninstallprevioussdk.commandscript. 3. Answeryeswhenprompted. 4. Enteryouradminpasswordwhenprompted.

Install the HP webOS SDK/PDK for Mac


1. EnsureVirtualBoxisnotrunningbeforestartingthewebOSSDKInstaller. 2. OpentheMacdiskimagefileifyouhaven'talready. 3. DoubleclickthewebOSSDKInstallerfileandfollowtheinstructions. 4. Duringinstallation,youwillbegiventheoptiontoinstallthePDKaswell. Notethatthisoptionisselectedbydefault. OncetheSDKisinstalled: ThewebOSemulatorbecomesavailableintheApplicationsfolder. ThewebOScommandlinetoolsbecomeavailablefromtheTerminal. WerecommendthatOSXusersrunthesshkeyinitscriptforeachdevicetheyuse.Thisavoidsbeingrequestedforapasswordwhenfiles aretransferredtothedeviceusingashell.

Installing the SDK on Ubuntu Linux


AnoteaboutPDKdevelopmentonLinux:ThecurrentSDKforLinuxincludesheadersandlibrariesneededtodoPDKdevelopmentforthedevice andfortheemulator.Italsoincludesanarmgcctoolchainforcompilingapplicationsforthedevice.Ifyouarerunninga32biti686Linuxdesktop,you shouldbeabletousethestandardg++compiler.(Onx64Linux,thenativedesktoptoolchainwillgeneratex64code,whichwillnotworkinthe emulator.)

Update the Package Repository Information


1. UpdatethePackageRepositoryInformationto/etc/apt/sources.list: Ifyouareusing10.04(LucidLynx):

d e bh t t p : / / d o w n l o a d . v i r t u a l b o x . o r g / v i r t u a l b o x / d e b i a nl u c i dn o n f r e e

Ifyouareinstallingon9.04(JauntyJackalope):

d e bh t t p : / / d o w n l o a d . v i r t u a l b o x . o r g / v i r t u a l b o x / d e b i a nj a u n t yn o n f r e e

2. DownloadandregistertheOraclepublickeyforaptsecure:

w g e tqh t t p : / / d o w n l o a d . v i r t u a l b o x . o r g / v i r t u a l b o x / d e b i a n / o r a c l e _ v b o x . a s cO -|s u d oa p t k e ya d d-

3. Refreshthepackageindexfiles:

s u d oa p t g e tu p d a t e

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

12/09/13
(GCJ).Example:

SDK-PDK Download - HP webOS Developer Center

DownloadandinstalltheOracleJavaRuntimeEnvironment(JRE).TheSDKisincompatiblewiththedefaultUbuntuGNUCompilerforJava

s u d oa p t g e ti n s t a l ls u n j a v a 6 j r e

Fromtimetotime,typicallyafterinstallingUbuntusystemupdates,thedefaultJavasettingcangetchangedtosomethingotherthansun java6.Ensurethatsunjava6jreissetasthedefaultbytyping'sudoupdatealternativesconfigjava',andselect'/usr/lib/jvm/java6 sun/jre/bin/java'ifitisnotalreadystarredasthedefault.Thismayneedtobedoneagaininthefutureifthepalmemulatorstopsworking ortellsyouthatthedefaultJavasettingisnotcorrect.

Install VirtualBox
ThewebOSemulatorisbuiltonVirtualBox,virtualmachinesoftwarethatyoucandownloadfreefromOracle.VirtualBoxisrequired beforeinstallingtheHPwebOSSDK. Note:ThewebOSemulatornowsupportsVirtualBox4.0and4.1.

In stallin g or Up g rad in g Virtu alBox


1. IfyouareupgradingfromapreviousversionofVirtualBox,followtheinstructionsto"UninstallthewebOSEmulatorandVirtualMachine" onthispage. 2. Installversion4.0ofVirtualBox(optionally,youcaninstall4.1):

s u d oa p t g e ti n s t a l lv i r t u a l b o x 4 . 0

Note:Ifvirtualboxoseisinstalled(orsuggested)insteadofvirtualbox4.0,thisisasignthataptgetdidnotproperlyparsethepackages fromdownload.virtualbox.organdisinsteadtryingtopullanoldVirtualBox1.5binaryfromUbuntu'sownrepositories.Makesuretoregister therepositorykeybeforedoingtheupdate.IfthereisanissuewithusingtheUbunturepository,youcanalsodownloadandinstall VirtualBoxmanuallyhere:http://www.virtualbox.org/wiki/Download_Old_Builds_4_0. ClickheretogodirectlytotheVirtualBoxLinuxpage.

Install ia32-libs (on 64-bit systems only)


Ifyouareinstallingona64bitsystem,performthefollowingadditionalstepbeforeinstallation:

s u d oa p t g e ti n s t a l li a 3 2 l i b s

Ifyouhappentohaveinstalledpalmnovacombeforeinstallingia32libs,thenyoumustrestartpalmnovacomd:

s u d os t o pp a l m n o v a c o m d s u d os t a r tp a l m n o v a c o m d

Install the SDK for Linux


DownloadNovacom32bit DownloadNovacom64bit and DownloadSDK Ifyouareinstallingona32bitsystem,performthefollowingstepstoinstalltheSDK:

s u d od p k gip a l m s d k _ 3 . 0 . 5 s v n 5 2 8 7 3 6 p h o 6 7 6 _ i 3 8 6 . d e b s u d od p k gip a l m n o v a c o m _ 1 . 0 . 8 0 _ i 3 8 6 . d e b

Ifyouareinstallingona64bitsystem,performthefollowingstepstoinstalltheSDK:

s u d od p k gif o r c e a r c h i t e c t u r ep a l m s d k _ 3 . 0 . 5 s v n 5 2 8 7 3 6 p h o 6 7 6 _ i 3 8 6 . d e b s u d od p k gif o r c e a r c h i t e c t u r ep a l m n o v a c o m _ 1 . 0 . 8 0 _ a m d 6 4 . d e b
Note:Ifyouexperienceinstallationissues,tryacleaninstall.Touninstall,followtheuninstallinstructions.

Other Emulator Images


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

12/09/13

SDK-PDK Download - HP webOS Developer Center

ItissometimesnecessarytotestyoursoftwareonotherversionsofwebOS.UsethelinksbelowtodownloadVMDKsfortheseversions.(Be suretorightclickanduse"SaveAs..."tosavetheseasbinaries.) 1.3.5 1.4.0 1.4.1 1.4.5 2.1.0 2.2.0(Pre 3formatonly) 2.2.4(Pre2andPre 3format) Onceyouhavedownloadedthezipfile,youwillneedto"install"theimageusingthepalmemulatorcommandfromthecommandline.For example:

p a l m e m u l a t o ri n s t a l l" ~ / D o w n l o a d s / S D K2 . 1 . 0 . 5 1 9 . v m d k . z i p "

Note:ToavoidtheletterboxbarthatwillshowonthePre 3ifyourappretainsit'sPre/Pre2basedaspectratio,addthefollowingtoyour index.html:

< m e t an a m e = ' v i e w p o r t 'c o n t e n t = ' h e i g h t = d e v i c e h e i g h t ' >

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

5/5

Das könnte Ihnen auch gefallen