Author Topic: How do you setup libdragon?  (Read 3933 times)

0 Members and 1 Guest are viewing this topic.

Offline stuntpenguin007

  • Newbie
  • *
  • Posts: 8
How do you setup libdragon?
« 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!

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: How do you setup libdragon?
« Reply #1 on: June 18, 2010, 02:59:34 PM »
You put this in your projects directory: 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
This was done in Xubuntu 10.4, 32 bit, so it should work on most new distros in either 32 or 64 bits.
« Last Edit: June 19, 2010, 03:03:39 AM by ChillyWilly »

Offline stuntpenguin007

  • Newbie
  • *
  • Posts: 8
Re: How do you setup libdragon?
« Reply #2 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.

Offline sanni

  • Moderator
  • Hero Member
  • *****
  • Posts: 502
Re: How do you setup libdragon?
« Reply #3 on: June 23, 2010, 03:44:06 AM »
jusr download the dragon20100618.7z chilliywilly posted and you should be good

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: How do you setup libdragon?
« Reply #4 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