Author Topic: (Guide) Compiling Mupen64plus-ae on Mac  (Read 4047 times)

Offline Epic_bubble

  • long
  • ***
  • Posts: 235
    • View Profile
(Guide) Compiling Mupen64plus-ae on Mac
« on: January 17, 2012, 05:49:03 PM »
Compiling Guide!

Here is a guide on how to compile Mupen64plus-ae on Mac OSX.

The terminal commands for compiling both the regular mupen and the xperia play branch are provided below, only use the commands for the project you are trying to build.

Before starting the guide you will need to...

1. Download the android SDK and save it to your home folder
2. Download the android NDK and save it to your home folder
3. Download the mupen64plus-ae source code and unzip the project to your desktop

So it should look like this...


_______________________________________________________

Setting up the project

1. Adding the SDK and NDK to your path

To open and edit your path use this terminal command:
Quote
cd
open -a "TextEdit" .bash_profile



These are the directories you need to add to the path to use the NDK and ANT. These will work assuming the android SDK and NDK are saved to you're home folder:

Quote
export PATH=${PATH}:~/android-sdk-macosx/platform-tools
export PATH=${PATH}:~/android-ndk-r7
export PATH=${PATH}:~/android-sdk-macosx/tools



2. Using NDK build on your project

To run NDK build on your project use the following terminal command.

Xperia play project:
Quote
cd ~/Desktop/mupen64plus-core-ARCHs
ndk-build
cp ~/Desktop/mupen64plus-SDL1.3-xperia-play
ndk-build

Normal project:
Quote
cd ~/Desktop/mupen64plus-core-ARCHs
ndk-build
cp ~/Desktop/mupen64plus-SDL1.3
ndk-build



3. Automate the copy pastes

This terminal command will automate the copy paste operations for you. The command will work assuming you save the mupen project to the desktop.

Xperia play project:
Quote
cd ~/Desktop/mupen64plus-core-ARCHs/libs/armeabi
cp libcore.so ~/Desktop/mupen64plus-SDL1.3-xperia-play/libs/armeabi/
cp libcore.so ~/Desktop/mupen64plus-SDL1.3-xperia-play/obj/local/armeabi/
cd ~/Desktop/mupen64plus-core-ARCHs/libs/armeabi-v7a/
cp libcore.so ~/Desktop/mupen64plus-SDL1.3-xperia-play/libs/armeabi-v7a/
cp libcore.so ~/Desktop/mupen64plus-SDL1.3-xperia-play/obj/local/armeabi-v7a/

Normal project:
Quote
cd ~/Desktop/mupen64plus-core-ARCHs/libs/armeabi
cp libcore.so ~/Desktop/mupen64plus-SDL1.3/libs/armeabi/
cp libcore.so ~/Desktop/mupen64plus-SDL1.3/obj/local/armeabi/
cd ~/Desktop/mupen64plus-core-ARCHs/libs/armeabi-v7a/
cp libcore.so ~/Desktop/mupen64plus-SDL1.3/libs/armeabi-v7a/
cp libcore.so ~/Desktop/mupen64plus-SDL1.3/obj/local/armeabi-v7a/



_______________________________________________________

Building the project

To build the project use the following terminal command:

Xperia play project:
Quote
cd ~/Desktop/mupen64plus-SDL1.3-xperia-play
ant debug

Normal project
Quote
cd ~/Desktop/mupen64plus-SDL1.3
ant debug

If building fails then make sure you install all the android api levels in the SDK manager and run this script:
 
Xperia play project:
Quote
rm ~/Desktop/mupen64plus-SDL1.3-xperia-play/build.xml

Normal project:
Quote
rm ~/Desktop/mupen64plus-SDL1.3/build.xml

Then run this:
(DONT forget to replace USERNAME with your username)

Xperia play project
Quote
android update project --target 12 --path /Users/USERNAME/Desktop/mupen64plus-SDL1.3-xperia-play

Normal project:
Quote
android update project --target 12 --path /Users/USERNAME/Desktop/mupen64plus-SDL1.3
« Last Edit: January 17, 2012, 06:48:45 PM by Epic_bubble »
Device: Xperia play
CPU: Qualcomm 1 GHz Scorpion (Snapdragon)
GPU: Adreno 205
RAM: 512 MB
Screen res: 854 ? 480
ROM: stock android 2.3.4 rooted

Offline jamekli

  • bit
  • Posts: 1
    • View Profile
Re: (Guide) Compiling Mupen64plus-ae on Mac
« Reply #1 on: March 10, 2012, 07:57:34 AM »
This is a very detailed guide on how to compile Mupen64plus-ae on Mac OSX. I'm going to try it and I'll let you know how everything turns out.
I love computer programming