FYI: How to build and run OpenEmulator

344 views
Skip to first unread message

Zellyn Hunter

unread,
May 4, 2014, 11:43:23 PM5/4/14
to openem...@googlegroups.com
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)

Tobias Eriksson

unread,
May 5, 2014, 3:40:10 AM5/5/14
to openem...@googlegroups.com
Hi,

First of all, welcome to the group! We're not very active right now, so it's very nice to see new people coming in.

On Monday, May 5, 2014 5:43:23 AM UTC+2, Zellyn Hunter wrote:
Hi folks,

I just figured out how to build and run OpenEmulator in xcode, and thought it might be useful to others.


I wonder if it would be possible to generate XCode project files from CMake; it would be nice if every platform uses the same build files. However, I don't have a Mac anymore so there is no easy way for me to test this. :/
 
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.

I'm aware of this :-)
AFAIK the roms have been in the Subversion repository for years,and when I move everything over to Github it came with. I'm not so sure how we should handle the roms, so I removed them so the casual passer-by won't find them without digging a little.
 
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)

Zellyn Hunter

unread,
May 7, 2014, 12:01:45 AM5/7/14
to Tobias Eriksson, openem...@googlegroups.com


--
You received this message because you are subscribed to a topic in the Google Groups "OpenEmulator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openemulator/OEHSs9_aGiM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openemulator...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages