Title: Can't build on Mac OSX Lion Post by: CelticMinstrel on February 05, 2012, 06:54:40 am The build fails on Lion with a whole lot of missing symbols, all of which seem to be related to the audio libraries. I installed libmikmod and libvorbis from MacPorts; the log says libmikmod is found but "vorbisfile" is not (I'm not quite sure what that is?). Anyway, it insists I have to build without ogg support, which is acceptable if less than ideal, yet many of the missing symbols are clearly ogg-related (I tried googling one of them).
The full build log is here (http://pastebin.com/G0Dsb4Q3) (expires one month from now), though most of it is probably not very useful; the bit at the end is the main thing. I suspect the "i386" may be the key (perhaps it would work if I built it as 64-bit?), but since the build process is pretty complicated and unlike any sort of build process I normally see, I have no idea how I would fix that. Title: Re: Can't build on Mac OSX Lion Post by: meep-eep on February 05, 2012, 01:34:47 pm Many of the errors are related to libmikmod. While it should certainly be possible to use the system libmikmod, I suggest you just select the internal libmikmod in the configuration menu.
The problems relating to libmikmod do indeed seem to arise from compiling UQM as 32 bit, while there is only a 64 bit libmikmod available. The other errors come from libvorbisfile, which can't be found. It is probably a part of libvorbis, but may be a separate package. For more details on the build process, set the environment variable 'MAKE_VERBOSE=1', and for even more details edit build/unix/config_functions, changing 'BUILDLOG=/dev/null' to 'BUILDLOG="/tmp/build.log"', to generate a log file in /tmp/build.log. Title: Re: Can't build on Mac OSX Lion Post by: CelticMinstrel on February 05, 2012, 03:52:51 pm The other errors come from libvorbisfile, which can't be found. It is probably a part of libvorbis, but may be a separate package. The thing that confused me there is that the build process seemed to assumed libvorbisfile was nonessential and apparently had configured it to build without vorbis support.EDIT: Incidentally, I can't seem to find a libvorbisfile anywhere in MacPorts or elsewhere. Title: Re: Can't build on Mac OSX Lion Post by: oldlaptop on February 05, 2012, 07:24:08 pm I'd guess this is your problem:
729. ld: warning: ignoring file /opt/local/lib/libmikmod.dylib, file was built for unsupported file format which is not the architecture being linked (i386) As for libvorbisfile, I'm guessing that's built from the same source as libvorbis. At least on Debian it comes from the same source package: http://packages.debian.org/source/squeeze/libvorbis Title: Re: Can't build on Mac OSX Lion Post by: CelticMinstrel on February 05, 2012, 10:06:54 pm I managed to get MacPorts to install a Universal version of libmikmod (so there's a 32-bit version), and that reduces the link errors to the ov_* functions which I guess are in libvorbisfile. As for using the internal libmikmod, that caused compile errors, probably for the same reason (missing libvorbisfile). I guess I'll have to figure out how to find the libvorbisfile somewhere... I don't suppose anyone knows, eh?
EDIT: I just found libvorbisfile in /opt/local/lib, so I guess the issue is actually getting it to be recognized then. EDIT2: According to the build log it expects a Vorbis.framework... that seems a little silly (it'd be better if it could work with either, right?), but I'll see if I can find one. EDIT3: Found one on Nic's site, but it didn't change anything. Any other ideas? EDIT4: Wait, duh, I need Ogg.framework too. Hopefully it'll work now? Title: Re: Can't build on Mac OSX Lion Post by: CelticMinstrel on February 05, 2012, 10:40:08 pm Okay, build works, and it loads to the menu just fine, so hopefully all is well now!
EDIT: Only issue now is that it doesn't have an icon on the dock nor accept keyboard input (keyboard input is being sent to the terminal window that launched it). Which looks not hard to solve. Title: Re: Can't build on Mac OSX Lion Post by: meep-eep on February 06, 2012, 06:30:52 pm That it wanted to build with Ogg Vorbis even though you said it shouldn't, was a bug.
It is fixed now in Subversion. The keyboard input issue is too Mac-specific for me to be able to help. Title: Re: Can't build on Mac OSX Lion Post by: CelticMinstrel on February 06, 2012, 09:19:49 pm The keyboard input issue is too Mac-specific for me to be able to help. Ah, all I had to do was "./build.sh uqm install" to build a .app. |