Lazyfoo Tutorial #2


DavidBeoulve

GP2X by EvilDragon OC's to 280-300MHz
Joined
May 10, 2006
Messages
427
Age
48
Location
USA
Website
www.gamersgonebad.com
LINK HAS CHANGED
http://lazyfooproductions.com/SDL_tutorial...son02/index.php

I've just gone through
http://lazyfooproductions.com/SDL_tutorial...son02/index.php

I've already set up Visual Studio 8 and it compiles with SDL without error.

So I build Lesson02 and I get
06/29/2006 10:47 AM <DIR> .
06/29/2006 10:47 AM <DIR> ..
06/29/2006 10:46 AM 45,056 SDLtest.exe
06/29/2006 10:46 AM 398,592 SDLtest.ilk
06/29/2006 10:46 AM 437,248 SDLtest.pdb
3 File(s) 880,896 bytes

Um, stupid question, but do I just rename the .exe to .gpe?

I run it in XP and a black screen comes up, STDERR and STDOUT flash into the directory and then leave as soon as the application self-exits.

I don't want to do strange things to my GP2X so I figured I'd post here. Besides which, I left my replacement batteries and my power cord at home, genius that I am ;)


Edit: added another link
 
This is the setup I use. I doubt renaming an exe without compiling it with a GP2X DevKit would work.

- Alex
 
You also might want to consider using the offical SDK, which uses dev-C++ It has a simple drop down, that will allow you to switch between a win app and a gp2x app.
 
Not to be too forward, but would you guys recommend these solutions to someone whose Linux experience amounts to "Linspire"? Just checking before I'm tempted to download a complete environment and try it out.
 
Both Codeblocks and DevCpp are very light downloads. Codeblocks also has a linux port if that helps :)
 
Howdy Yau!

Yes, they are light. But I use C# at work under Visual Studio 8 so I am more familiar with it. There'd have to be some good meat to the package of learning another GUI, such as "It's a great GUI once you get used to it" not a GIMP GUI (linux photoshop competator with, perhaps, the greatest number of usability holes in a professional graphics application that I've seen :blink: ).

I might try DevCpp because I've read that's the "one-step download and start coding" coding environment for the GP2X. A big factor is finding out what the major devs use because it will be easier to find help if I'm not using an alien environment.

At any rate, anyone here use Visual Studio?
If not, the FBI calls that a clue. :lol:
 
Everyone seems to be using various IDEs/Setups. Squidge and Maddog (I think) is using VS 2005 I think, I am currently using Code::Blocks and most beginners are on the one click setup of DevCpp + GPH SDK (since it is the easiest). There are even a few who are using Emacs/Vi :p.

I am sure no matter which one you choose, there will be somebody here to give you a hand.
 
Not to be too forward, but would you guys recommend these solutions to someone whose Linux experience amounts to "Linspire"? Just checking before I'm tempted to download a complete environment and try it out.

My solution is a windows one, I think the SDK comes in both flavors.
Also I have used Visual Studio exlcusivly before and it was not a major learning curve to use dev-C++
 
Last edited by a moderator:
Far out B)

So - how do I make a .gpe? Lazybones' tutorial seems to skip over that.

