2012-05-13 4 views
1

MacBook ProにPyQt for Mayaをインストールしようとしています。 QtとSipを正常にインストールしましたが、私はPyQtをインストールできません。修正オートデスクはQtに、SIP 4.13.2、PyQtは4.9.1PyQtの設定とインストールエラー

PyQtはを構成するとき、それが成功して構築するとき - 私が使用している

バージョンは

OSX 10.6.8、Qtの4.7.1ですそれは失敗する。私は、/ Users/warnoldというディレクトリが設定で使われているディレクトリと関係があると思います。それは4回列挙されていますが、ディレクトリは存在せず、どこから来たのかわかりません。 Qtは、私は、次の取得/usr/local/Trolltech/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 

建物は私がで終わるコードの束を得る

ld: library not found for -lQtCore 
collect2: ld returned 1 exit status 
make[1]: *** [QtCore.so] Error 1 
make: *** [all] Error 2 

私は完全に迷っています。これを修正する方法がわかりません。助けてください。

答えて

1

私はすでにこのトピックに関する詳細な書き込みアップを持っています
http://www.justinfx.com/2011/11/09/installing-pyqt4-for-maya-2012-osx/

また、ライオンのためのMaya 2013を含む、あなたがインストールするための準備ができてビルドされたパッケージが含まれています。私はSnow Leopardのライオンパッケージを試していませんが、同じSDKとarchでビルドされているので、動作するはずです。
http://www.justinfx.com/2011/01/07/installing-pyqt-for-maya-2011-osx/
あなたはまだこの同じ手順を適用することができます。
https://github.com/justinfx/MyQt4

とMaya 2011マニュアルのPyQtのインストールのためのオリジナルのライトアップ:

私は、それぞれのMayaのバージョンのためのスクリプトを作成保存するためのレポを作成していました新しいバージョンでは、Qt、Sip、PyQtのパッケージバージョンを適切なものに更新するだけです。しかし、MyQtレポのアイデアは、それから欲求不満を取り除き、スクリプトからそれを行うことでした。

+0

ありがとうございました。私はインストールのためにあなたのウェブサイト上の指示に従っていたが、あらかじめビルドされたパッケージを見逃していた。それは大きく助けました。確かに、私は完全にそれがどのように動作しているのか混乱しています。私はWindowsやインストーラーでのインストールに慣れています。 – chengxudude

関連する問題