GLBasic forum

Main forum => Announcements => Topic started by: Kitty Hello on 2011-Mar-09

Title: Pandora
Post by: Kitty Hello on 2011-Mar-09
I CAN COMPILE ON WINDOWS!!!!!

Sorry for the screaming.
Title: Re: Pandora
Post by: Ian Price on 2011-Mar-09
Yay! =D
Title: Re: Pandora
Post by: Minion on 2011-Mar-09
Dont bloody keep it to yourself !!!!!!! Gimmee gimmee gimmee ;)
Title: Re: Pandora
Post by: Kitty Hello on 2011-Mar-09
Get the latest setup now. It really works!
Title: Re: Pandora
Post by: Minion on 2011-Mar-09
What setup ? A new version of GLB ?
Title: Re: Pandora
Post by: MrTAToad on 2011-Mar-09
Update
Title: Re: Pandora
Post by: Kitty Hello on 2011-Mar-09
Setup please, if you want pandora - the live update would have been too heavy.
Title: Re: Pandora
Post by: S.O.P.M. on 2011-Mar-09
What a happy day, isn't it ;)
Title: Re: Pandora
Post by: Minion on 2011-Mar-10
OK, what am I looking for ? Setup what ? Update what ? Is it just downloading the latest version of GL or is it something else ?
Title: Re: Pandora
Post by: Minion on 2011-Mar-10
OK, just downloaded the full SDK, reinstalled it, and tried to compile for pany, and I get this ...

Code (glbasic) Select

_______________________________________
*** Configuration: PANDORA ***
precompiling:
GPC - GLBasic Precompiler V.7.861 SN:dea43a4d - 3D, NET
Wordcount:1567 commands
compile+link:
Q:/Compiler/platform/Pandora/bin/ld.exe: warning: libts-1.0.so.0, needed by Q:\Compiler\platform\pandora\lib/libSDL.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/Pandora/bin/ld.exe: warning: libmad.so.0, needed by Q:\Compiler\platform\pandora\lib/libSDL_mixer.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/Pandora/bin/ld.exe: warning: libIMGegl.so, needed by Q:\Compiler\platform\pandora\lib/libGLES_CM.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/Pandora/bin/ld.exe: warning: libsrv_um.so, needed by Q:\Compiler\platform\pandora\lib/libGLES_CM.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/Pandora/bin/ld.exe: warning: libXau.so.6, needed by Q:\Compiler\platform\pandora\lib/libX11.so, not found (try using -rpath or -rpath-link)
Q:/Compiler/platform/Pandora/bin/ld.exe: warning: libXdmcp.so.6, needed by Q:\Compiler\platform\pandora\lib/libX11.so, not found (try using -rpath or -rpath-link)
success
_______________________________________
*** Finished ***
Elapsed: 14.4 sec. Time: 13:21
Build: 1 succeeded.


Im pretty sure that isnt right ;( And I cant find anything in the PandoraMake folder that looks like a binary file to transfer over.
Title: Re: Pandora
Post by: MrTAToad on 2011-Mar-10
Dont worry about those warning messages
Title: Re: Pandora
Post by: Minion on 2011-Mar-10
Ah...ok. Did manage to pind a bin file, not in PandoraMake folder tho (That was there from old compiles) but in the normal app folder. Pushed that over to the pandy...and it worked ;) Mind numbingly slow tho...and theres a fair few glitches, like BLENDSCREEN doesnt work properly (my images fade on, then screen goes black and the next image fades on), Joystick doesnt seem to register, USEASBMP doesnt appear to work (My image flashes on screen, then the screen goes black again) And I have a really bizzare bug that is changing all my on screen text to the last piece of text I last used.
Title: Re: Pandora
Post by: S.O.P.M. on 2011-Mar-10
If your game runs far too slow you should consider to optimize or change your code because generally GLBasic runs quite fast on the Pandora now.

This uses not any 3D commands but it runs fast:
http://www.youtube.com/watch?v=3PuGRCVAoa4

It was compiled on the Pandora before the OpenGL acceleration. Now the same code runs much faster and there're still optimization possible.
For USEASBMP pick up USESCREEN and you can get the same result. In my example I've used it and it works.
Title: Re: Pandora
Post by: Minion on 2011-Mar-10
The game Im running is this ...

http://www.glbasic.com/showroom.php?site=games&game=spaceinvadersmk2&lang=en

