GLBasic forum

Main forum => GLBasic - en => Topic started by: Millerszone on 2011-Apr-01

Title: Having problems Packing and Installing on Palm Pre
Post by: Millerszone on 2011-Apr-01
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
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: MrTAToad on 2011-Apr-01
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.
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Ian Price on 2011-Apr-01
Never had this problem myself, but I've always updated my Java runtimes when informed of new ones by SunSoft.
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Millerszone on 2011-Apr-02
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 . . .
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: MrTAToad on 2011-Apr-02
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"
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Millerszone on 2011-Apr-02
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.
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: MrTAToad on 2011-Apr-02
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...
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Millerszone on 2011-Apr-02
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

Title: Re: Having problems Packing and Installing on Palm Pre
Post by: 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
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: MrTAToad on 2011-Apr-02
That could deal with spaces in paths - will have to check that...
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Millerszone on 2011-Apr-03
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?





Title: Re: Having problems Packing and Installing on Palm Pre
Post by: erico on 2011-Apr-03
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?
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: MrTAToad on 2011-Apr-03
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
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Millerszone on 2011-Apr-03
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.


Title: Re: Having problems Packing and Installing on Palm Pre
Post by: ampos on 2011-Apr-05
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?
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: ampos on 2011-Apr-05
I move the entire project to c:\ and it is stuck at

QuoteC:\iQuiosk>CALL "D:\Programas\GLBasic\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "C:\iQuiosk\glbwebos"
Making .ipk Package from ""C:\iQuiosk\glbwebos""
creating package com.dinigames.iquiosk_1.0.0_all.ipk in C:\iQuiosk
Installing package: "C:\iQuiosk\com.dinigames.iquiosk_1.0.0_all.ipk"

I have GLB 9.040 installed at d:\programas\..., and 9.053beta at c:\program files (x86)\... but the test are done withn 9.040
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: ampos on 2011-Apr-05
Can ipk packages sent to the palm in some another way? copying by hand, downloading from a web,...?
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Millerszone on 2011-Apr-05
Quote from: ampos on 2011-Apr-05
I move the entire project to c:\ and it is stuck at

QuoteC:\iQuiosk>CALL "D:\Programas\GLBasic\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "C:\iQuiosk\glbwebos"
Making .ipk Package from ""C:\iQuiosk\glbwebos""
creating package com.dinigames.iquiosk_1.0.0_all.ipk in C:\iQuiosk
Installing package: "C:\iQuiosk\com.dinigames.iquiosk_1.0.0_all.ipk"

I have GLB 9.040 installed at d:\programas\..., and 9.053beta at c:\program files (x86)\... but the test are done withn 9.040

You're stuck where I was, I switched to a different USB port, then everything worked.
Also try restarting the computer and phone.

I had to use this Macro for beta:
Code (glbasic) Select
CALL "%GLB_MAIN_PATH%\compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "%GLB_PROJ_PATH%\%GLB_PROJ_NAME%.app"



Title: Re: Having problems Packing and Installing on Palm Pre
Post by: ampos on 2011-Apr-05
It is working now (after reseting the PC and Palm), but...

It does not read graphics from my /media dir...

I am not using setcurrentdir.

I have

Code (glbasic) Select
?IFDEF IPHONE
ALLOWESCAPE FALSE
mpat$="Media/"
?ELSE
mpat$=GETCURRENTDIR$()+"media/"
?ENDIF
dpat$=PLATFORMINFO$("DOCUMENTS")


mpat$ as media_path and dpat$ as doc_path.

Everything is loaded as mpat$+"file" or dpat$+"file"

What is the PLATFORMNAME$ of Palm? WebOS?
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: ampos on 2011-Apr-05
Fixed.

I can say that is is faster than a iPhone 3G. My app is downscaling and rotating a sprite 700x1000, on 3G it lags, on Palm, as smooth as iPhone 4.

Woot!
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Ian Price on 2011-Apr-17
QuoteIt does not read graphics from my /media dir...
I'm now having the same problems (sometimes the whole file fails, other times it won't transfer media) when transferring files to the Palm since updating to v9.040. :(

It seems that something has gone very wrong since the last GLB update; to get the full app onto the Palm and working properly now is very hit and miss. :(
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: ampos on 2011-Apr-17
Use mpat$="media", same as iOS.

Also I have noted that if I use setcurrentdir media$ and later setcurrentmedia docs$, a new setcurrentdir media$ does not work. So I have to forget about setcurrentdir and use always load media$+file$ and docs$+file$ (on iOS and palm)
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Ian Price on 2011-Apr-17
I use exactly the same set up for iOS and WebOS (and always have done) - there's more to this than just code changes, after all it's worked for more than just one app in the past.

My code hasn't changed; something else has that's affecting media AND packaging. And unfortunately it's erratic - sometime it works, sometimes it doesn't.
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: MrTAToad on 2011-Apr-17
I'll have to try 9.040 on another machine (using the first beta at the moment) - but once the pathing was sorted in that, I've had no problems with that.
Title: Re: Having problems Packing and Installing on Palm Pre
Post by: Kitty Hello on 2011-Apr-18
on the BETA - the .app directory is getting packes. The "webos" directory is obsolete.