The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Death 999 on May 16, 2012, 03:20:34 pm



Title: Library linking on mac - architecture issue?
Post by: Death 999 on May 16, 2012, 03:20:34 pm
I'm on an intel mac, OS 10.6.8, working on p6014.

We added some libraries, but I cant get UQM to link with some of them - glib, libintl, and zlib - getting the following errors

Code:
ld: warning: in /opt/local/lib/libglib-2.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libintl.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libz.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
(insert list of everything we use in glib, libintl, zlib. Example follows)
  "_g_hash_table_new_full", referenced from:
      _prep_conversation_module in conversation.c.o


I built these libraries via macports, and they are up-to-date.


Title: Re: Library linking on mac - architecture issue?
Post by: meep-eep on May 16, 2012, 07:12:46 pm
Sounds like there are 64-bit libraries installed, while UQM is being built in 32-bit mode (or maybe the other way around).
Why does it want glib though? Does p6014 use it? Because vanilla UQM doesn't. Is it a dependency of one the other libraries?


Title: Re: Library linking on mac - architecture issue?
Post by: Death 999 on May 16, 2012, 09:16:03 pm
Yes, we're using hash tables and lists, and some of the glib string handling functions really helped, and would much rather use them than reimplement them (lists alone wouldn't be a big deal, but the others seemed a bit much)