xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Version 5 (modified by Antoine Martin, 4 years ago) (diff)


Building (Py)Qt4 for OSX

Note: we want to build it inside our jhbuild macos environment so we can package things as usual.


Qt downloads Note: we reduce the amount of extras built-in to speedup the build and reduce the memory requirements since we don't need script tools or webkit (which is very big and takes a very long time to build)

tar -zxvf qt-everywhere-opensource-src-4.8.5.tar.gz 
cd qt-everywhere-opensource-src-4.8.5
./configure -prefix ${JHBUILD_PREFIX} \
  -qt-zlib -qt-libpng -qt-libjpeg \
  -sdk /Developer/SDKs/MacOSX10.5.sdk \
  -cocoa -arch x86 -no-webkit -no-qt3support -no-javascript-jit \
  -no-declarative-debug -opensource -no-scripttools -no-script \
  -no-dbus -confirm-license
make && make install


sip is needed to build PyQt. sip downloads
You must comment out all the lines about python needing to be a framework in configure.py, then:

python configure.py
make && make install


PyQt downloads

tar -zxvf PyQt-mac-gpl-4.10.2.tar.gz
cd PyQt-mac-gpl-4.10.2
python configure-ng.py

Then you must edit all the makefiles and add -lpython to the LINK stage so it will look like:

LINK = g++ -lpython2.7

Otherwise, the libraries end up linked against the system python - which is not what you want.
This can manifest itself at runtime as:

Symbol not found: _PyCapsule_Type

Then you can just:

make && make install