Having problems Packing and Installing on Palm Pre

Previous topic - Next topic

Millerszone

After running the Macro I get this:
'java' is not recognized as an internal or external command, operable program or batch file.

Here is the Macro:
:: Copy to Palm Pre
CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "%GLB_PROJ_PATH%\glbwebos"


Also getting these warnings when compiling:
Code (glbasic) Select

compile+link:
Q:/Compiler/platform/webos/bin/ld.exe: warning: libavformat.so.52, needed by Q:\Compiler\platform\webos\lib/libSDL_mixer.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libavcodec.so.52, needed by Q:\Compiler\platform\webos\lib/libSDL_mixer.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libavutil.so.50, needed by Q:\Compiler\platform\webos\lib/libSDL_mixer.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libnapp.so, needed by Q:\Compiler\platform\webos\lib/libSDL_mixer.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libPiranha.so, needed by Q:\Compiler\platform\webos\lib/libSDL_mixer.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libpalmvibe.so, needed by Q:\Compiler\platform\webos\lib/libSDL_mixer.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libIMGegl.so, needed by Q:\Compiler\platform\webos\lib/libGLES_CM.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libsrv_um.so, needed by Q:\Compiler\platform\webos\lib/libGLES_CM.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: liblunaservice.so, needed by Q:\Compiler\platform\webos\lib/libpdl.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libsqlite3.so.0, needed by Q:\Compiler\platform\webos\lib/libpdl.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libcjson.so, needed by Q:\Compiler\platform\webos\lib/libpdl.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libcurl.so.4, needed by Q:\Compiler\platform\webos\lib/libpdl.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libluna-prefs.so, needed by Q:\Compiler\platform\webos\lib/libpdl.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/webos/bin/ld.exe: warning: libssl.so.0.9.8, needed by Q:\Compiler\platform\webos\lib/libpdl.so, not found (try using -rpath or -rpath-link)
plat: C:\Program Files (x86)\GLBasic\Compiler\platform\webos
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

MrTAToad

I found that the Java SDK had to be installed.  In addition, sometimes the %PATH% setup doesn't find the java.exe file for some reason.  Perhaps manually setting this system variable in the batch file may help.

Exiting and restarting GLBasic also seems to solve it  :P

The warnings can be ignored.

Ian Price

Never had this problem myself, but I've always updated my Java runtimes when informed of new ones by SunSoft.
I came. I saw. I played.

Millerszone

O.k, I got the Java part fixed, now I get this message:
Code (glbasic) Select
C:\Program Files (x86)\GLBasic\Projects\HTDWebOS>CALL "C:\Program Files (x86)\GLBasic\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "C:\Program Files (x86)\GLBasic\Projects\HTDWebOS\glbwebos"
Making .ipk Package from ""C:\Program Files (x86)\GLBasic\Projects\HTDWebOS\glbwebos""
palm-package: ignoring extra arguments Files (x86)\GLBasic\Projects\HTDWebOS\glbwebos
palm-package: "C:\Program" does not exist
Press any key to continue . . .
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

MrTAToad

Are you using the new Beta by any chance ? :)  It appears that Pre (and most likely other platforms) now compile into the one .app directory and thus the pathing for the creation of the IPK file needs changing.

Try this :

Code (glbasic) Select
CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\palm-package.bat" "%GLB_PROJ_PATH%\%GLB_PROJ_NAME%.app\glbasic-webos-exe"

Millerszone

#5
Now I get this...
Code (glbasic) Select
C:\Program Files (x86)\GLBasic\Projects\HTDWebOS>CALL "C:\Program Files (x86)\GLBasic\compiler\platform\webos\tool\bin\palm-package.bat" "C:\Program Files (x86)\GLBasic\Projects\HTDWebOS\hitthedeck.app\glbasic-webos-exe"
palm-package: "C:\Program Files (x86)\GLBasic\Projects\HTDWebOS\hitthedeck.app\glbasic-webos-exe" does not exist
Press any key to continue . . .


The "glbasic-webos-exe" file is in the "glbwebos" folder.
I'm using 9.040

I moved "glbasic-webos-exe" to the .app directory, but got: glbasic-webos-exe" is not a valid application.


UPDATE:
I used this to make package:
CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\palm-package.bat" "%GLB_PROJ_PATH%\glbwebos"
and it created this file in the Project Folder "com.smashedfly.hitthedeck_1.0.0_all.ipk"

Then used this to install package:
CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\palm-install.bat" "%GLB_PROJ_PATH%\glbwebos"
The CMD window didn't say it was installing and was doing nothing so I closed it. Package did not install on the device.

Now when I run "pdk-device-install.bat" I get:
cmd="install"
Error: No device detected.
Connect device and make sure Developer Mode is enabled.
Press any key to continue . . .

I have Developer Mode enabled and select "Only Charge"


Thanks for the help.
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

MrTAToad

QuoteNow when I run "pdk-device-install.bat" I get:
cmd="install"
Error: No device detected.
Connect device and make sure Developer Mode is enabled.
Press any key to continue . . .
I had that a few times.  I found that Developer Mode wasn't always enabled and that one of the two drivers failed to install - causing the problem.  Had to remove it from the Device Manager and re-install the x64 drivers.

