GLBasic forum

Main forum => Announcements => Topic started by: Kitty Hello on 2007-Jan-31

Title: GP2X
Post by: Kitty Hello on 2007-Jan-31
So, now you can create for GP2X platform.
(http://gp2x.co.uk/newblack.gif) (http://www.gp32x.com)
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
Title: GP2X
Post by: bigsofty on 2007-Jan-31
Wow... well done Gernot! :D

I've posted this news on some of the GPX2 developer websites.
Title: GP2X
Post by: STTrife on 2007-Feb-01
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!
Title: GP2X
Post by: Kitty Hello on 2007-Feb-01
Oh dear. I'll upload an update. Sorry.
Title: GP2X
Post by: Neurox on 2007-Feb-01
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
Title: GP2X
Post by: Kitty Hello on 2007-Feb-01
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!
Title: GP2X
Post by: Neurox on 2007-Feb-01
Quote from: GernotFrischOK. I have to fix this tonight.
Ok !
I'll wait ;-)

Neurox
Title: GP2X
Post by: STTrife on 2007-Feb-01
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 :)
Title: GP2X
Post by: Kitty Hello on 2007-Feb-02
Fixed both bugs.
Title: GP2X
Post by: Neurox on 2007-Feb-02
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
Title: GP2X
Post by: STTrife on 2007-Feb-02
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.
Title: GP2X
Post by: Kitty Hello on 2007-Feb-05
Update online. You should be able to make games now. Only problem seems clipping of upper border with SPRITEs so far.
Title: GP2X
Post by: Neurox on 2007-Feb-05
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
Title: GP2X
Post by: Kitty Hello on 2007-Feb-05
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.
Title: GP2X
Post by: Neurox on 2007-Feb-05
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
Title: GP2X
Post by: Kitty Hello on 2007-Feb-05
that's the correct one. Did you "sync" before starting? That is: open a telnet, login as root and type "snyc" (no quotes).
Or: Get the SD card out, copy there and re-insert it.

Have you tried http://www.glbasic.com/beta/wumbo-gp2x.rar? It was compiled using exactly this library.
So strange...
Title: GP2X
Post by: planetm on 2007-Feb-05
Quote from: 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
I have also tried this now, with identical results to Neurox. The Wumbo demo works fine however.
Title: GP2X
Post by: Kitty Hello on 2007-Feb-06
I've uploaded a new update with works 100% perfectly on my machine. Can you please test? Also, can you try starting the .gpe over telnet and post the output if it fails?
Title: GP2X
Post by: Neurox on 2007-Feb-06
Quote from: GernotFrischI've uploaded a new update with works 100% perfectly on my machine. Can you please test? Also, can you try starting the .gpe over telnet and post the output if it fails?
I've also tried this now with telnet .
The GP2X is always black :-( but telnet output is :
Code (glbasic) Select
Using mmuhack.o
Got /dev/mem at 0x7
Got blitter at: 0x4232a000
Other steps ?

Neurox
Title: GP2X
Post by: Kitty Hello on 2007-Feb-06
With version 4.090?
Title: GP2X
Post by: Neurox on 2007-Feb-06
Quote from: GernotFrischWith version 4.090?
Yes !

Neurox
Title: GP2X
Post by: Kitty Hello on 2007-Feb-06
Would you mind uninstalling GLBasic, Delete _all_ files from GLBasic folder, download the SDK again and re-install it?
I have not the faintest clue why it does not work, where the Wumbo game _does_ work. I mean: It's the exact same compiler I used. I'm so puzzled...
Title: GP2X
Post by: Neurox on 2007-Feb-06
Quote from: GernotFrischWould you mind uninstalling GLBasic, Delete _all_ files from GLBasic folder, download the SDK again and re-install it?
1) I've uninstalled GLBasic
2) Delete all files and directory remain
3) Reset Windows XP
4) Download the last version of GLBasic
5) installed GLBasic
6) I've rewrite the sample codes and compiled / copy to GP2X
7) Execute with a telnet but the I've same result :-(

