Neo TeAm Forum

The 10th. NEO Project for N64 => The 10th. NEO Project for N64 Dev kit. => N64 development section => Topic started by: stuntpenguin007 on June 18, 2010, 01:36:51 PM

Title: How do you setup libdragon?
Post by: stuntpenguin007 on June 18, 2010, 01:36:51 PM
Is there a guide anywhere on how to setup libdragon in an IDE?  I've never worked with custom libraries like this before.

Thanks!
Title: Re: How do you setup libdragon?
Post by: ChillyWilly on June 18, 2010, 02:59:34 PM
You put this in your projects directory: libdragon20100618.zip (http://www.fileden.com/files/2009/2/3/2304902/libdragon20100618.zip)

Do "cd /path/to/libdragon/tools"
Edit the build script - change the INSTALL_PATH export to where you want the toolchain to save.
Get and decompress into the tools directory the following:
binutils 2.19.51
gcc 4.4.0
gcc-c++ 4.4.0
gcc-objc 4.4.0
newlib 1.17.0
Run "./build" in the terminal.
A hour or two later, you'll have the compiler all done and ready to compile c, c++, obj-c, and obj-c++.
Do "cd .."
Do "export N64_INST=/path/to/compiler"
Do "make" and "make install"

You are now ready to compile the examples. You'll need that export for N64_INST any time you build a libdragon project. Look at the examples to see how you do things and make the makefiles.

EDIT: Here's my compile of the above. dragon20100618.7z (http://www.fileden.com/files/2009/2/3/2304902/dragon20100618.7z)
This was done in Xubuntu 10.4, 32 bit, so it should work on most new distros in either 32 or 64 bits.
Title: Re: How do you setup libdragon?
Post by: stuntpenguin007 on June 23, 2010, 02:12:48 AM
Thanks!  This is going to sound really stupid... but where do I find:
binutils 2.19.51
gcc 4.4.0
gcc-c++ 4.4.0
gcc-objc 4.4.0
newlib 1.17.0

I'm running ubuntu 10.04 if it makes any difference.
Title: Re: How do you setup libdragon?
Post by: sanni on June 23, 2010, 03:44:06 AM
jusr download the dragon20100618.7z chilliywilly posted and you should be good
Title: Re: How do you setup libdragon?
Post by: ChillyWilly on June 23, 2010, 05:38:31 AM
jusr download the dragon20100618.7z chilliywilly posted and you should be good

This.

If you really want to make it yourself, everything but newlib is at the gcc site: http://ftpmirror.gnu.org/

Newlib is found at: ftp://sources.redhat.com/pub/newlib/index.html