Hello World on GP2X-F200

Previous topic - Next topic

redbook

Must be something I'm doing wrong but can't seem to get any samples to run on my GP2X-F200. Even a simple Hello World turns the screen black and then exits back to the GP2X menu. The program compiles fine with no error messages.

//////////////
// HELLO WORLD
//////////////
// My First Program
PRINT "HELLO WORLD!" ,100,100;
SHOWSCREEN;
MOUSEWAIT;
END;

I've even tried adding
mark:
GOTO mark;
after the SHOWSCREEN to force a loop but still the program returns back to the GP2X menu.

I've set the resolution for GP2X to 320x240 in the options and tried 30MHz as the maximum frame rate. Still no Hello World!

Is there anything else I should be setting in GL Basic? I'm guessing this is me as other people seem to be using GL Basic fine on the GP2X.

Compiler output::
*** Configuration: GP2X ***
precompiling:
GPC - GLBasic Precompiler V.2007.337 - 2D, WIN32
Wordcount:5 commands
compile+link:
success
*** Finished ***
Time: 2.5 sec
Build: 1 succeeded

GP2X is firmware v 4.0.

Thanks!

BumbleBee

Hi
Latest GLBasic Version (5.106) ? Would like to help but i can't. No GP2X. :( By the way, no semicolon at the end of the line. It's Basic, Not Delphi or C++.:D If you're gonna use the INLINE command, then it's C++.:)

Cheers
The day will come...

CPU Intel(R) Core(TM) i5-3570k, 3.4GHz, AMD Radeon 7800 , 8 GB RAM, Windows 10 Home 64Bit

Kitty Hello

Semicolon is perfectly OK (more commands in a line)
Try a keywait, maybe?

BumbleBee

Quote from: GernotFrischSemicolon is perfectly OK (more commands in a line)
Right, between the commands.What i mean is the end of the line. ;)

 PRINT "HELLO WORLD!" ,100,100;SHOWSCREEN;MOUSEWAIT;<-
 
Ok i don't mind. ;)

Cheers
The day will come...

CPU Intel(R) Core(TM) i5-3570k, 3.4GHz, AMD Radeon 7800 , 8 GB RAM, Windows 10 Home 64Bit

ThinkSolveDude

I have found GLbasic to work well with the GP2X by simply putting the program onto a flash drive and using that. (as opposed to saving directly to the GP2X).

Try copying the entire directory. I have had instances where it would not run code until I copied the entire directory. That worked for me.

redbook

Cheers ThinkSolveDude.

You hit the nail on the head.

Need to also copy the mmuhack.o file to the same directory as the .gpe executable.