Quote from: GernotFrischI have not the faintest clue why it does not work, where the Wumbo game _does_ work. I mean: It's the exact same compiler I used. I'm so puzzled...
If you want , I'll send the gpe file for test with your GP2X ?

Neurox
Title: GP2X
Post by: Kitty Hello on 2007-Feb-06
I've got an idea!!! My code first didn't work because I had a wrong mmu_hack.o.
Please check, if the mmu_hack.o you're using has these details:
Code (glbasic) Select
Last Change: Aug-12-2006, 23:38:28
File Size:        1676 Bytes
Also make sure you don't have an older mmu_hack.o in your /usr/lib/modules/... directory
Title: GP2X
Post by: Neurox on 2007-Feb-06
Quote from: GernotFrischI've got an idea!!! My code first didn't work because I had a wrong mmu_hack.o.
Please check, if the mmu_hack.o you're using has these details:
Code (glbasic) Select
Last Change: Aug-12-2006, 23:38:28
File Size:        1676 Bytes
Also make sure you don't have an older mmu_hack.o in your /usr/lib/modules/... directory
the only mmu_hack.o found into my GP2X is with glbasic test file,
and mmu_hack.o details is the same!

Neurox
Title: GP2X
Post by: Kitty Hello on 2007-Feb-06
FIXED!! It was a Demo-Version problem. Thx for your help.
Title: GP2X
Post by: planetm on 2007-Feb-07
Quote from: GernotFrischFIXED!! It was a Demo-Version problem. Thx for your help.
Excellent. Is this fix an internet update or a full version download? Off to work now, but I look forward to trying it out later :)
Title: GP2X
Post by: Neurox on 2007-Feb-07
Quote from: GernotFrischFIXED!! It was a Demo-Version problem. Thx for your help.
Yes, good work, the problem is fixed!
But I found another problem :-(
When you exit from GLBasic application to menu,
the menu,icons and various options are "mixed"
and made a strange problem.

Thanks,
Neurox
Title: GP2X
Post by: planetm on 2007-Feb-07
Quote from: GernotFrischO_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.
I've now had this working. I've noticed a different bug to Neurox though: I can't seem to exit the application. The blue bar slowly decreases, but pressing vol- and vol+ just freezes it and does not exit to menu. I've tried a few other things (I lost the while/wend loop and tried a keywait at the end instead) but I still cannot exit the application. Maybe i'm just making a stupid mistake though :)
Title: GP2X
Post by: Kitty Hello on 2007-Feb-08
No, you're right. 90% of the time it locks up and won't reload the gp2xmenu. I've got to find this bug, still.
Title: GP2X
Post by: Neurox on 2007-Feb-08
Hi,

Quote from: GernotFrischNo, you're right. 90% of the time it locks up and won't reload the gp2xmenu. I've got to find this bug, still.
there is a same problem in last version (4.092)

Neurox
Title: GP2X
Post by: Kitty Hello on 2007-Feb-08
Does 4.092 run? I mean: I've not done anything to the end-problem, but does it run 2D gfx?
It should be able to run 3D graphics, too. (try Samples/3D/Simple)
Title: GP2X
Post by: Neurox on 2007-Feb-08
Quote from: GernotFrischIt should be able to run 3D graphics, too. (try Samples/3D/Simple)
I've compiled and copied to GP2X,
but I've seen only demo string :-(

Neurox
Title: GP2X
Post by: PJBonoVox on 2007-Sep-17
Quote from: GernotFrischIt should be able to run 3D graphics, too. (try Samples/3D/Simple)
I can't even so much as draw a simple shape in 3D on GP2X. I presumed that was just because the GP2X doesn't support the 3D stuff.
Title: GP2X
Post by: Kitty Hello on 2007-Sep-17
3D on GP2X is quite useless. I'm working on a great improvement, but it's going to take some time.