[Psi-devel] Psi-devel Mac build instructions

Lorenzo Perone lopez.on.the.lists at yellowspace.net
Thu Aug 3 05:05:01 PDT 2006


Thanx to Remko's help, my builds of Psi.app all succeeded.
Maybe some of the instructions should go into the wiki too?

However, here is my report, just in case it can help someone else,  
too...

To build Psi on Mac OS X (my notes):

I started from the page
http://psi-im.org/wiki/Build_Instructions_Qt4

then..

download latest qt4 from trolltech
build it:

% ./configure,
% make
% sudo make install

% export MYQTDIR="/usr/local/Trolltech/Qt-4.2.0-tp1" # (or whichever  
dir it is)

download qca2 and qca2-openssl
http://delta.affinix.com/qca/2.0/beta2

build qca2:

% ./configure --prefix=/usr/local/qca2 --qtdir=$MYQTDIR
% make
% sudo make install

set the DYLD_LIBRARY_PATH to contain the qca2/lib dir:

% export DYLD_LIBRARY_PATH="=/usr/local/qca2/lib"

build qca2-openssl:

% ./configure --qtdir=$MYQTDIR
% make
% sudo make install

download latest Psi source snapshot
(from http://psi-im.org/development )

% ./configure \
  --qtdir=$MYQTDIR \
  --with-growl=/Library/Frameworks \
  --enable-universal \
  --disable-xmms \
  --disable-dnotify \
  --disable-xss

% cd mac
% open -e Makefile

edit:
QTDIR= (same as $MYQTDIR)
QCADIR= (/usr/local/qca2/lib)
GROWLDIR= (usually /Library/Frameworks)
QT_FRAMEWORK_VERSION= (take note which dir is in the
    Qt Frameworks: is it 4.0, 4, or 4.2...?)

% make
...

additionally, i had to change the linking of the libpng manually...:

cp -p /usr/local/lib/libpng.3.dylib disk/Psi.app/Contents/Frameworks/

install_name_tool -change '/usr/local/lib/libpng.3.dylib'  
'@executable_path/../Frameworks/libpng.3.dylib' disk/Psi.app/Contents/ 
MacOS/psi

install_name_tool -change '/usr/local/lib/libpng.3.dylib'  
'@executable_path/../Frameworks/libpng.3.dylib' disk/Psi.app/Contents/ 
Frameworks/libpng.3.dylib

install_name_tool -change '/usr/local/lib/libpng.3.dylib'  
'@executable_path/../Frameworks/libpng.3.dylib' disk/Psi.app/Contents/ 
Frameworks/Qt3Support.framework/Versions/4/Qt3Support

install_name_tool -change '/usr/local/lib/libpng.3.dylib'  
'@executable_path/../Frameworks/libpng.3.dylib' disk/Psi.app/Contents/ 
Frameworks/QtGui.framework/Versions/4/QtGui

% open disk # (Psi.app is in there)



More information about the psi-devel mailing list