Hi folks,
I just figured out how to build and run OpenEmulator in xcode, and thought it might be useful to others.
Zellyn
ps - the ROMs have been deleted from git to be safe, so you'll need to get those from somewhere.
pps - hint: git doesn't actually delete anything unless you work really hard.
How to build and run OpenEmulator
# clone the repo
# install dependencies
# Note: if I missed any, follow my procedure: try to build, see which header file or library is
# missing, and search for it on Google to find out what package to install.
# Interesting note: my homebrew config was initially out-of-date, so it installed libpng 1.5.
# This caused the headers to be found, but the build failed because of the -lpng16 library param.
# brew update && brew upgrade libpng
# fixed it.
brew update
brew install libpng libsamplerate libsndfile libzip portaudio
# link a header that homebrew doesn’t link
HOMEBREW_INCLUDES=/Users/zellyn/homebrew/include
cd $HOMEBREW_INCLUDES
ln -s ../Cellar/libzip/0.11.2/lib/libzip/include/zipconf.h zipconf.
# open in xcode
open OpenEmulator.xcodeproj
# Configure xcode to find the headers and libraries
# Type command-shift-o then type xcodeproj to open the file OpenEmulator.xcodeproj
# At the top, make sure the OpenEmulator project, not a target, is selected.
# Add the homebrew include dir to Header Search Paths (eg. /Users/zellyn/homebrew/include)
# Add the homebrew lib dir to Library Search Paths (eg. /Users/zellyn/homebrew/lib)