我遇到与此PyQt 配置和安装错误类似的错误
我真的需要弄清楚,而不是使用提供的软件包作为原始帖子问题的解决方案(我需要控制我的开发环境的安装位置。谁能阐明安装没有找到什么以及为什么?
以下命令用于构建 python、qt、sip 和 pyqt。
我主要尝试将这些说明用作指南http://images.autodesk.com/adsk/files/pyqtmaya2013.pdf
# build python as a linux style package
cd /4degrees/users/medwards/src
tar xvfz /Users/medwards/Desktop/python/Python-2.6.4.tgz
cd Python-2.6.4
./configure --enable-shared --prefix=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4
make
sudo make install
export PATH=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4bin:$PATH
export PYTHONPATH=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4/lib/python2.6/site-packages:$PYTHONPATH
export LD_LIBRARY_PATH=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4/lib:$LD_LIBRARY_PATH
# build QT
cd /4degrees/users/medwards/src
tar xzf /Users/medwards/Desktop/python/Qt-4.7.1-Maya/qt-adsk-4.7.1.tgz
cd qt-adsk-4.7.1
./configure -prefix /4degrees/prod/lib/MacOSX_X86_64/Qt/4.7.1 -arch x86_64 -debug-and-release -no-rpath -silent -no-qt3support
make -j 4 >& build.log
sudo make install
# build sip
export PATH=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4bin:$PATH
export PYTHONPATH=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4/lib/python2.6/site-packages:$PYTHONPATH
export LD_LIBRARY_PATH=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4/lib:$LD_LIBRARY_PATH
export PATH=/4degrees/prod/lib/MacOSX_X86_64/Qt/4.7.1/bin:$PATH
cd /4degrees/users/medwards/src
tar -zxvf /Users/medwards/Desktop/python/sip-4.13.3.tar.gz
cd sip-4.13.3
/Applications/Autodesk/maya2013/Maya.app/Contents/bin/mayapy ./configure.py -b /4degrees/prod/lib/MacOSX_X86_64/sip/4.13.3/mayapy2013/bin -d /4degrees/prod/lib/MacOSX_X86_64/sip/4.13.3/mayapy2013/site-packages -e /4degrees/prod/lib/MacOSX_X86_64/sip/4.13.3/mayapy2013/include -v /4degrees/prod/lib/MacOSX_X86_64/sip/4.13.3/mayapy2013/sip
make
sudo make install
# build pyqt
export PATH=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4bin:$PATH
export PYTHONPATH=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4/lib/python2.6/site-packages:$PYTHONPATH
export LD_LIBRARY_PATH=/4degrees/prod/lib/MacOSX_X86_64/python/2.6.4/lib:$LD_LIBRARY_PATH
export PATH=/4degrees/prod/lib/MacOSX_X86_64/Qt/4.7.1/bin:$PATH
export PATH=/4degrees/prod/lib/MacOSX_X86_64/sip/4.13.3/mayapy2013/bin:$PATH
export PYTHONPATH=/4degrees/prod/lib/MacOSX_X86_64/sip/4.13.3/mayapy2013/site-packages:$PYTHONPATH
cd /4degrees/users/medwards/src
tar -zxvf /Users/medwards/Desktop/python/PyQt-mac-gpl-4.9.4.tar.gz
cd PyQt-mac-gpl-4.9.4
# change inc_path = [sipcfg.py_inc_dir] to inc_path = [sipcfg.py_inc_dir,sipcfg.sip_inc_dir] in PyQt-mac-gpl-4.9.4/configure.py
/Applications/Autodesk/maya2013/Maya.app/Contents/bin/mayapy configure.py LIBDIR_QT=/4degrees/prod/lib/MacOSX_X86_64/Qt/4.7.1/lib INCDIR_QT=/4degrees/prod/lib/MacOSX_X86_64/Qt/4.7.1/include MOC=/4degrees/prod/lib/MacOSX_X86_64/Qt/4.7.1/bin/moc -b /4degrees/prod/lib/MacOSX_X86_64/python/mayapy2011/bin -d /4degrees/prod/lib/MacOSX_X86_64/python/mayapy2013/lib/python2.6/site-packages -v /4degrees/prod/lib/MacOSX_X86_64/sip/4.13.3/mayapy2013/sip --no-designer-plugin --use-arch=x86_64 -w
# edit qtdirs.out and replace /Users/warnold/qt/qt-4.7.1 with /4degrees/prod/lib/MacOSX_X86_64/Qt/4.7.1
make -j 4
sudo make install
在制作期间,我最终得到了一些类似的东西
...-L/4degrees/users/medwards/src/PyQt-mac-gpl-4.9.4/qpy/QtCore -L/4degrees/prod/lib/MacOSX_X86_64/Qt/4.7.1/lib -lqpycore -lQtCore
ld: library not found for -lQtCore
collect2: ld returned 1 exit status
make[1]: *** [QtCore.so] Error 1
make: *** [all] Error 2