The OpenCASCADE library is built upon X11. It doesn’t use Cocoa/Carbon. In order to be able to use the 3D viewer of pythonOCC with PyQt, you must first install Qt4-x11 and then PyQt4.7.
First, from the finkproject, download/install the qt4-x11 package. You can use finkcommander, a graphical frontend to fink, to manage your fink packages. Select the package named ‘qt4-X11’, install from source, and just be patient. When the build is achieved, your fink commander window should look like that:
The Qt4.5.2 libraries have been installed to /sw/lib/qt4-X11. Add the following line to your .bash_profile:
To check that your Qt installation is clean, just try to launch Qt Designer:
thomas-macbookpro:bin thomas$ designer
The next step is to install PyQt4. You will find below a link to a precopiled binary of PyQt4.7 that works with the previous installation.
Just extract the content of this file to /Library/Python/2.6/site-packages and you should get done. Test the installation (no linkage errors):
You can run one of the pythonOCC samples. The PyQt4 package should be automatically detected. For instance, running the Geometry.py sample (/samples/Level1/Geometry) :