Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "Didj Build Environment"

From eLinux.org
Jump to: navigation, search
(Prebuilt)
(Prebuilt: Added some info about the Windows build, and changed link)
Line 6: Line 6:
 
It's currently untested, but should work (whoever confirms it builds working binaries can remove this sentence.) I'd appreciate if someone was to mirror this on a fast server since my server that it's currently on isn't fast, and the only has a 3Mb connection (something like 350 Kb/s downloads.)
 
It's currently untested, but should work (whoever confirms it builds working binaries can remove this sentence.) I'd appreciate if someone was to mirror this on a fast server since my server that it's currently on isn't fast, and the only has a 3Mb connection (something like 350 Kb/s downloads.)
  
* [http://losinggeneration.homelinux.org/didj-mingw.tar.bz2 Windows (does not currently work)]
+
* [http://losinggeneration.homelinux.org/winarm-didj.tar.bz2 Windows (ready to be tested)] Extract to C:\ (full path to bin is C:\winarm\didj\bin) It can also be tested in the root of any partition. It should also be tested with extracting it into a different location.
 
* [http://losinggeneration.homelinux.org/ubuntu-9.10-32bit-didj-arm-linux.tar.bz2 32 bit Ubuntu 9.10] Extract to /usr/local
 
* [http://losinggeneration.homelinux.org/ubuntu-9.10-32bit-didj-arm-linux.tar.bz2 32 bit Ubuntu 9.10] Extract to /usr/local
  

Revision as of 09:29, 11 April 2010

Buildcross is able to build a working toolchain that supports C and C++.

Prebuilt

Since it can be a pain to build the cross compiler on Windows, I'm providing a prebuilt toolchain. 32 bit Ubuntu 9.10 does some incorrect things during GCC's build that causes the built to fail. So I've provide that one too.

It's currently untested, but should work (whoever confirms it builds working binaries can remove this sentence.) I'd appreciate if someone was to mirror this on a fast server since my server that it's currently on isn't fast, and the only has a 3Mb connection (something like 350 Kb/s downloads.)

  • Windows (ready to be tested) Extract to C:\ (full path to bin is C:\winarm\didj\bin) It can also be tested in the root of any partition. It should also be tested with extracting it into a different location.
  • 32 bit Ubuntu 9.10 Extract to /usr/local

Building

  • Prerequisits:
    • gmp (In deb based distros it's often called libgmp-dev or libgmp3-dev)
    • mpfr (In deb based distros it's often called libmpfr-dev)
    • GCC & Binutils
    • Flex
    • Bison
    • Make
    • Makeinfo
    • patch
    • diff
    • And a Unix environment (Only really tested on Linux)

Steps:

  • git clone git://github.com/losinggeneration/buildcross.git
  • cd buildcross
  • sudo mkdir /usr/local/didj
  • sudo chown [your username]:[any group] /usr/local/didj
  • MAKE="make -j3" ./buildcross.sh didj -bl
  • Replace -j3 with however many processors/cores you have +1

After that, the cross compiler should be built. You should now be able to build binaries for the Didj. I'd suggest adding /usr/local/didj/bin to your PATH. This is often in $HOME/.profile. Depending on your shell, Bash compatible shells can use:

export PATH=/usr/local/didj/bin:$PATH