The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 07, 2022, 06:11:41 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Library linking on mac - architecture issue?
« previous next »
Pages: [1] Print
Author Topic: Library linking on mac - architecture issue?  (Read 1436 times)
Death 999
Global Moderator
Enlightened
*****
Offline Offline

Gender: Male
Posts: 3868


We did. You did. Yes we can. No.


View Profile
Library linking on mac - architecture issue?
« 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.
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Library linking on mac - architecture issue?
« Reply #1 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?
Logged

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

Gender: Male
Posts: 3868


We did. You did. Yes we can. No.


View Profile
Re: Library linking on mac - architecture issue?
« Reply #2 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)
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!