The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 01, 2020, 06:37:30 pm
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Can't build on Mac OSX Lion
« previous next »
Pages: [1] Print
Author Topic: Can't build on Mac OSX Lion  (Read 1628 times)
CelticMinstrel
Enlightened
*****
Offline Offline

Posts: 522



View Profile
Can't build on Mac OSX Lion
« 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 (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.

Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Can't build on Mac OSX Lion
« Reply #1 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.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
CelticMinstrel
Enlightened
*****
Offline Offline

Posts: 522



View Profile
Re: Can't build on Mac OSX Lion
« Reply #2 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.
« Last Edit: February 05, 2012, 04:18:27 pm by CelticMinstrel » Logged
oldlaptop
*Smell* controller
****
Offline Offline

Posts: 337



View Profile
Re: Can't build on Mac OSX Lion
« Reply #3 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
Logged

Play Supermelee online in #uqm-arena!
Netmelee Improvement Mod
CelticMinstrel
Enlightened
*****
Offline Offline

Posts: 522



View Profile
Re: Can't build on Mac OSX Lion
« Reply #4 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?
« Last Edit: February 05, 2012, 10:37:01 pm by CelticMinstrel » Logged
CelticMinstrel
Enlightened
*****
Offline Offline

Posts: 522



View Profile
Re: Can't build on Mac OSX Lion
« Reply #5 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.
« Last Edit: February 05, 2012, 10:49:19 pm by CelticMinstrel » Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Can't build on Mac OSX Lion
« Reply #6 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.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
CelticMinstrel
Enlightened
*****
Offline Offline

Posts: 522



View Profile
Re: Can't build on Mac OSX Lion
« Reply #7 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.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!