[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[irssi-xmpp] succesfully compiled and working irssi-xmpp module on OSX 10.6.8
- To: "irssi-xmpp-list@cybione.org" <irssi-xmpp-list@cybione.org>
- Subject: [irssi-xmpp] succesfully compiled and working irssi-xmpp module on OSX 10.6.8
- From: "John N. Newman" <jnnewman@peer1.com>
- Date: Wed, 4 May 2011 04:30:53 +0000
- Accept-language: en-US
- Thread-index: AQHMChQODAI7mBVsoUWCb5TvxO7LNQ==
- Thread-topic: succesfully compiled and working irssi-xmpp module on OSX 10.6.8
Hello,
I really like this module. I wanted to use it on my macbook and, after some difficulty, finally figured out how to get it working. It boils down to a few very simple things - I am using macports, not fink, and the requirements here are the irssi package, and everything it depends on (glib and some other stuff), and the loudmouth package. Basically if you have succesfully done port install irssi or port install irssi-devel (it doesn't matter which..) and port install loudmouth, you have all you need.
The first (easy) trick to get it to work is to make sure that /opt/local/bin comes before /usr/bin in your $PATH, so that pkg-config finds the loudmouth.pc in /opt/local. The second trickier part came after much tearing of hair out: LDFLAGS need to be changed to this
LDFLAGS='-flat_namespace -undefined warning -fPIC'
Without that it refuses to link libxmpp_core.so (or libxmpp_core.dylib, as I tried in one iteration), saying it cannot find a bunch of symbols that are internal to irssi. Anyway it seems to work great, and with those ldflags and correct path setting there are not even any warnings from the default build process!
--
John Newman
jnnewman@peer1.com