MacOSX 10.10 Pyqt4&Eric4

Step summary:
1. Install Qt4
2. Build and install sip
3. Build and install QScintilla2
4. Build and install PyQt4
5. Build and install QScintilla2 Python bindings
6. Install eric4 #option, i use the pycharm

0. QT http://qt-project.org/downloads
qt-opensource-mac-4.8.6-1.dmg
    •    Qt Designer, Qt Linguist: /Developer/Applications/Qt
    •    Qt Documentation: /Developer/Documentation/Qt
    •    Qt Examples: /Developer/Examples/Qt
    •    Qt Plugins: /Developer/Applications/Qt/Plugins
    •    Qt Frameworks: /Library/Frameworks
    •    Qt Libraries: /usr/lib
    •    qmake, moc, uic, etc.: /Developer/Tools/Qt (symlink to /usr/bin)
    •    Uninstall script: /Developer/Tools/uninstall-qt.py

1. sip sip-4.16.4.tar.gz http://www.riverbankcomputing.com/software/sip/download
python configure.py -d /Library/Python/2.7/site-packages # --arch=x86_64
make
sudo make install

2. QScintilla2 QScintilla-gpl-2.8.4.tar.gz http://www.riverbankcomputing.com/software/qscintilla/download
cd QScintilla*;cd Qt4Qt5
qmake qscintilla.pro -spec macx-g++
make
sudo make install

3. PyQt4 PyQt-mac-gpl-4.11.3.tar.gz http://sourceforge.net/projects/pyqt/files/PyQt4/
python configure-ng.py -a -d /Library/Python/2.7/site-packages/ --sip /System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip
make
sudo make install

#python configure-ng.py -q /Users/obaby/Qt502/5.0.2/clang_64/bin/qmake -d /Library/Python/2.7/site-packages/ --sip /System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip
#python configure.py -q /usr/bin/qmake-4.8 -d /Library/Python/2.7/site-packages/ --sip /Library/Frameworks/Python.framework/Versions/2.7/bin/sip

4. QScintilla2 Python bindings    
cd ../Python
python configure.py --sip /System/Library/Frameworks/Python.framework/Versions/2.7/bin/sip
make
sudo make install
#/System/Library/Frameworks/Python.framework/Versions/2.7/share/sip/PyQt4/Qsci/

sudo cp Qsci.so /Library/Python/2.7/site-packages/PyQt4/
#sudo cp sip/* /Library/Python/2.7/site-packages/PyQt4/

cd ../designer-Qt4Qt5
qmake designer.pro -spec macx-g++
make
sudo make install

cd ../example-Qt4Qt5
qmake application.pro -spec macx-g++
make
sudo make install

5. Install eric4 eric4-4.5.25.tar.gz
python install.py #sudo?
python install-i18n.py #sudo?
-EOF-
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值