Post subject: Lsnes on OS X
Joined: 7/3/2014
Posts: 2
Hey guys, I've taken a look at the emulators page to find an SNES emulator for OS X. There are basically two which are recommended: - BizHawk - Lsnes I would like to use the latter as BizHawk requires mono and I would prefer a non-mono version. Unfortunately there are only windows builds and I tried for hours (actually registering here took me longer) to build it myself but I can't even build the required compiler version. So has anyone managed to compile Lsnes for OS X and if so can someone provide a build for me? Thanks in advance, Chaos
Post subject: Re: Lsnes on OS X
Emulator Coder, Skilled player (1113)
Joined: 5/1/2010
Posts: 1217
chaos wrote:
Unfortunately there are only windows builds and I tried for hours (actually registering here took me longer) to build it myself but I can't even build the required compiler version.
G++ 4.7-4.9 shoud do (enough support for all sorts of handy constructions appeared only in 4.7). I don't know if recent Clang would do, haven't tried. Some other software needed: - Lua 5.2.X - Boost (iostreams, threads, regex, conversion) (any semi-recent version should work) - Wxwdigets 3.0.X (Haven't had wxMac work, only wxGTK, 2.8 support has probably gotten busted). - Portaudio 19.X - Libsamplerate (could be disabled, causes audio dumps to be of lower quality). - Patched Bsnes v087 (included in another branch in the repository). Unpack to subdirectory bsnes. - Patched Libgambatte (included in another branch in the repository). Unpack to subdirectory gambatte. - Zlib (any semi-recent version should work). - libswscale (any semi-recent version should work). - libopus 1.1.X (could be disabled, would lose commentary track tool). Here's config file I got a build with (might require some adjustment):
CROSS_PREFIX=
OBJECT_SUFFIX=o
ARCHIVE_SUFFIX=a
DOT_EXECUTABLE_SUFFIX=
CC=g++-mp-4.7
LD=ld
RANLIB=ranlib
HOSTCC=$(CC)
USER_HOSTCCFLAGS=
USER_CFLAGS=-g -O2
USER_LDFLAGS=
USER_PLATFORM_CFLAGS=
USER_PLATFORM_LDFLAGS=
FONT_SRC=unifontfull-5.1.20080820.hex
LUA=lua
THREADS=BOOST
GRAPHICS=WXWIDGETS
SOUND=PORTAUDIO
JOYSTICK=MACOSX
SECRET_RABBIT_CODE=yes
BUILD_BSNES=yes
BUILD_GAMBATTE=yes
BSNES_VERSION=085
BSNES_IS_COMPAT=yes
BOOST_NEEDS_MT=yes
HOST_BOOST_NEEDS_MT=yes
NO_RDYNAMIC=yes
NO_DLFCN=
BOOST_FILESYSTEM3=
OPUS_CODEC=Yes
#USE_LIBGCRYPT=yes
NEED_LIBICONV=yes
ARCHITECTURE=I386
#USE_LIBLZMA=yes
I sure could build an executable, but I have no idea what library versions would it would work on.
Joined: 7/3/2014
Posts: 2
Thanks for the detailed reply. It's a lot of stuff and I honestly never thought it would be so complicated :-) I tried to install gcc 4.6 and 4.9 with homebrew but both failed so I can't even get any further. I can compile stuff as long as it is just a "configure make" but if that fails I'm lost. It would be nice if I could try a build of yours, maybe it'll work. Otherwise I think it's much easier for me to fire up a virtual machine with windows and use this for getting started. This is my attempt to install gcc 4.9 but it fails and I have no idea where to find this config.log mentioned in the error... https://gist.github.com/2called-chaos/faad314062ad6a854ddc Cheers!