Swizzy 2083 Posted December 11, 2014 So... I have been trying to install the Toolchain but something happens when GCC is installing I followed the instructions here: http://free60.org/wiki/Xenon_Toolchain#Full_process_of_installation And I can't install this "libgmp4-dev" because it says it could not be found Here's what I'm getting at build.log: I wrote a script ages ago for friends that download and install everything you need for Libxenon to work... i was a bit tired last night, so didn't look it up where i had put it... and i probably should've told you to use the github repository and not the free60 one... the free60 one is old... here it is: #!/bin/bash if [ "$ID" == "0" ]; then echo "Don't run this script as root!!! use your regular user..." 1>&2 exit 1 fi LOGFILE="`echo $0 | tr "\/" "\n" | head -$(( $slashes -1 )) | tr "\n" "\/"`build.log" rm $LOGFILE ########################################################### # Don't touch these unless you know what you are doing... # ########################################################### LIBXENON=https://github.com/Free60Project/libxenon.git LIBXENONBRANCH=Swizzy function StartMsg { echo -e -n $@ echo -e -n ": " } function AllOK { echo -e "Done!" rm $LOGFILE } function FindDependency { StartMsg Looking for \'$1\' PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $1 2> /dev/null|grep "install ok installed") if [ "" == "$PKG_OK" ]; then echo -e "No '$1' Setting up '$1'..." sudo apt-get --force-yes --yes install $1 >> $LOGFILE 2>&1 || exit 1 else echo -e "'$1' installed already... skipping..." fi } function InstallDependencies { echo -e "Checking for dependencies..." FindDependency libgmp3-dev FindDependency libmpfr-dev FindDependency libmpc-dev FindDependency texinfo FindDependency git-core FindDependency gettext FindDependency build-essential } function Clone { if [ ! -d $2 ]; then echo -e -n "Cloning... " git clone $1 >> $LOGFILE 2>&1 || exit 1 else cd $2 git remote update >> $LOGFILE 2>&1 git status -uno | grep -q behind if [ 0 -eq $? ]; then echo -e -n "Updating... " git pull >> $LOGFILE 2>&1 make clean >> $LOGFILE 2>&1 else echo -e -n "Already Up-To-Date... " fi cd .. fi } function CloneSpecial { if [ ! -d $2 ]; then echo -e -n "Cloning... " git clone $1 >> $LOGFILE 2>&1 || exit 1 cd $2 git checkout $3 else cd $2 git checkout $3 git remote update >> $LOGFILE 2>&1 git status -uno | grep -q behind if [ 0 -eq $? ]; then echo -e -n "Updating... " git pull >> $LOGFILE 2>&1 make clean >> $LOGFILE 2>&1 else echo -e -n "Already Up-To-Date... " fi cd .. fi } function Compile { echo -e -n "Compiling... " cd $1 make >> $LOGFILE 2>&1 || exit 1 cd .. } function CompileSpecial { echo -e -n "Compiling... " cd $1 make -f $2 >> $LOGFILE 2>&1 || exit 1 cd .. } function Install { echo -e -n "Installing... " cd $1 make install >> $LOGFILE 2>&1 || exit 1 cd .. } function InstallSpecial { echo -e -n "Installing... " cd $1 make -f $2 install >> $LOGFILE 2>&1 || exit 1 cd .. } function MakeLibxenon { StartMsg Libxenon Clone $LIBXENON libxenon AllOK cd libxenon if [ "" != "$LIBXENONBRANCH" ]; then git checkout $LIBXENONBRANCH fi cd toolchain UserPrimaryGroupId=`cat /etc/passwd | grep -Ew ^$USER | cut -d":" -f4` UserPrimaryGroup=`cat /etc/group | grep :"$UserPrimaryGroupId": | cut -d":" -f1` sudo chown -R $USER:$UserPrimaryGroup /usr/local/xenon echo -e "Building toolchain, libxenon and the libs..." echo -e "Building the toolchain..." bash build-xenon-toolchain toolchain || exit 1 echo -e "Building libxenon..." bash build-xenon-toolchain libxenon || exit 1 echo -e "Building libs..." bash build-xenon-toolchain libs || exit 1 echo -e "Setting up devkitxenon script..." sudo bash -c "printf \"export DEVKITXENON=\\\"/usr/local/xenon\\\"\\\nexport PATH=\\\"\\\$PATH:\\\$DEVKITXENON/bin:\\\$DEVKITXENON/usr/bin\\\"\" >> /etc/profile.d/devkitxenon.sh" sudo chmod +x /etc/profile.d/devkitxenon.sh export DEVKITXENON="/usr/local/xenon" export PATH="$PATH:$DEVKITXENON/bin:$DEVKITXENON/usr/bin" } StartMsg Looking for \'sudo\' PKG_OK=$(dpkg-query -W --showformat='${Status}\n' sudo 2> /dev/null|grep "install ok installed") >> /dev/null 2>&1 if [ "" == "$PKG_OK" ]; then echo -e "sudo not found! please install it..." 1>&2 exit 1 else echo -e "sudo installed... let's continue shall we?" fi sudo mkdir -p /usr/local/xenon if [ "$1" != "notoolchain" ]; then InstallDependencies MakeLibxenon fi #StartMsg libFAT-Xenon Swizzy Edition #CloneSpecial https://github.com/LibXenonProject/fat-xenon.git fat-xenon Swizzy #Compile fat-xenon #Install fat-xenon #AllOK #StartMsg libNTFS-Xenon Swizzy Edition #CloneSpecial https://github.com/LibXenonProject/ntfs-xenon.git ntfs-xenon Swizzy #Compile ntfs-xenon #Install ntfs-xenon #AllOK StartMsg libSDL Clone https://github.com/LibXenonProject/libSDLXenon.git libSDLXenon CompileSpecial libSDLXenon Makefile.xenon InstallSpecial libSDLXenon Makefile.xenon AllOK StartMsg SDL_ttf Clone https://github.com/LibXenonProject/SDL_ttf.git SDL_ttf Compile SDL_ttf Install SDL_ttf AllOK #StartMsg SDL_net #Clone https://github.com/LibXenonProject/SDL_net.git SDL_net # # #AllOK StartMsg SDL_Image Clone https://github.com/LibXenonProject/SDL_Image.git SDL_Image CompileSpecial SDL_Image Makefile.xenon InstallSpecial SDL_Image Makefile.xenon AllOK StartMsg SDL_Mixer Clone https://github.com/LibXenonProject/SDL_Mixer.git SDL_Mixer CompileSpecial SDL_Mixer Makefile.xenon InstallSpecial SDL_Mixer Makefile.xenon AllOK StartMsg libxemit Clone https://github.com/gligli/libxemit.git libxemit Compile libxemit Install libxemit AllOK StartMsg ZLX Clone https://github.com/LibXenonProject/ZLX-Library.git ZLX-Library CompileSpecial ZLX-Library Makefile_lib InstallSpecial ZLX-Library Makefile_lib AllOK Before this script works you must install sudo: apt-get install sudo then you run the script as the user you want to use when compiling Quote Share this post Link to post Share on other sites
PauloKoast 28 Posted December 11, 2014 I wrote a script ages ago for friends that download and install everything you need for Libxenon to work... i was a bit tired last night, so didn't look it up where i had put it... and i probably should've told you to use the github repository and not the free60 one... the free60 one is old... here it is: #!/bin/bash if [ "$ID" == "0" ]; then echo "Don't run this script as root!!! use your regular user..." 1>&2 exit 1 fi LOGFILE="`echo $0 | tr "\/" "\n" | head -$(( $slashes -1 )) | tr "\n" "\/"`build.log" rm $LOGFILE ########################################################### # Don't touch these unless you know what you are doing... # ########################################################### LIBXENON=https://github.com/Free60Project/libxenon.git LIBXENONBRANCH=Swizzy function StartMsg { echo -e -n $@ echo -e -n ": " } function AllOK { echo -e "Done!" rm $LOGFILE } function FindDependency { StartMsg Looking for \'$1\' PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $1 2> /dev/null|grep "install ok installed") if [ "" == "$PKG_OK" ]; then echo -e "No '$1' Setting up '$1'..." sudo apt-get --force-yes --yes install $1 >> $LOGFILE 2>&1 || exit 1 else echo -e "'$1' installed already... skipping..." fi } function InstallDependencies { echo -e "Checking for dependencies..." FindDependency libgmp3-dev FindDependency libmpfr-dev FindDependency libmpc-dev FindDependency texinfo FindDependency git-core FindDependency gettext FindDependency build-essential } function Clone { if [ ! -d $2 ]; then echo -e -n "Cloning... " git clone $1 >> $LOGFILE 2>&1 || exit 1 else cd $2 git remote update >> $LOGFILE 2>&1 git status -uno | grep -q behind if [ 0 -eq $? ]; then echo -e -n "Updating... " git pull >> $LOGFILE 2>&1 make clean >> $LOGFILE 2>&1 else echo -e -n "Already Up-To-Date... " fi cd .. fi } function CloneSpecial { if [ ! -d $2 ]; then echo -e -n "Cloning... " git clone $1 >> $LOGFILE 2>&1 || exit 1 cd $2 git checkout $3 else cd $2 git checkout $3 git remote update >> $LOGFILE 2>&1 git status -uno | grep -q behind if [ 0 -eq $? ]; then echo -e -n "Updating... " git pull >> $LOGFILE 2>&1 make clean >> $LOGFILE 2>&1 else echo -e -n "Already Up-To-Date... " fi cd .. fi } function Compile { echo -e -n "Compiling... " cd $1 make >> $LOGFILE 2>&1 || exit 1 cd .. } function CompileSpecial { echo -e -n "Compiling... " cd $1 make -f $2 >> $LOGFILE 2>&1 || exit 1 cd .. } function Install { echo -e -n "Installing... " cd $1 make install >> $LOGFILE 2>&1 || exit 1 cd .. } function InstallSpecial { echo -e -n "Installing... " cd $1 make -f $2 install >> $LOGFILE 2>&1 || exit 1 cd .. } function MakeLibxenon { StartMsg Libxenon Clone $LIBXENON libxenon AllOK cd libxenon if [ "" != "$LIBXENONBRANCH" ]; then git checkout $LIBXENONBRANCH fi cd toolchain UserPrimaryGroupId=`cat /etc/passwd | grep -Ew ^$USER | cut -d":" -f4` UserPrimaryGroup=`cat /etc/group | grep :"$UserPrimaryGroupId": | cut -d":" -f1` sudo chown -R $USER:$UserPrimaryGroup /usr/local/xenon echo -e "Building toolchain, libxenon and the libs..." echo -e "Building the toolchain..." bash build-xenon-toolchain toolchain || exit 1 echo -e "Building libxenon..." bash build-xenon-toolchain libxenon || exit 1 echo -e "Building libs..." bash build-xenon-toolchain libs || exit 1 echo -e "Setting up devkitxenon script..." sudo bash -c "printf \"export DEVKITXENON=\\\"/usr/local/xenon\\\"\\\nexport PATH=\\\"\\\$PATH:\\\$DEVKITXENON/bin:\\\$DEVKITXENON/usr/bin\\\"\" >> /etc/profile.d/devkitxenon.sh" sudo chmod +x /etc/profile.d/devkitxenon.sh export DEVKITXENON="/usr/local/xenon" export PATH="$PATH:$DEVKITXENON/bin:$DEVKITXENON/usr/bin" } StartMsg Looking for \'sudo\' PKG_OK=$(dpkg-query -W --showformat='${Status}\n' sudo 2> /dev/null|grep "install ok installed") >> /dev/null 2>&1 if [ "" == "$PKG_OK" ]; then echo -e "sudo not found! please install it..." 1>&2 exit 1 else echo -e "sudo installed... let's continue shall we?" fi sudo mkdir -p /usr/local/xenon if [ "$1" != "notoolchain" ]; then InstallDependencies MakeLibxenon fi #StartMsg libFAT-Xenon Swizzy Edition #CloneSpecial https://github.com/LibXenonProject/fat-xenon.git fat-xenon Swizzy #Compile fat-xenon #Install fat-xenon #AllOK #StartMsg libNTFS-Xenon Swizzy Edition #CloneSpecial https://github.com/LibXenonProject/ntfs-xenon.git ntfs-xenon Swizzy #Compile ntfs-xenon #Install ntfs-xenon #AllOK StartMsg libSDL Clone https://github.com/LibXenonProject/libSDLXenon.git libSDLXenon CompileSpecial libSDLXenon Makefile.xenon InstallSpecial libSDLXenon Makefile.xenon AllOK StartMsg SDL_ttf Clone https://github.com/LibXenonProject/SDL_ttf.git SDL_ttf Compile SDL_ttf Install SDL_ttf AllOK #StartMsg SDL_net #Clone https://github.com/LibXenonProject/SDL_net.git SDL_net # # #AllOK StartMsg SDL_Image Clone https://github.com/LibXenonProject/SDL_Image.git SDL_Image CompileSpecial SDL_Image Makefile.xenon InstallSpecial SDL_Image Makefile.xenon AllOK StartMsg SDL_Mixer Clone https://github.com/LibXenonProject/SDL_Mixer.git SDL_Mixer CompileSpecial SDL_Mixer Makefile.xenon InstallSpecial SDL_Mixer Makefile.xenon AllOK StartMsg libxemit Clone https://github.com/gligli/libxemit.git libxemit Compile libxemit Install libxemit AllOK StartMsg ZLX Clone https://github.com/LibXenonProject/ZLX-Library.git ZLX-Library CompileSpecial ZLX-Library Makefile_lib InstallSpecial ZLX-Library Makefile_lib AllOK Before this script works you must install sudo: apt-get install sudo then you run the script as the user you want to use when compiling I ran your script and installed everything, what should I do now? Follow the rest of the tutorial and get NetBeans? Quote Share this post Link to post Share on other sites
Swizzy 2083 Posted December 11, 2014 I ran your script and installed everything, what should I do now? Follow the rest of the tutorial and get NetBeans? Now you clone the github repository for mupen360 followed by changing the code, with whatever method you prefer... then you just do make... Quote Share this post Link to post Share on other sites
PauloKoast 28 Posted December 12, 2014 Now I really gave up, this took me so much time, I don't know why I even tought it was a good idea, I don't know nothing about coding and stuff If I want to play N64 games I'll just use the crappy V0.96 lol Quote Share this post Link to post Share on other sites
Swizzy 2083 Posted December 12, 2014 Now I really gave up, this took me so much time, I don't know why I even tought it was a good idea, I don't know nothing about coding and stuff If I want to play N64 games I'll just use the crappy V0.96 lol why not use http://www.homebrew-connection.org/files/xbox/Emulators/libXenon/dl_mupen64-360_v0.992_beta.rar ? Quote Share this post Link to post Share on other sites
PauloKoast 28 Posted December 12, 2014 why not use http://www.homebrew-connection.org/files/xbox/Emulators/libXenon/dl_mupen64-360_v0.992_beta.rar ? It stucks at fat mount uda0 too Quote Share this post Link to post Share on other sites
Swizzy 2083 Posted December 12, 2014 It stucks at fat mount uda0 too That's strange... it should be using the old dvd code o.O Quote Share this post Link to post Share on other sites
PauloKoast 28 Posted December 13, 2014 That's strange... it should be using the old dvd code o.O Then I'm out of luck lol Quote Share this post Link to post Share on other sites