Jump to content
Visual Boy Advance-M
Squall Leonhart

How to build VBA-M from the SVN code in OS X.

Recommended Posts

Instructions on how to build VBA-M with the wx gui on Mac OS X 10.10 (Yosemite):


1. Download the latest VBA-M source code (r1389 at this time) to a location (for example, ~/vbam)


2. Install the latest Xcode (6.3.1 at this time) from the Apple developer website or Mac App Store. Requires Apple id (free registration).


3. Install the Xcode command line tools by either downloading from the Apple developer website or typing

xcode-select --install


After it is installed, accept the Xcode license agreement by typing:

xcodebuild -license


4. Install MacPorts from the pkg


5. Open a terminal and install the dependencies that VBA-M needs via MacPorts by typing:

sudo port install cmake
sudo port install pkgconfig
sudo port install libpng
sudo port install libsdl


6. Download the wxWidgets 3.0.2 source code and extract it to a location like ~/wxWidgets


7. In the terminal, change directory to ~/wxWidgets

cd ~/wxWidgets


8. Create a build-wx directory for wxWidgets

mkdir build-wx
cd build-wx


9. Configure wxWidgets for legacy versions of OSX.

../configure --with-macosx-version-min=10.10


10. Build wxWidgets



11. Check that wx-config has been built and installed correctly.



If wx-config returns an error message of "bad interpreter", open wx-config in a text editor and save the file format as UNIX.

vi wx-config
:set fileformat=unix


12. Download the SFML 2.2 source code and extract it to a location like ~/SFML


13. In the terminal, change directory to ~/SFML

cd ~/SFML


14. Configure SFML using CMake



15. Build SFML



16. Change to the directory where the VBA-M source files are:

cd ~/vbam/trunk


17. Use cmake to configure VBA-M.



18. Build VBA-M



19. Install VBA-M

make install




If you know how to link SDLMain into the build, let us know so that we can build a command line SDL version of VBA-M.


If you know how to create a .dmg package, let us know.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now