GLbasic 4.267 and GP2X

Previous topic - Next topic

Neurox

Hi,
this morning I've compiled my last program for GP2X
 with a new version of GLBasic(4.267),  but the binary
have a problem! :-(
The program in windows run correctly but under GP2X
I've seen two errors :
1) refresh and showscreen
2) load png files

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

Kitty Hello

What exaclty are the problems? Please post a small sample code that illustrates it.

Neurox

Hi,

Quote from: GernotFrischWhat exaclty are the problems? Please post a small sample code that illustrates it.
....more test after :-)
I've found a problem in zoomsprite command :-(
this is a sample code for test :

Code (glbasic) Select
// --------------------------------- //
// Project: testver
// test for problem of GLBasic version under GP2X
// Start: Thursday, August 09, 2007
// IDE Version: 4.267
LOADFONT "FA_verde.png",0 //font 96x64x24bpp
LOADSPRITE "dirigibile.png",0 //sprite 22x16x8bpp
SETSCREEN 320,240,0
x = 319
SPRITE 0,0,100
GRABSPRITE 20,0,100,22,16
SHOWSCREEN
WHILE TRUE
   PRINT "Hello world",10,10
   PRINT "Ics:"+x,10,20
   DEC x,1
   SPRITE 0,x,50 //sprite 0
   ZOOMSPRITE 0,x,100,1.5,1.5 //sprite 0
   SPRITE 20,x,150 //grabbed sprite
   ZOOMSPRITE 20,x,200,1.5,1.5 //grabbed sprite
   SHOWSCREEN
   IF x < -22 THEN x = 319
WEND
and GRABSPRITE also have a problem under GP2X :-(

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

Neurox

Hi GernotFrisch,
sorry for my insistence but I've a question :
Have you tested the new version of GLBasic on GP2X ?

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

Kitty Hello

No. Sorry. I'll do ASAP, OK?

Neurox

Hi,

Quote from: GernotFrischNo. Sorry. I'll do ASAP, OK?
yes but if you want see,
I've made a video :

http://www.youtube.com/watch?v=HxiS9v8D-I0

there are only two of four sprite :-(


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

Neurox

Hi,
this night I'd update GLBasic with a new version 4.278
I've compiled the program for GP2X and compiler told me :

Code (glbasic) Select
*** Configuration: GP2X ***
precompiling:
GPC - GLBasic Precompiler V.2007.221 - 3D, NET
Wordcount:18 commands

compile+link:
F:/Programmi/glbasic/Compiler/platform/GP2X/Lib\libGLBasicGP2X.a(glb.o): In function `__GLBASIC__::WaitOnI2CInterrupt()':
glb.cpp:(.text+0xdd0): undefined reference to `__GLBASIC__::gp2x_memreg16'
F:/Programmi/glbasic/Compiler/platform/GP2X/Lib\libGLBasicGP2X.a(glb.o): In function `__GLBASIC__::FetchGP2XSerial(char*)':
glb.cpp:(.text+0x2e48): undefined reference to `__GLBASIC__::gp2x_memreg16'
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Time: 4.5 sec
Build: 0 succeeded
*** 1 FAILED ***
Bye,
Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Kitty Hello

So sorry. I'll upload an update within the next hour.

Kitty Hello

All Problems seem solved now. Make sure in the project-options you have screen resolution set to 320x240 for GP2X platform.
Please use the project options instead of setscreen when possible.