在Mac OS X 10.6上安装PyQt4

时间:2012-01-22 14:46:36

标签: python qt pyqt4

我正在尝试按照指南在我的Mac上安装PyQt4:http://works13.com/blog/mac/howto-install-eric4-on-mac-os-x-with-64bit-python.htm

这是环境:

Enthought Python Distribution 2.7  
Successful install of Qt 4.8  
Successful install of Sip 4.13  
Successful install of QSCintilla 2.6  

我成功运行了以下命令:

export QTDIR=/Developer/Applications/Qt
python configure.py -d /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/ --use-arch=x86_64

然而 make 失败并带有以下内容:

ld: framework not found QtCore
collect2: ld returned 1 exit status
make[1]: *** [QtCore.so] Error 1
make: *** [all] Error 2

为了追查这个问题,我已经深挖了一个星期,但我还没有找到解决方案。有没有人遇到类似的错误?

更新

ls -la /Developer/Applications/Qt

drwxrwxr-x  14 root  admin   476 Jan 16 20:20 .
drwxrwxr-x  12 root  admin   408 Jan 16 20:20 ..
drwxrwxr-x   3 root  admin   102 Jan 16 20:22 Assistant.app
drwxrwxr-x   3 root  admin   102 Jan 16 20:22 Designer.app
drwxrwxr-x   3 root  admin   102 Jan 16 20:22 Linguist.app
drwxrwxr-x   3 root  admin   102 Jan 16 20:22 QMLViewer.app
drwxrwxr-x   4 root  admin   136 Dec  9 02:59 imports
drwxrwxr-x  15 root  admin   510 Dec  9 02:59 phrasebooks
drwxrwxr-x   3 root  admin   102 Jan 16 20:22 pixeltool.app
drwxrwxr-x  13 root  admin   442 Dec  9 02:59 plugins
drwxrwxr-x   3 root  admin   102 Jan 16 20:22 qdbusviewer.app
drwxrwxr-x   3 root  admin   102 Jan 16 20:22 qhelpconverter.app
drwxrwxr-x   3 root  admin   102 Jan 16 20:22 qtdemo.app
drwxrwxr-x  99 root  admin  3366 Jan 16 20:27 translations

当你说要导出PYTHONHOME(当前为空)时,你的意思是这样吗?

export PYTHONHOME=lib*qt*.so

0 个答案:

没有答案