Ubuntu Karmic 9.10 64bits

Got something cool to help make the toolchains better? Post it here.
Post Reply
User avatar
jscoobyced
Posts: 11
Joined: Fri Apr 02, 2010 12:57 pm
Location: Bangkok

Ubuntu Karmic 9.10 64bits

Post by jscoobyced » Tue Apr 06, 2010 7:01 am

Ok, after a few days and step by step fixes I found what I needed to build on Ubuntu.

First, update a few packages through Ubuntu Synaptics. Open a terminal and type:

Code: Select all

sudo apt-get -y install libncurses5-dev libncursesw5-dev texinfo m4 curl libfreeimage-dev
Download and build gmp and mpfr (un-archive, ./configure, make, sudo make install). You will need to specify the --with-gmp=xxxx when building mpfr if you set gmp in non-regular folder (as I did)

Then un-archive the buildscript-xxxxxx.tar.bz2

Code: Select all

tar -jxf buildscript-xxxxxx.tar.bz2
IF gmp and/or mpfr are in non-regular install directories, perform the following additional step:
Edit the <path-to-buildscipts>/dkppc/scripts/build-gcc.sh from (around line 92)

Code: Select all

 if [ ! -f configured-gcc ]
 then
   cp -r $BUILDSCRIPTDIR/$NEWLIB_SRCDIR/newlib/libc/include $INSTALLDIR/devkitPPC/$target/sys-include
   CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../$GCC_SRCDIR/configure \
   --enable-languages=c,c++,objc \
   --with-cpu=750 \
   --disable-nls --disable-shared --enable-threads --disable-multilib \
   --disable-win32-registry \
   --disable-libstdcxx-pch \
   --target=$target \
   --with-newlib \
   --prefix=$prefix\
   --disable-dependency-tracking \
   --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 20" \
   2>&1 | tee gcc_configure.log
   touch configured-gcc
 fi
to

Code: Select all

 if [ ! -f configured-gcc ]
 then
   cp -r $BUILDSCRIPTDIR/$NEWLIB_SRCDIR/newlib/libc/include $INSTALLDIR/devkitPPC/$target/sys-include
   CFLAGS="$cflags" LDFLAGS="$ldflags" CFLAGS_FOR_TARGET="-O2" LDFLAGS_FOR_TARGET="" ../../$GCC_SRCDIR/configure \
   --enable-languages=c,c++,objc \
   --with-cpu=750 \
   --disable-nls --disable-shared --enable-threads --disable-multilib \
   --disable-win32-registry \
   --disable-libstdcxx-pch \
   --target=$target \
   --with-newlib \
   --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr \
   --prefix=$prefix\
   --disable-dependency-tracking \
   --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 20" \
   2>&1 | tee gcc_configure.log
   touch configured-gcc
 fi
(I added --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr \)

Then you're good to run the build-devkit.sh
dkp newbie

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests