Palm Pre - WebOS

Previous topic - Next topic

MacReeg

I find the solution for my problem! So damn - I had toogle my device as "USB-Drive" and not "charge only" so the missing folder "cryptofs" was locked. What a simple and frustrating miss handling!

MacReeg

Now I can start my App on the palm ... BUT  :'(

This is the command line output after calling "./glbasic-webos-exe":

QuoteInit GFX
SDL_init video
SDL_GetVideoInfo = 320x480 @ 32
Setting video mode: 0x0x0 fl=2
BGRA ext supported
Init Finalized
CALLBYNAME "GLB_ON_PAUSE" *** failed ***
CALLBYNAME "GLB_ON_RESUME" *** failed ***
Killed

My Palm shows the App and reboot automatically!!!

Here my little TestApp-Code:

Code (glbasic) Select
SETCURRENTDIR("Media") // seperate media and binaries?

SETSCREEN 320, 480, 1


WHILE KEY(1) = 0


DRAWLINE 0, 0, 320, 480, RGB(255, 0, 0)

SHOWSCREEN


WEND


Why reboots my Palm after starting program?

Kitty Hello

no setscreen, please.

Try DRAWRECT instead of DRAWLINE (just to get things safe and started).

BTW: All your described errors are handled in the manual in GLBasic intern/WebOS - Palm Pre.
Please read it carefully. The youtube video might be misleading, because it was a very very early stage of beta.

mentalthink

Hi today arrives, my Pre Palm, but I don´t be capable to put anything into the phone.

Well I real, and watch the video, but nothing happens, well I don´t know exactly, what steps to follow, I don´t know if , I have got a file from Hp, equal the iPhone Provisioning file, or something similar.

Well I explain a little my probes, if anybody can help, thanks.

Well I upgrade the O.S to 1.4.5

I make simple program in Glbasic, and compile, well lot of warnings, no problem, equal the video.

I take my project folder and drag to palm-package, nothing appear how new file.

I try to use, (in the files fom the SDK GLbasic, download , NOT the files from this post), a .bat calle glb_pack_and_install, but nothing succes.

I read a part of instrucction, what I don´t understand. It´s this: (red color)

If you have a Palm Pre, can you help me checking if everything works with the first connect?

Get this:
http://www.glbasic.com/beta/palm_dev_tools.zip


Step 1: Prepare the device
   In card view (no cards open type
   "webos20090606" (without the quotes)
   in the search box.
   
   There will be an icon "Developer Mode Enabler"
   Tap that, and turn developer mode on.
   http://developer.palm.com/index.php?option=com_content&view=article&id=1973&Itemid=336
   

Step 2:
  Install the driver for your OS from the drivers directory of that zip file. /tool/bin/novaterm/drivers

Step 3:
  Upload the SSH server for the device. The firewall only
  allows access through USB, so you're safe installing this.


  With a command line run: "pdk-device-install.bat install" (it's in the zip  /tool/bin/novaterm)
  Post the output of that here, please!

Step 4:
  Try to run  /tool/bin/DeviceShell.bat - does it open a root console? Yay!

Any guide for make this step, in someplace in glbasic forum, I don´t understand nothing for make this step (excuseme for my ignorace).

Well I hope, if anyone can helpme, because I stay a lot of hours in front the screen, but I don´t have a happy finish  :(

Kinds Regards,
Iván J.



Marmor

#94
ok am on win xp here . so go on
u set the developermode on ? webos20090606 ?
ok
u install kitti's tools ?
ok
u run pdk-device-install.bat install ? this is the red code from u nothing moore as a server over usb !
ok
put  the usb on booth first pre then win (because usb the micro is so damn small)

your pre ask loading or usb
type loading
ok
compile a miniproject  for web os also set the settings for
ok
the last statement line from glb is  somthing like this

Merge .app/Media in Z:\glcode\GLBasic\fff\glbwebos and pack with
"C:\Programme\GLBasicprebeta\Compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "Z:\glcode\GLBasic\fff\glbwebos".
ok ?
copy this
C:\Programme\GLBasicprebeta\Compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "Z:\glcode\GLBasic\fff\glbwebos
ok ?
call start /execute-  cmd

looks like a dos shell or ;)
paste
C:\Programme\GLBasicprebeta\Compiler\platform\webos\tool\bin\glb_pack_and_install.bat" "Z:\glcode\GLBasic\fff\glbwebos
remove the quotes

type enter
thats all


i know u read it yet hope this help






Kitty Hello


mentalthink

Hi, Gernoot, thanks in advice. This was without new instructions[Yesterday]( I think is something wrong on my Windows, so when I try install the driver x86 (sorry, I don´t remenber the name of file), in a machine I think don´t execute well, appear the loading bar, and when arrives at finish, don´t make nothing, else, in my laptop is the same windows, execute the driver x86, and tell about gathering information, well the standard when you execute a .exe.)

I go to learn your steps, and perhaps this same evening I comment in this thread, if not will be tomorrow.

Thanks all, for your helps.

Kinds Regards, Iván J

mentalthink

Thanks Gernnot, works at he first Time!!!.

Thaks for the manual for install aplications, is very clear and easy to follow the Steps.


Kitty Hello

OK, fine. I'll fix a few tiny issues then and release the new version within the next few days.

mentalthink

oK, I try a model in 3D whit texture and works, vey fine, I look a little error in the texture but i think is problem of faces the model, donwloaded from internet. Works in the same manner than iPhone, and I don´t stay sure, but I think more speddest, becuase the model weigth is 1.419 Kb and 213 Kb of the .png textures. I try whit more time how woks 3D, but I think Glbasic works pretty nice in this platform too.

Kinds Regards
Mentalthink

Marmor

Some rumors say we must pay 99 for developerlicense and 50 per App.
But its all free !!
http://developer.palm.com/index.php?option=com_content&view=article&id=1840

Ian Price

Registered.

Thanks for the heads up :)
I came. I saw. I played.

mangoo

Hi,


thanks for your hard work gernot :-)

