Linux Developer Toolkit For Gp2x (gp2nix Project)


timbobsteve

Member
Joined
Oct 4, 2005
Messages
301
Hi All,

Here is my working Toolkit for linux.

It includes SDL and the arm-linux toolchain.
There is also a working test program included.

http://www.savefile.com/files.php?fid=8113652

To install, copy the file to / and extract with "tar -zxvf gp2x-linux-toolchain.tar.gz"

The file should extract to /opt/ creating the following directory structure:

/opt/
/opt/local/
/opt/local/gp2x
/opt/local/gp2x/bin
/opt/local/gp2x/gp2x-test
/opt/local/gp2x/include
/opt/local/gp2x/info
/opt/local/gp2x/lib
/opt/local/gp2x/libexec
/opt/local/gp2x/man
/opt/local/gp2x/share

Add the toolkit to your path:

export PATH=/opt/local/gp2x/bin:$PATH

Now you can run the compiler using the following:

arm-linux-g++

Remember to change the compiler binary in your own makefiles to make sure they use the correct compiler.

Let me know of any defects or problems you experience with the DevKit.

NOTE: The location of the file is temporary (14 day Limit) until I find a permanent file host.
 
DijiTao: There is libs in there. SDL is included in the tgz file! In fact everything that was found in the libs at http://gp2x.org/gp2x/libs/ is in this SDK.

Ravnos: It will work if you are running a 32-bit version of linux. If you are running a 64bit version you will have to make sure that 32-bit emulation is supported by your kernel.
 
UPDATE:

It seems that there is a few problems with this release. Namely the following:

- Permissions were not preserved when the package was archived making the binaries unexecutable.
- The makefile included in the gp2x-test/ directory is broken in two places.

Thanks to some helpful people these problems have been identified and I will have them fixed within 24hrs (hopefully)

Those of you that do not wish to wait for the new release can e-mail me and I can deliver some possible fixes for the problems in this SDK release. (timbobsteve@gmail.com)

I do have to appologise, it seems I was too quick to get a release out that I had not tested it enough, partly because the last stage of the release was done on a Winblow$ box at work. Once I get home 2night I will continue working on GP2niX and the DevKit to get it up to scratch.

Also I have been notified of some problems with the file mirror. As I stated to others, www.savefile.com is a free host and was all I could find to suite this purpose. A sourceforge project is underway and soon I will have proper file hosting.

Thanks to all who have tested it and responded so quickly. With your input I can release fixes much quicker.
 
I was just fixing the permissions too :) I'll *try* to focus on studies again and play with this toolkit in ~24h ^__^; Thanks timbobsteve!
 
OK I have a fix for the permissions errors on the DevKit. Unfortunately due to late night I spent working on this I forgot to add in the test program. I will release 2 files the dev-kit and the fixed test program. Hopefully that will fix problems.

NOTE: I am still waiting for authorisation for my Sourceforge project, so the files might not be up as soon as I had hoped.

Thanks all for the feedback and support.

Also, In my first post I forgot to thank Dan Kegal for the original CrossTool. Without his help and dedication to developers, this most certainly would not have been possible. Thanks Dan!
 
UPDATE:

Re-Released GP2niX ARM-Linux Toolchain. Files can be downloaded from the GP2niX sourceforge project site.

https://sourceforge.net/projects/gp2nix/

The release is set up into to files, the devkit and the test program.

I have fixed the bugs in the test program, hopefully that will compile correctly now. Let me know if it doesn't. The permissions on the devkit directory should have been preserved during packaging this time. Let me know if they are not and I will hurt something (and then go and fix the problem like a civil person )

Let me know what you think.
 
All the permissions work, but when i try to compile i get this:

EDIT:

Was compiling it wrong. I never knew to use 'make -f Makefile.gp2x'.
But im still getting errors..

Code:
~/Downloads/gp2x-test | 13Kb | 3 files 
[bmilleker@Zaphod] make -f Makefile.gp2x
make: Warning: File `Makefile.gp2x' has modification time 4.2e+04 s in the future
arm-linux-g++   -O2 -Wall -static `arm-linux-sdl-config --cflags` -I/opt/local/gp2x/include -g -I/opt/local/gp2x/include/c++/3.4.1  -c -o gp2x-test.o gp2x-test.cpp
gp2x-test.cpp:1:19: stdio.h: No such file or directory
gp2x-test.cpp:2:20: stdlib.h: No such file or directory
In file included from /opt/local/gp2x/include/SDL/SDL.h:37,
                 from gp2x-test.cpp:4:
/opt/local/gp2x/include/SDL/SDL_rwops.h:73: error: ISO C++ forbids declaration of `FILE' with no type
/opt/local/gp2x/include/SDL/SDL_rwops.h:73: error: expected `;' before '*' token
/opt/local/gp2x/include/SDL/SDL_rwops.h:92: warning: `SDL_RWFromFP' initialized and declared `extern'
/opt/local/gp2x/include/SDL/SDL_rwops.h:92: error: `FILE' was not declared in this scope
/opt/local/gp2x/include/SDL/SDL_rwops.h:92: error: `fp' was not declared in this scope
/opt/local/gp2x/include/SDL/SDL_rwops.h:92: error: expected primary-expression before "int"
/opt/local/gp2x/include/SDL/SDL_rwops.h:92: error: initializer expression list treated as compound expression
gp2x-test.cpp: In function `int Draw(int, int, int)':
gp2x-test.cpp:20: error: `printf' undeclared (first use this function)
gp2x-test.cpp:20: error: (Each undeclared identifier is reported only once for each function it appears in.)
gp2x-test.cpp: In function `int main(int, char**)':
gp2x-test.cpp:30: error: `printf' undeclared (first use this function)
make: *** [gp2x-test.o] Error 1
 
So sorry guys and girls. I perhaps should have tested the tools before I released them. In my over-tired state last night I accidentally removed the standard library (std.h) headers. This is most likely the source of all your errors. I will get right on it when i get home from work 2night.

Perhaps 2morrow I can actually release something that works. I think I will actually test the compilation myself this time around :p

Again I appologise for all the hassles.

NOTE: DevKitGP2X has just released buildscripts for their own toolchain. I may try remaking the toolchain using those buildscripts. Will let you know how I go with it all.
 
I take it there is differences. Mainly small differences, but enought to make it its own.

I actually tried building the devkitPro GP2X toolchain from the JUST released buildscripts last night. It failed on 3 different machines. I am currently hunting down the causes of the problems and should have it in a couple of hours.

Depending on the structure and features, DevKitPro GP2X toolchain might be the main devkit for GP2niX.

UPDATE:

Spent last night fiddling with DevKitGP2X toolchain buildscripts, couldn't compile them, but I am getting close.

I have also shaved GP2niX down a little more, mainly removing image libraries, currently there is only support for bmp, jpg, tiff and png. I was thinking about adding in the SVG library (scalable vector graphics) but I am not sure of its uses on the GP2X.

I have removed alot of standard doco. I actually did a base install and removed the man-pages package from the setup so that it would save space initailly. I then manually installed all the Development stuff (gcc, glibc etc.) just so those man pages would be available. I don't really think we need man pages for X, bash etc. All of that information is available on the net anyway. I think I should be able to get the distro down to about 400mb with a sledgehammer! I might also talk to other disto developers and see what else is not really needed.

There will not be a release of GP2niX devkit today, sry. I seem to have wrecked all my source files for the build. :p oops
 
Back
Top