Installing DeSmuME from source on OS X
Available Build Targets
|Project File||OS X v10.4 (Tiger)||OS X v10.5 (Leopard)||OS X v10.6 (Snow Leopard)||OS X v10.7 (Lion)||OS X v10.8 (Mountain Lion)|
|Standard App (Universal)||DeSmuME (Xcode 3).xcodeproj||No||Yes||Yes||No||No|
|Standard App (Intel-only)||DeSmuME (Xcode 4).xcodeproj||No||Yes||Yes||Yes||No|
|Legacy App (Universal)||DeSmuME (Legacy).xcodeproj||Yes||Yes||Yes||No||No|
|OpenEmu Plug-in||DeSmuME (XCode 4).xcodeproj||No||No||No||Yes||No|
Set Up the Build Environment
All DeSmuME build targets must be built using Apple's Xcode IDE. The Xcode project files, included in the desmume/src/cocoa directory of the source code, are supported for the following versions of Xcode:
|Project File Name||Supported Xcode Version|
|DeSmuME (Xcode 3).xcodeproj||v3.1.4 (if running on Leopard); v3.2.6 (if running on Snow Leopard or later)|
|DeSmuME (Xcode 4).xcodeproj||v4.3 or later|
It is usually best to install both Xcode 3 and Xcode 4 so that you can use all of the build targets and all of the build options. However, depending on your needs, you may not necessarily need to install both versions of Xcode.
- If you want to build a standard DeSmuME application that runs on PowerPC machines, you must install Xcode 3.
- If you want to build a legacy DeSmuME application, you must install Xcode 3.
- If you want to build a standard DeSmuME application that runs on Leopard, but does not require the build enhancements of newer compilers, then you must install Xcode 3, but you may skip installing Xcode 4.
- If you are running OS X v10.7 (or "Lion") and you want to build a standard DeSmuME application that does not require backwards compatibility with Leopard, then you may skip installing Xcode 3 and only install Xcode 4.
- If you are running OS X v10.7 (or "Lion"), and you want to build a standard DeSmuME application that runs on Leopard and also includes the build enhancements of newer compilers, then you must install both Xcode 3 and Xcode 4.
- If you want to build the OpenEmu Plug-in, you must install Xcode 4.
Below are the download links to Xcode 3 and Xcode 4.
- Xcode v3.1.4 Direct Download Link: http://adcdownload.apple.com/Developer_Tools/xcode_3.1.4_developer_tools/xcode314_2809_developerdvd.dmg
- Xcode v3.2.6 Direct Download Link: http://adcdownload.apple.com/Developer_Tools/xcode_3.2.6_and_ios_sdk_4.3__final/xcode_3.2.6_and_ios_sdk_4.3.dmg
- Xcode 4 Mac App Store Link: http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12
Uninstall Previous Versions of Xcode
We highly recommend that you uninstall any previous versions of Xcode before you begin your installation. Doing so will better guarantee that you will have a clean build environment for DeSmuME. The easiest method for uninstalling Xcode is to use the uninstall-devtools script, located in the Library folder of your Xcode installation.
Note: You do not need to uninstall any versions of Xcode that are v4.3 or later. These versions of Xcode are self-contained application packages, which do not conflict with other Xcode versions.
To uninstall Xcode, open Terminal and type the following command into the command line:
sudo /Developer/Library/uninstall-devtools -mode=all
Note: You must be logged into an Administrator account to use this command.
Note: This command assumes that Xcode was installed at the default location. The path to the uninstall-devtools script may be different if you did not use the default location when installing Xcode from before.
Set Up Xcode 3
Note: If you do not require the build options that Xcode 3 provides, then you may skip this step. See the Xcode Setup section for more details.
After Xcode 3 is downloaded, you will have a traditional .dmg disk image containing a package installer. Start the Xcode 3 installation by opening the installer, and follow the onscreen instructions until you get to the installation list.
Your installation may be different, depending on your needs:
- If you are planning on using the Legacy project, you will need to install the Mac OS X 10.4 SDK.
- If you are planning on installing Xcode 4, take note of the install location. You will need it later for when you need to make symbolic links between Xcode 3 and Xcode 4. We recommend using the default location, /Developer.
- If you are planning on installing Xcode 4, then you should skip installing the iOS SDK, which is listed under Essentials. Since Xcode 4 already has a newer version of the iOS SDK, installing the version included with Xcode 3 will be a waste of time and disk space.
Continue the installation as normal and let the installation finish.
Set Up Xcode 4
When you download Xcode 4 from the Mac App Store, the application should already install itself to the Applications folder once the download is complete.
Note: If you do not require the build options that Xcode 4 provides, then you may skip this step. See the Xcode Setup section for more details.
To support SDKs older than OS X v10.6 (or "Snow Leopard") in Xcode 4, you must first install Xcode 3, then make symbolic links from the Xcode 3 SDKs directory into the Xcode 4 SDKs directory. To do this, open Terminal and type the following commands into the command line:
cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs sudo ln -s /Developer/SDKs/MacOSX10.4u.sdk sudo ln -s /Developer/SDKs/MacOSX10.5.sdk
Note: You must be logged into an Administrator account to use these commands.
Note: These commands assume that Xcode 3 was installed at the default location. The path to the SDKs directory may be different if you did not use the default location when installing Xcode 3.
Now, the OS X v10.4 (or "Tiger") and Leopard SDKs should now be available in Xcode 4.
Download the DeSmuME Source Code
Download via SourceForge
Download via Command Line
Build the DeSmuME Source
Standard App Build Using the Xcode 3 Project
Standard App Build Using the Xcode 4 Project
Official-like App Build Using lipo
Legacy App Build Using the Legacy Project
OpenEmu Plug-in Build Using the Xcode 4 Project
Appendix A: Comparison Charts of Different Builds
|Standard App (Xcode 3)||Standard App (Xcode 4)||Official-like App (lipo)||Legacy App (Xcode 3 Legacy)||OpenEmu Plug-in (Xcode 4)|
|OS X v10.4 (Tiger)||No||No||No||Yes||No|
|OS X v10.5 (Leopard)||Yes||Yes||Yes||Yes||No|
|OS X v10.6 (Snow Leopard)||Yes||Yes||Yes||Yes||No|
|OS X v10.7 (Lion)||Yes||Yes||Yes||Yes||Yes|
|OS X v10.8 (Mountain Lion)||Unknown||Unknown||Unknown||Unknown||Unknown|
Feature Comparison of App Builds
|Standard App (Xcode 3)||Standard App (Xcode 4)||Official-like App (lipo)||Legacy App (Xcode 3 Legacy)|
|User Interface||Current||Current||Current||Based on v0.9.7|