From RedwoodCenter
Revision as of 21:58, 30 September 2007 by Kilian (talk | contribs) (→‎Qt 4)
Jump to navigationJump to search

Qt 4

get the qt4-mac binary here and install by double-clicking.

if you want to create universal binaries by default, edit the file


and add the following line:

 # on mac intel
 QMAKE_CFLAGS_X86        += -arch ppc 
 # on mac ppc
 QMAKE_CFLAGS_PPC        += -arch i386

QScintilla 2

get QScintilla 2 here:

 tar xvzf QScintilla-1.73-gpl-2.1.tar.gz
 cd QScintilla-1.73-gpl-2.1/Qt4
 qmake -spec macx-g++

now you have a Makefile, but you have to replace the following line

 LFLAGS        = -headerpad_max_install_names ... libqscintilla2.3.dylib


 LFLAGS        = -headerpad_max_install_names ... /Library/Frameworks/libqscintilla2.3.dylib

also, in the line beginning with

 install_header: first FORCE ...

you have to replace the three occurrences of /usr/include by /usr/cpp_include

now you can build/install:

 sudo make install


get sip here:

 tar xvzf sip-4.7.1.tar.gz
 cd sip-4.7.1
 python -n
 sudo make install

PyQt 4

get PyQt 4 here:

 tar xvzf PyQt-mac-gpl-4.3.1.tar.gz
 cd PyQt-mac-gpl-4.3.1.tar.gz
 python -a
 sudo make install

QScintilla 2 python bindings

you hav to cd into the Python subdirectory of the QScintilla 2 source directory (see above):

 cd QScintilla-1.73-gpl-2.1/Python

now you can build the python bindings:

 python -n /usr/cpp_include
 sudo make install

Eric 4

get eric 4 here:

 tar xvzf eric4-4.0.2.tar.gz
 cd eric4-4.0.2
 sudo su
 export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/Qt-mac-free-3.3.8/lib

start eric: