Post subject: Compiling FCEU on Mac OS X
AberrantWolf
He/Him
Joined: 7/24/2012
Posts: 5
I have followed the directions on he website and installed all of the indicated macports libraries (scons, libsdl, zenity, lua, gtk2). I then downloaded the current source code, uncompressed it, and did the following command: CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib scons This is exactly what I was told to do on the docs webpage. I get an error that it could not find zlib. I did it on my other mac (this one runs OSX 10.7, the other runs 10.6) and it found zlib and sdl, but not GTK. I have double checked that all the libraries have been installed using macports. I'm not sure what my next step in trying to get this built should be. Any suggestions?
Post subject: Re: Compiling FCEU on Mac OS X
Emulator Coder, Skilled player (1129)
Joined: 5/1/2010
Posts: 1217
AberrantWolf wrote:
I have followed the directions on he website and installed all of the indicated macports libraries (scons, libsdl, zenity, lua, gtk2). I get an error that it could not find zlib.
I notice the list list of libraries doesn't include zlib. Maybe macports doesn't install the dev version unless you actually install it? Also, was it compiler error (not finding some include) or linker error (not finding the library)?
AberrantWolf
He/Him
Joined: 7/24/2012
Posts: 5
I did install zlib. It got installed as part of something else, but I installed it by hand just in case after I saw the error. Here is my console output so you can see what's going on (including me checking that zlib is installed):
13:45:25 [scott@mikuru:~/opensource/fceu2.1.5] $ sudo port install zlib
--->  Cleaning zlib
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.
13:45:29 [scott@mikuru:~/opensource/fceu2.1.5] $  CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib scons
scons: Reading SConscript files ...
platform:  darwin
Checking for inflate in C library z... no
AssertionError: please install: zlib:
  File "/Users/scott/opensource/fceu2.1.5/SConstruct", line 58:
    assert conf.CheckLibWithHeader('z', 'zlib.h', 'C', 'inflate;', 1), "please install: zlib"
I checked the SConfig script, and it looks like it's just looking for the headers and hasn't even gotten to the point of compiling yet. :\
Emulator Coder, Skilled player (1129)
Joined: 5/1/2010
Posts: 1217
AberrantWolf wrote:
I did install zlib. It got installed as part of something else, but I installed it by hand just in case after I saw the error. Here is my console output so you can see what's going on (including me checking that zlib is installed):
I don't remember if the shell likes specifying two temporary environment variables at once... And also scons... I think it ignores any paths you specify (unless the script specifies that those should be respected)...
AberrantWolf
He/Him
Joined: 7/24/2012
Posts: 5
You are correct that neither of those variables was getting set. I set them manually. I also checked that the SConstruct file was even using those flags, and it appears to be. I ran scons again, and the output didn't change even after setting the variable individually.
Emulator Coder
Joined: 8/12/2008
Posts: 42
Have you tried compiling it with homebrew? You should be able to do "brew install fceux" http://mxcl.github.com/homebrew/ I did a little write up about FCEUX on OSX a while back here: http://blog.xannode.com/?p=124 Let me know if I can help out; I've got FCEUX running on my MBP with the latest osx (forget which cat it is)
** FceuX SDL Developer/Maintainer ** get the latest source http://sourceforge.net/p/fceultra/code/