GP2X

Previous topic - Next topic

Kitty Hello

So, now you can create for GP2X platform.

Please download a new setup for this purpose:
http://www.glbasic.com/files/glbasic_sdk.exe
With this you can build GP2X games. Attention- there is much space for optimizations left and it might be slow on some purposes. 3D is sub-optimal, too. Simply check for internet updates frequently.

I try to get a bundle GLBasic+GP2X for a decent price - stay tuned.

Bye,
-Gernot

bigsofty

Wow... well done Gernot! :D

I've posted this news on some of the GPX2 developer websites.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

STTrife

Hey hey nice to see you compile for GP2X!
I'v downloaded the demo SDK, and tried some very basic sample projects (hello world etc.)
Now it always compiles fine, then I copy the .gpe, the mmuhack.o and related fonts/bitmaps to my GP2X, but... nothing but a black screen.
I'v tried to run it in a shell, so I could see any error messages, but all I see it this:

Code (glbasic) Select
[root@gp2x test]$./Hello_world.gpe
Got /dev/mem at 0x7
Got blitter at: 0x4232a000
writing to back buffer
worked!
then nothing... if I press ctrl+c it returns to the shell.

Can you tell me how to get it working? thanks! or maybe tell me how to get more debug info so I can find out what's wrong!

Kitty Hello

Oh dear. I'll upload an update. Sorry.

Neurox

Quote from: GernotFrischOh dear. I'll upload an update. Sorry.
Hello,
I've donwloaded the last version (4.085) of GLBasic and
I've wrote simple program :
Code (glbasic) Select
PRINT "Ciao Mondo" ,10,10
SHOWSCREEN
KEYWAIT
but when running the program into GP2X the screen is black
and for exit I've turning off the GP2X.
The firmware version of my GP2X is 2.11 and the maximum frame rate is 66 Hz.

Regards,
Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Kitty Hello

OK. I have to fix this tonight. I don't have my GP2X here at work, so was unable to test it. So, so sorry!

Neurox

Quote from: GernotFrischOK. I have to fix this tonight.
Ok !
I'll wait ;-)

Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

STTrife

I tried the latest webupdate. The GP2X still doesn't seem to work.
Compiling for windows now gives the error:

Code (glbasic) Select
linking:
C:/Program Files/GLBasic/Compiler/platform/Win32/Lib/libGLBasic.a(OpenGLRainbows.o):OpenGLRainbows.cpp:(.text+0x6c60): undefined reference to `gf_write_png'
*** FATAL ERROR - Please post this output in the forum
P.S. The GP2X still compiles, but still shows black screen, let us know on the gp32x.com forums when it's fixed! I'll create something like a 3d arkanoid game then to show the community how it runs on GP2X :)

Kitty Hello

Fixed both bugs.

Neurox

Hi,  sorry but I'm go to crazy ;-)
I have updated with last version of GLBasic (4.086)
and I've compiled this simple file :
Code (glbasic) Select
 // --------------------------------- //
// Project: 01prova
PRINT "Hello GP2X" ,10,20
SHOWSCREEN
KEYWAIT
GP2X Firmware version is 2.11
I've copy the file gpe and mmuhack.o into GP2X,
but the screen still black

Please tell me something :-)
Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

STTrife

YEah me too, tried this:

Code (glbasic) Select
PRINT "Hello GLBasic World !", 0, 100;
SHOWSCREEN
WHILE (TRUE)
WEND
to avoid code that might be bugged, and also tried arkanoid, and simple3d (without the MOUSESTATE stuff)

but all 3 still give a black screen.

Kitty Hello

Update online. You should be able to make games now. Only problem seems clipping of upper border with SPRITEs so far.

Neurox

Quote from: GernotFrischUpdate online. You should be able to make games now. Only problem seems clipping of upper border with SPRITEs so far.
I've downloaded the last version (4.089) and compiled the "Hello World" file,
but still shows black screen on GP2X!

Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Kitty Hello

O_O? Try something more sophisticated:
Code (glbasic) Select
WHILE TRUE
 FILLRECT 0,0,160,160,RGB(255,0,0)
 PRINT "Help Me", 100, 100
 SHOWSCREEN
WEND
Press Vol- AND Vol+ for "Escape". So, so strange. It wokred here...
See the file: GLBasic/Compiler/platform/GP2X/Lib/libGLBasicGP2X.a and tell me the "last change" date, please.

Neurox

Quote from: GernotFrisch
Code (glbasic) Select
WHILE TRUE
 FILLRECT 0,0,160,160,RGB(255,0,0)
 PRINT "Help Me", 100, 100
 SHOWSCREEN
WEND
Press Vol- AND Vol+ for "Escape". So, so strange.
I'v tried to run but still shows black screen on GP2X!
I've pressed the "Vol- AND Vol+" but nothing :-(

Quote from: GernotFrischSee the file: GLBasic/Compiler/platform/GP2X/Lib/libGLBasicGP2X.a and tell me the "last change" date, please.
libGLBasicGP2X.a - 04/02/2007 23:32

Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it