I also found that the installation routine doesn't like spaces in paths...

Millerszone

#7
I uninstalled then re-installed the 64-bit drivers and rebooted and now I can see the Palm device again.
but I still can't get the .ipk package on the device.

I run this macro:
CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\palm-install.bat" "%GLB_PROJ_PATH%\glbwebos"
I get this in the CMD window:
Code (glbasic) Select
C:\Program Files (x86)\GLBasic\Projects\HTDWebOS>CALL "C:\Program Files (x86)\GLBasic\compiler\platform\webos\tool\bin\palm-install.bat" "C:\Program Files (x86)\GLBasic\Projects\HTDWebOS\glbwebos"

I also tried "glb_pack_and_install.bat" and I get this message, but the app never installs on the Palm.
Code (glbasic) Select
C:\Program Files (x86)\GLBasic\Projects\HTDWebOS>CALL "C:\Program Files (x86)\GLBasic\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "C:\Program Files (x86)\GLBasic\Projects\HTDWebOS\glbwebos"
Making .ipk Package from ""C:\Program Files (x86)\GLBasic\Projects\HTDWebOS\glbwebos""
palm-package: ignoring extra arguments Files (x86)\GLBasic\Projects\HTDWebOS\glbwebos
palm-package: "C:\Program" does not exist
Installing package: "C:\Program Files (x86)\GLBasic\Projects\HTDWebOS\com.smashedfly.hitthedeck_1.0.0_all.ipk"



The "com.smashedfly.hitthedeck_1.0.0_all.ipk" package is in the  "C:\Program Files (x86)\GLBasic\Projects\HTDWebOS\ folder

Windows 7 64-bit
GLBasic 9.040
Palm Pre 2 :v2.10

Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Ian Price

I use this in my Macro from GLB
Code (glbasic) Select

CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "%GLB_PROJ_PATH%\glbwebos"

which is slightly different to your -
Code (glbasic) Select

CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\palm-install.bat" "%GLB_PROJ_PATH%\glbwebos"


Using V9.040
I came. I saw. I played.

MrTAToad

That could deal with spaces in paths - will have to check that...

Millerszone

#10
Quote from: Ian Price on 2011-Apr-02
I use this in my Macro from GLB
Code (glbasic) Select

CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "%GLB_PROJ_PATH%\glbwebos"

which is slightly different to your -
Code (glbasic) Select

CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\palm-install.bat" "%GLB_PROJ_PATH%\glbwebos"


Using V9.040

Most of the problem was the spaces in the path. So I moved my project folder. Thanks MrTaToad.
Still won't install package on Device.

I ran this Macro: "CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "%GLB_PROJ_PATH%\glbwebos"

When I run, I get this and the package never installs:
Code (glbasic) Select
C:\Test\Projects\HTDWebOS>CALL "C:\Program Files (x86)\GLBasic\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "C:\Test\Projects\HTDWebOS\glbwebos"
Making .ipk Package from ""C:\Test\Projects\HTDWebOS\glbwebos""
creating package com.smashedfly.hitthedeck_1.0.0_all.ipk in C:\Test\Projects\HTDWebOS
Installing package: "C:\Test\Projects\HTDWebOS\com.smashedfly.hitthedeck_1.0.0_all.ipk"


Will the Palm display anything when installing?





Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

erico

trying to random participate on the subject...

you don't think there would be anything to do with all those "." in your file name other then extension?

MrTAToad

QuoteWill the Palm display anything when installing?
You wont see anything on the Palm - it will appear in the first System card though.  And Windows should say it succeeded...

Quoteyou don't think there would be anything to do with all those "." in your file name other then extension?
Its a Linux based system, so the filename format is quite correct

Millerszone

#13
I ended up installing GLbasic on my laptop, App installed on the Palm with no problems.
Thanks for the help.

I have to say HTD Baseball plays and looks great on the Pre 2. The sound has a little lag,
but I noticed Angry Birds sound also lags. Also Alpha Blending needs to be adjusted.

It's nice to convert from one platform to another with minimum work. Thanks Gernot.

UPDATE: Switched to a different USB port on my decktop computer and now package uploads
to Palm.


Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

ampos

I am stuck also with the file never copying to the device:

Quote
D:\Programas\GLBasic\Proyectos\iQuiosk>CALL "D:\Programas\GLBasic\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "D:\Programas\GLBasic\Proyectos\iQuiosk\glbwebos"
Making .ipk Package from ""D:\Programas\GLBasic\Proyectos\iQuiosk\glbwebos""
creating package com.dinigames.iquiosk_1.0.0_all.ipk in D:\Programas\GLBasic\Proyectos\iQuiosk
Installing package: "D:\Programas\GLBasic\Proyectos\iQuiosk\com.dinigames.iquiosk_1.0.0_all.ipk"
installing package D:\Programas\GLBasic\Proyectos\iQuiosk\com.dinigames.iquiosk_1.0.0_all.ipk on device "roadrunner-linux" {fb0b4f6496b49d59964a9786408751c5164161a8} usb 49173

any help?