Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos PyQt配置和安装错误_Macos_Qt_Pyqt_Maya_Python Sip - Fatal编程技术网

Macos PyQt配置和安装错误

Macos PyQt配置和安装错误,macos,qt,pyqt,maya,python-sip,Macos,Qt,Pyqt,Maya,Python Sip,我正在尝试在我的Macbook pro上安装PyQt for Maya。我已经成功地安装了Qt和Sip,但未能安装PyQt 我使用的版本是 OSX 10.6.8,Qt 4.7.1-修改的Autodesk Qt,Sip 4.13.2,PyQt 4.9.1 配置pyqt时成功,但构建失败。我认为这可能与配置中使用的目录/Users/warnold有关。它被列出了四次,但目录不存在,我也不知道它从哪里来。Qt安装在/usr/local/TROLTECH/Qt-4.7.1 我得到的配置如下: expor

我正在尝试在我的Macbook pro上安装PyQt for Maya。我已经成功地安装了Qt和Sip,但未能安装PyQt

我使用的版本是

OSX 10.6.8,Qt 4.7.1-修改的Autodesk Qt,Sip 4.13.2,PyQt 4.9.1

配置pyqt时成功,但构建失败。我认为这可能与配置中使用的目录/Users/warnold有关。它被列出了四次,但目录不存在,我也不知道它从哪里来。Qt安装在/usr/local/TROLTECH/Qt-4.7.1

我得到的配置如下:

export QTDIR=/usr/local/Trolltech/Qt-4.7.1/
export PATH=/usr/local/Trolltech/Qt-4.7.1/bin:$PATH
export QMAKESPEC=/usr/local/Trolltech/Qt-4.7.1/mkspecs/macx-g++
export DYLD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.7.1/lib/
/Applications/Autodesk/maya2013/Maya.app/Contents/bin/mayapy configure.py LIBDIR_QT=/usr/local/Trolltech/Qt-4.7.1/lib INCDIR_QT=/usr/local/Trolltech/Qt-4.7.1/include MOC=/usr/local/Trolltech/Qt-4.7.1/bin/moc --no-designer-plugin --use-arch=x86_64

Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.9.1 (licensed under the GNU General Public
License) for Python 2.6.4 on darwin.

Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes             
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDBus module should be built...
Checking to see if the QtDeclarative module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the phonon module should be built...
Checking to see if the QtAssistant module should be built...
Checking to see if the QtDesigner module should be built...
Qt v4.7.1 free edition is being used.
SIP 4.13.2 is being used.
The Qt header files are in /Users/warnold/qt/qt-4.7.1/include.
The shared Qt libraries are in /Users/warnold/qt/qt-4.7.1/lib.
The Qt binaries are in /Users/warnold/qt/qt-4.7.1/bin.
The Qt mkspecs directory is in /Users/warnold/qt/qt-4.7.1.
These PyQt modules will be built: QtCore.
The PyQt Python package will be installed in
/Applications/Autodesk/maya2013/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The PyQt .sip files will be installed in
/Applications/Autodesk/maya2013/Maya.app/Contents/bin/../Frameworks/Python.framework/Versions/Current/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in
/Applications/Autodesk/maya2013/Maya.app/Contents/bin/../Frameworks/Python.framework/Versions/Current/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the Qt module...
Creating the Makefile for the Qt module...
Creating QScintilla API file...
Creating top level Makefile...
Creating QPy support library for QtCore Makefile...
Creating QPy support libraries Makefile...
Creating pyuic4 wrapper...
Creating pyuic4 Makefile...
pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.
Creating pyqtconfig.py...
Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound method Popen.__del__ of <subprocess.Popen object at 0x100495450>> ignored

我完全不知所措。不知道该如何纠正。请帮忙。

我已经有一篇关于这个话题的详细文章:

它还包含供您安装的现成软件包,包括Maya 2013 for Lion。我还没有在SnowLeopard上尝试过Lion包,但我怀疑它应该可以工作,因为它是用相同的SDK和arch构建的

我创建了一个repo来存储每个maya版本的构建脚本:

以及Maya 2011手动PyQt安装的原始记录:


通过将Qt、Sip、PyQt的包版本更新为适当的版本,您仍然可以将相同的过程应用于较新的版本。但是MyQt回购的想法是从中消除挫折感,从脚本中完成。

我已经对这个主题有了详细的总结:

它还包含供您安装的现成软件包,包括Maya 2013 for Lion。我还没有在SnowLeopard上尝试过Lion包,但我怀疑它应该可以工作,因为它是用相同的SDK和arch构建的

我创建了一个repo来存储每个maya版本的构建脚本:

以及Maya 2011手动PyQt安装的原始记录:


通过将Qt、Sip、PyQt的包版本更新为适当的版本,您仍然可以将相同的过程应用于较新的版本。但MyQt回购协议的想法是为了消除挫折感,只需从脚本中执行即可。

谢谢。我按照你网站上的安装说明进行安装,但错过了预构建的软件包。这帮了大忙。诚然,我完全不知道它是如何工作的。我已经习惯了windows和用安装程序安装东西。谢谢。我按照你网站上的安装说明进行安装,但错过了预构建的软件包。这帮了大忙。诚然,我完全不知道它是如何工作的。我习惯于使用windows和安装程序安装东西。
ld: library not found for -lQtCore
collect2: ld returned 1 exit status
make[1]: *** [QtCore.so] Error 1
make: *** [all] Error 2