And on the title screens alone, what takes 10/15 seconds to pass on there takes at least 3.5 minutes ;(
Title: Re: Pandora
Post by: Ian Price on 2011-Mar-10
QuoteAnd on the title screens alone, what takes 10/15 seconds to pass on there takes at least 3.5 minutes ;(
Ouch! :(
Title: Re: Pandora
Post by: WizardStan on 2011-Mar-10
Awesome!  A few things though:
1) I downloaded the SDK, for which I thought I was only supposed to be able to make Win32, Linux, and Mac with it? I didn't upgrade to premium or anything, just went through with the free version, but there doesn't seem to be anything preventing me from building for any of the other systems (notably Pandora :D).  Is that a mistake or did I misunderstand?
2) Pandora output is a .PND file but it's really just an executable.  PND files aren't executables, they're ISOs (or squashfs files) containing executable and data files, with a special XML file concatenated onto the end (and included within the ISO itself).  The XML tells the Pandora how to load the PND file (notably which file is the executable, what icon to use, etc...) so it can make a menu item for it automatically.  That being said, I was able to run the resulting PND file as just a regular executable.  Brilliant!
3) Those warnings are not strictly a problem but they are annoying.  I took the liberty of pulling the respective files off my Pandora and bundling them up here (http://www.rebirthofxeen.com/files/pandora/libs.rar).  Just drop them into the arm-none-linux-gnueabi\libc\lib directory and the warnings disappear.

It still needs some work, or perhaps the applications themselves need to be adjusted, but I see a lot of awesome potential here.
Title: Re: Pandora
Post by: Kosta on 2011-Mar-11
conserning 1)

Please check an example more than 5 min.

from GLBasic-News Site: http://www.glbasic.com/main.php?lang=en&site=news

"GLBasic is now free for non-commercial Projects of the platforms: Windows, Linux und Mac (2D und console). If premium services are used, the running app switches into the 5 minute demo mode."
Title: Re: Pandora
Post by: torpor on 2011-Mar-12
Hi!  I'm normally coding just fine on my Pandora with C/C++, but for fun I thought I would try a small GLBasic project, and so I've become a registered user.  (Anything to support more cool stuff on Pandora!)

Anyway, just wondering if the GLBasic compiler is using Floating Point in any way, and if so which fpu settings are used at the build stage?
Title: Re: Pandora
Post by: Kitty Hello on 2011-Mar-14
I use:
-O3 -w -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp

DjWillis told me that's fine.
Title: Re: Pandora
Post by: LineOf7s on 2011-Mar-16
Heya.

GLBasic seems to be gaining some traction in the Pandora community, and I'm keen to keep the momentum going if possible, so I thought I'd follow up here before it got lost in the distractions.   =D

Firstly,
Quote from: WizardStanPandora output is a .PND file but it's really just an executable.  PND files aren't executables, they're ISOs (or squashfs files) containing executable and data files, with a special XML file concatenated onto the end (and included within the ISO itself).  The XML tells the Pandora how to load the PND file (notably which file is the executable, what icon to use, etc...) so it can make a menu item for it automatically.
This one's rather important.  For some assistance in making this happen (and it seems simple enough for the sort of person that can, say, write his own programming language  ;)), there's the PND Quickstart Guide (http://"http://pandorawiki.org/PND_quickstart") available at the PandoraWiki (http://"http://pandorawiki.org/Main_Page") that (from what I can tell) will tell you everything you need to know.

Secondly, this:
Quote from: WizardStanThose warnings are not strictly a problem but they are annoying.  I took the liberty of pulling the respective files off my Pandora and bundling them up here (http://"http://www.rebirthofxeen.com/files/pandora/libs.rar").  Just drop them into the arm-none-linux-gnueabi\libc\lib directory and the warnings disappear.
Hopefully these files can be incorporated (linked from the word 'here' above) into GLBasic such that those ugly ugly warnings don't pop up if they don't need to.

Again, GLBasic is starting to gain some traction in a new community and I'm always keen to see quality software get the sort of recognition it deserves, so hopefully resolving the issues above can help you get a foot in the door (so to speak).

edit:  Wow - first post?  Really?  I've been reading these forums forever and have never posted?  Well... that's the end of that, then.
Title: Re: Pandora
Post by: Kitty Hello on 2011-Mar-17
can someone write me a batch file, that can make a .pnd archive from a directory on windows? I'll include that then.
Title: Re: Pandora
Post by: Kitty Hello on 2011-Mar-17
OK, I think I got it.
Title: Re: Pandora
Post by: kaiserpc on 2011-Mar-17
1st post woohoo ;-)

yep, let's keep the momentum going on GLBasic for Pandora.  I have downloaded the "free" GLBasic version and will upgrade to the full package when I (eventually) receive my Pandora.

I'm trying to get a GLBasic sub-forum setup under the development section on the Pandora boards - can anyone interested in this, post that they want this setup here; http://boards.openpandora.org/index.php?/topic/2331-glbasic-new-sub-category/ (http://boards.openpandora.org/index.php?/topic/2331-glbasic-new-sub-category/)

Hopefully if we get enough people to respond we will get a dedicated Pandora GLBasic sub-forum :-)
Title: Re: Pandora
Post by: Moru on 2011-Mar-17
It would be preffered to have all the help for GLBasic on the official forums I guess. Otherwise you risk having questions on severals boards and no answers.

On the other hand it's good publicity to developers that wouldn't have heard of it otherwise.

Hmm...

Now if I just could get my pandora :-)