Compiling Luma 3DS on OS X

Hi,

I've went through the process of compiling Luma 3DS on my mac and thought I'd do a write up of the different steps involved. This guide presupposes that you know your way around the command line Hope it's useful.


1. Install gcc from Homebrew and set the env variables + aliases:

export CC=/usr/local/bin/gcc-5
export CXX=/usr/local/bin/g++-5
export CPP=/usr/local/bin/cpp-5
export LD=/usr/local/bin/gcc-5
alias c++=/usr/local/bin/c++-5
alias g++=/usr/local/bin/g++-5
alias gcc=/usr/local/bin/gcc-5
alias cpp=/usr/local/bin/cpp-5
alias ld=/usr/local/bin/gcc-5
alias cc=/usr/local/bin/gcc-5

2. Download the perl script for devkitPro at http://sourceforge.net/projects/devkitpro/files/Automated Installer/devkitARMupdate.pl/download

cd /path/to/the/script
chmod +x devkitARMupdate.pl
sudo ./devkitARMupdate.pl /opt/devkitPro
echo "export DEVKITPRO=/opt/devkitPro" >> ~/.bashrc
echo "export DEVKITARM=\$DEVKITPRO/devkitARM" >> ~/.bashrc
echo "export PATH=\$PATH:\$DEVKITARM/bin" >> ~/.bashrc
source ~/.bashrc

4. Replace libctru with Smealum's version

You can get his libctru at https://github.com/smealum/ctrulib.git
Compile with make and then replace libctru from /opt/devkitPro with smealum's version

5. Install gcc-arm-embedded with brew install Caskroom/cask/gcc-arm-embedded

6. Armips and bincc

Armips:

First install cmake if you don't have it. Then:
git clone --recursive https://github.com/Kingcom/armips.git
cd armips
mkdir build; cd build; cmake ..; make

(Remember to build with gcc from homebrew not clang)

bin2c:

Get bin2c from here https://sourceforge.net/projects/bin2c/files/1.1/bin2c-1.1.zip/download
gcc bin2.c -o bin2c

7. Get Luma 3ds repository (clone --recursive) and run make

I've also made a gist with this content here https://gist.github.com/zentis/b3c55f67f79e2931a2ec0e257b15ef90

I'll upload the armips and bin2c binary later tomorrow if there's interest so that you can bypass step 6.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Red Bitch Blue Bitch Pumping ain't easy!
    +1
  • Sicklyboy @ Sicklyboy:
    I'm late for the bbq sauce discussion and I have opinions
  • Sicklyboy @ Sicklyboy:
    Sweet Baby Rays is like baseline for a decent/good bbq sauce, but nothing outright incredible
    +1
  • Sicklyboy @ Sicklyboy:
    Stubbs is a pretty damn good sauce that I think you'll find on most grocery shelves as I don't think it's regional
  • Sicklyboy @ Sicklyboy:
    This shit though
  • Sicklyboy @ Sicklyboy:
    Best bbq sauce I've ever bought on a grocery store shelf
  • Sicklyboy @ Sicklyboy:
    smokey flavor that reminds me of beef jerkey on top of a really rich kind of bbq sauce. Heat level that is a nice zing, not overwhelming, but it tingles all the way down your throat
    +1
  • K3Nv2 @ K3Nv2:
    50% closer to getting my teeth fixed
    +4
  • K3Nv2 @ K3Nv2:
    I'm at the grace gods of my insurance fucking me over
  • K3Nv2 @ K3Nv2:
    I was like is this the way out, oh probably there's a giant exit sign
  • BigOnYa @ BigOnYa:
    We all should have free health, dental, vision care, and make the college kids pay for the schooling, f that college forgiveness plan our govt doing now, its really not fair for all others in the past that had to pay for they're schooling anyways (like me, with 2 kids I paid to send to college in the past)
  • mthrnite @ mthrnite:
    whynotboth.jpg
    +2
  • BigOnYa @ BigOnYa:
    True, very true
  • Sicklyboy @ Sicklyboy:
    I think we should outlaw healthcare entirely because the fact that people can get healthcare today is unfair to those in the past that couldn't
    +2
  • BigOnYa @ BigOnYa:
    Lol
  • mthrnite tempBOT: @ mthrnite
    smacks Sicklyboy around a bit with a large leech
  • Sicklyboy @ Sicklyboy:
    Howdy @mthrnite , great to see you :D
  • mthrnite @ mthrnite:
    hola mi hermano
  • cearp @ cearp:
    @Sicklyboy - the comparison would be forgiving all medical debt, not making healthcare illegal!
  • cearp @ cearp:
    Although I still don't agree, medical debt is rarely a choice, whereas enrolling in university is certainly a choice
  • mthrnite @ mthrnite:
    we need more smart cats tho for reals
  • Sicklyboy @ Sicklyboy:
    College costs, college loans, book prices, the entire thing is predatory, oft touted as essential to a successful life for my generation and the ones since, and completely unaffordable without putting you through an insane financial hardship for literal decades in many situations.
    Sicklyboy @ Sicklyboy: College costs, college loans, book prices, the entire thing is predatory, oft touted as...