'All in one solution' from GamePark Holdings SDK'
Create the new project and select to make a application
Take the code from your demo and insert it into the starter files given to you ( you might be able to replace one for one, not sure. I just took the code from the tutorial i needed and pasted it in.
In the second toolbar done you will see a drop down, probally will have win in it, drop it down and you should see a gp2x.
Crtl-F9 and compile
Where ever you saved the project will be your gpe file.
 
Last edited by a moderator:
is there anything special for setting up vs 2005 I can't find anything in the wiki, just Visual C++ 2005 Express Edition?
 
I've already set up Visual Studio 8 and it compiles with SDL without error.

Um, stupid question, but do I just rename the .exe to .gpe?

That part of the tutorial set up VS to work with SDL for windows.
I followed the set up in the Wiki (someone else mentioned it the 2005 Express set up, works with Full verion as well), there's also a thread (pops off to get the link) here and here that have helped me quite a lot.

Give me a shout if you need to, I'll try to help. MadDog and a few others have really been good to me :)

Thanks
Ben
---
 
Last edited by a moderator:
'All in one solution' from GamePark Holdings SDK'
Create the new project and select to make a application
Take the code from your demo and insert it into the starter files given to you ( you might be able to replace one for one, not sure. I just took the code from the tutorial i needed and pasted it in.
In the second toolbar done you will see a drop down, probally will have win in it, drop it down and you should see a gp2x.
Crtl-F9 and compile
Where ever you saved the project will be your gpe file.
Pickle, Yaustar, you guys mean this?
http://wiki.gp2x.org/wiki/Using_Visual_C_2...Express_Edition

"the starter files given to you" doesn't make sense as I haven't been given any ;) - did you mean to Google "GamePark Holdings SDK"?

Thanks guys.

Woo lookit that!
http://dev.gp2x.com/forum/
It's like - empty! Wierd. *scratches head*

Aha! 2nd Google page. Is this it?
http://www.gizmosforgeeks.com/index.php/articles/2344

Official GP2X SDK has been released
Posted by: Chief Gizmateer on Thu, 08 June 2006 02:12:24

GamePark Holdings, Inc. has officially released the GP2X SDK.

The official GP2X SDK is available from the GP2X site from one of these links:
http://dev.gp2x.com/sdk/gp2xsdk_windows.zip
http://dev.gp2x.com/sdk/gp2xsdk_linux.tar.gz

If you need more library source, GPH provides the contact dev@gp2x.com and GPH will provide it on the developer's forum, http://dev.gp2x.com/forum/. GPH mentions that you can get most of the library from the internet, as Dev-C++ for GP2X was coded with the source code which is already opened on the internet.
 
Last edited by a moderator:
Aha! 2nd Google page. Is this it?
http://www.gizmosforgeeks.com/index.php/articles/2344

Official GP2X SDK has been released
Posted by: Chief Gizmateer on Thu, 08 June 2006 02:12:24

GamePark Holdings, Inc. has officially released the GP2X SDK.

The official GP2X SDK is available from the GP2X site from one of these links:
http://dev.gp2x.com/sdk/gp2xsdk_windows.zip
http://dev.gp2x.com/sdk/gp2xsdk_linux.tar.gz

If you need more library source, GPH provides the contact dev@gp2x.com and GPH will provide it on the developer's forum, http://dev.gp2x.com/forum/. GPH mentions that you can get most of the library from the internet, as Dev-C++ for GP2X was coded with the source code which is already opened on the internet.
That's the All in one solution.
 
Last edited by a moderator:
Aha! 2nd Google page. Is this it?
http://www.gizmosforgeeks.com/index.php/articles/2344

Official GP2X SDK has been released
Posted by: Chief Gizmateer on Thu, 08 June 2006 02:12:24

GamePark Holdings, Inc. has officially released the GP2X SDK.

The official GP2X SDK is available from the GP2X site from one of these links:
http://dev.gp2x.com/sdk/gp2xsdk_windows.zip
http://dev.gp2x.com/sdk/gp2xsdk_linux.tar.gz

If you need more library source, GPH provides the contact dev@gp2x.com and GPH will provide it on the developer's forum, http://dev.gp2x.com/forum/. GPH mentions that you can get most of the library from the internet, as Dev-C++ for GP2X was coded with the source code which is already opened on the internet.
That's the All in one solution.

Yep, its the one ive been describing too.
 
Last edited by a moderator:
I've already set up Visual Studio 8 and it compiles with SDL without error.

Um, stupid question, but do I just rename the .exe to .gpe?

That part of the tutorial set up VS to work with SDL for windows.
I followed the set up in the Wiki (someone else mentioned it the 2005 Express set up, works with Full verion as well), there's also a thread (pops off to get the link) here and here that have helped me quite a lot.

Give me a shout if you need to, I'll try to help. MadDog and a few others have really been good to me :)

Thanks
Ben
---
Thanks ben
 
Last edited by a moderator:
Back
Top