I got some compile errors while it worked well for WIN32. IT cant find some files inside a subdirectory ( .h files )

For WIN32 it works fine, also for IPHONE,i only get the errors for WebOS

WIN32:
Code (glbasic) Select

_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.7.826 SN:b7faa967 - 3D, NET
Wordcount:2173 commands
compiling:

linking:
erfolgreich
_______________________________________
*** Fertig ***
Dauer: 17.3 sek. Zeit: 18:20
Erstellen: 1 erfolgreich.



WEBOS:

Code (glbasic) Select

_______________________________________
*** Configuration: WEBOS ***
precompiling:
GPC - GLBasic Precompiler V.7.826 SN:b7faa967 - 3D, NET
Wordcount:2169 commands
compile+link:
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:497:33: error: extern/xml/XMJcalls.h: No such file or directory
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:499:38: error: extern/xml/JPR_GetNxtLne.h: No such file or directory
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:501:40: error: extern/xml/JPR_GetNxtLne.cpp: No such file or directory
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:503:35: error: extern/xml/XMJ_rSrc.cpp: No such file or directory
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:505:35: error: extern/xml/XMJ_sNew.cpp: No such file or directory
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:507:35: error: extern/xml/XMJ_tDel.cpp: No such file or directory
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function '__GLBASIC__::DGStr __GLBASIC__::XMJ_GetVersion_Str()':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:549: error: 'XMJ_getVersion' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function '__GLBASIC__::DGStr __GLBASIC__::XMJ_GetDate_Str()':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:610: error: 'XMJ_getDate' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function '__GLBASIC__::DGStr __GLBASIC__::XMJ_GetLastError_Str()':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:671: error: 'XMJ_getLastError' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_ReadFile(__GLBASIC__::DGStr, __GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:715: error: 'XMJ_readFile' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_GetFirstGroup(__GLBASIC__::DGStr, DGNat)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:744: error: 'XMJ_getFrstGroup' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_GetLastGroup(__GLBASIC__::DGStr, DGNat)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:773: error: 'XMJ_getLastGroup' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_GetNextGroup(__GLBASIC__::DGStr, DGNat)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:802: error: 'XMJ_getNextGroup' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function '__GLBASIC__::DGStr __GLBASIC__::XMJ_GetAttribute_Str(__GLBASIC__::DGStr, __GLBASIC__::DGStr&)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:846: error: 'XMJ_getAttribute' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_Reset()':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:892: error: 'XMJ_reset' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_NewFile(__GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:920: error: 'XMJ_newFile' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_NewGroup(__GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:948: error: 'XMJ_newGroup' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_PutGroup(__GLBASIC__::DGStr, __GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:977: error: 'XMJ_putGroup' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_GroupPutValue(__GLBASIC__::DGStr, __GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1006: error: 'XMJ_newGrpPutVal' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_PokeNewGroupPutValue(__GLBASIC__::DGStr, __GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1035: error: 'XMJ_pokeNewGrpPutVal' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_NewAttribute(__GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1063: error: 'XMJ_newAttribute' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_PutAttribute(__GLBASIC__::DGStr, __GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1092: error: 'XMJ_putAttribute' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_NewAttributePutValue(__GLBASIC__::DGStr, __GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1121: error: 'XMJ_newAttPutVal' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_WriteFile(__GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1149: error: 'XMJ_writeFile' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_NewComment(__GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1177: error: 'XMJ_newComment' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_DeleteGroup(__GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1205: error: 'XMJ_delGroup' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_DeleteAttribute(__GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1233: error: 'XMJ_delAttribute' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_DeleteComment(__GLBASIC__::DGStr)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1261: error: 'XMJ_delComment' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_NewStream(__GLBASIC__::DGStr, DGNat)':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1290: error: 'XMJ_newStream' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function '__GLBASIC__::DGStr __GLBASIC__::XMJ_GetStream_Str()':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1333: error: 'XMJ_getStream' was not declared in this scope
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp: In function 'DGNat __GLBASIC__::XMJ_DeProfundis()':
C:\Users\alex\AppData\Local\Temp\glbasic\gpc_tempb.cpp:1376: error: 'XMJ_deProfundis' was not declared in this scope
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Dauer: 11.8 sek. Zeit: 18:23
Erstellen: 0 erfolgreich.
*** 1 FEHLGESCHLAGEN ***




I just use normal c includes:


extern/xml/XML.gbas
Code (glbasic) Select

#include "extern/xml/XMJcalls.h"
#include "extern/xml/JPR_GetNxtLne.h"
#include "extern/xml/JPR_GetNxtLne.cpp"
#include "extern/xml/XMJ_rSrc.cpp"
#include "extern/xml/XMJ_sNew.cpp"
#include "extern/xml/XMJ_tDel.cpp"


And the extern/xml/ folder exists and contains all necessary files

C:....\GLBasic\siasola\extern\xml\


I also tried to move the files to other directories like  extern\  and siasola\  and changed the includees but it didnt help.

Any idea?

mentalthink

HI about pressing buttons on Paml Pre.

On my device if I press the chasis, just under the bottom of the display, I can use for move cards, etc. On Glbasic, how I control this part of the device, because I try whit mouse b1=true, but in this part of device, don´t affect nothing. Whit an image out, of the screen I don´t try, but I think this bad trick don´t works, I tried too, whit the second button, but nothing too.

Kind regards,
Iván J.

Marmor

what do you think is the best font size for the palm pre ?
CAN U read the smalfont without a lens ?