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
Then un-archive the buildscript-xxxxxx.tar.bz2
Code: Select all
tar -jxf buildscript-xxxxxx.tar.bz2
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
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
Then you're good to run the build-devkit.sh