pyQt.txt Time-stamp: <2010-10-13 11:57:01 kato> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< 1. Download ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< [1] $ mkdir pyQt.build [2] $ cd pyQt.build/ [3] $ wget http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-4.7.7.tar.gz --2010-10-13 10:43:43-- http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-4.7.7.tar.gz www.riverbankcomputing.co.uk をDNSに問いあわせています... 207.126.122.146 www.riverbankcomputing.co.uk|207.126.122.146|:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 7831682 (7.5M) [application/x-gzip] `PyQt-x11-gpl-4.7.7.tar.gz' に保存中 100%[=====================================================================>] 7,831,682 265K/s 時間 29s 2010-10-13 10:44:12 (267 KB/s) - `PyQt-x11-gpl-4.7.7.tar.gz' へ保存完了 [7831682/7831682] [4] $ wget http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.11.1.tar.gz --2010-10-13 10:47:18-- http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.11.1.tar.gz www.riverbankcomputing.co.uk をDNSに問いあわせています... 207.126.122.146 www.riverbankcomputing.co.uk|207.126.122.146|:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 652924 (638K) [application/x-gzip] `sip-4.11.1.tar.gz' に保存中 100%[=====================================================================>] 652,924 181K/s 時間 3.5s 2010-10-13 10:47:21 (181 KB/s) - `sip-4.11.1.tar.gz' へ保存完了 [652924/652924] [5] $ tar xzvf PyQt-x11-gpl-4.7.7.tar.gz [6] $ tar xzvf sip-4.11.1.tar.gz ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< 2. How To Install (sip) ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< [1] $ cd sip-4.11.1 [2] $ python configure.py This is SIP 4.11.1 for Python 2.6.5 on linux2. The SIP code generator will be installed in /usr/bin. The SIP module will be installed in /usr/lib/python2.6/dist-packages. The SIP header file will be installed in /usr/include/python2.6. The default directory to install .sip files in is /usr/share/sip. The platform/compiler configuration is linux-g++. Creating sipconfig.py... Creating top level Makefile... Creating sip code generator Makefile... Creating sip module Makefile... [3] $ make make[1]: ディレクトリ `/home/kato/Downloads/pyQt.build/sip-4.11.1/sipgen' に入ります gcc -c -pipe -O2 -w -DNDEBUG -I. -o main.o main.c gcc -c -pipe -O2 -w -DNDEBUG -I. -o transform.o transform.c gcc -c -pipe -O2 -w -DNDEBUG -I. -o gencode.o gencode.c gcc -c -pipe -O2 -w -DNDEBUG -I. -o export.o export.c gcc -c -pipe -O2 -w -DNDEBUG -I. -o heap.o heap.c gcc -c -pipe -O2 -w -DNDEBUG -I. -o parser.o parser.c gcc -c -pipe -O2 -w -DNDEBUG -I. -o lexer.o lexer.c g++ -o sip main.o transform.o gencode.o export.o heap.o parser.o lexer.o make[1]: ディレクトリ `/home/kato/Downloads/pyQt.build/sip-4.11.1/sipgen' から出ます make[1]: ディレクトリ `/home/kato/Downloads/pyQt.build/sip-4.11.1/siplib' に入ります gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.6 -o siplib.o siplib.c gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.6 -o apiversions.o apiversions.c gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.6 -o descriptors.o descriptors.c gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.6 -o qtlib.o qtlib.c gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.6 -o threads.o threads.c gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.6 -o objmap.o objmap.c gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.6 -o voidptr.o voidptr.c g++ -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python2.6 -o bool.o bool.cpp g++ -shared -Wl,--version-script=sip.exp -o sip.so siplib.o apiversions.o descriptors.o qtlib.o threads.o objmap.o voidptr.o bool.o make[1]: ディレクトリ `/home/kato/Downloads/pyQt.build/sip-4.11.1/siplib' から出ます [4] $ sudo make install [sudo] password for kato: make[1]: ディレクトリ `/home/kato/Downloads/pyQt.build/sip-4.11.1/sipgen' に入ります cp -f sip /usr/bin/sip make[1]: ディレクトリ `/home/kato/Downloads/pyQt.build/sip-4.11.1/sipgen' から出ます make[1]: ディレクトリ `/home/kato/Downloads/pyQt.build/sip-4.11.1/siplib' に入ります cp -f sip.so /usr/lib/python2.6/dist-packages/sip.so strip /usr/lib/python2.6/dist-packages/sip.so cp -f /home/kato/Downloads/pyQt.build/sip-4.11.1/siplib/sip.h /usr/include/python2.6/sip.h make[1]: ディレクトリ `/home/kato/Downloads/pyQt.build/sip-4.11.1/siplib' から出ます cp -f sipconfig.py /usr/lib/python2.6/dist-packages/sipconfig.py cp -f /home/kato/Downloads/pyQt.build/sip-4.11.1/sipdistutils.py /usr/lib/python2.6/dist-packages/sipdistutils.py [5] $ sudo ldconfig [6] $ cd ../ ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< 3. How To Install (PyQt4) ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< [1] $ python configure.py Determining the layout of your Qt installation... This is the GPL version of PyQt 4.7.7 (licensed under the GNU General Public License) for Python 2.6.5 on linux2. 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 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 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... Checking to see if the dbus support module should be built... DBus v1 does not seem to be installed. Qt v4.6.2 free edition is being used. SIP 4.11.1 is being used. The Qt header files are in /usr/include/qt4. The shared Qt libraries are in /usr/lib. The Qt binaries are in /usr/bin. The Qt mkspecs directory is in /usr/share/qt4. These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia, QtNetwork, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest, QtWebKit, QtXml, QtXmlPatterns, QtAssistant, QtDesigner. The PyQt Python package will be installed in /usr/lib/python2.6/dist-packages. PyQt is being built with generated docstrings. PyQt is being built with 'protected' redefined as 'public'. The Designer plugin will be installed in /usr/lib/qt4/plugins/designer. The PyQt .sip files will be installed in /usr/share/sip/PyQt4. pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin. Generating the C++ source for the QtCore module... Creating the Makefile for the QtCore module... Generating the C++ source for the QtGui module... Creating the Makefile for the QtGui module... Generating the C++ source for the QtHelp module... Creating the Makefile for the QtHelp module... Generating the C++ source for the QtMultimedia module... Creating the Makefile for the QtMultimedia module... Generating the C++ source for the QtNetwork module... Creating the Makefile for the QtNetwork module... Determining the OpenGL data types... Generating the C++ source for the QtOpenGL module... Creating the Makefile for the QtOpenGL module... Generating the C++ source for the QtScript module... Creating the Makefile for the QtScript module... Generating the C++ source for the QtScriptTools module... Creating the Makefile for the QtScriptTools module... Generating the C++ source for the QtSql module... Creating the Makefile for the QtSql module... Generating the C++ source for the QtSvg module... Creating the Makefile for the QtSvg module... Generating the C++ source for the QtTest module... Creating the Makefile for the QtTest module... Generating the C++ source for the QtWebKit module... Creating the Makefile for the QtWebKit module... Generating the C++ source for the QtXml module... Creating the Makefile for the QtXml module... Generating the C++ source for the QtXmlPatterns module... Creating the Makefile for the QtXmlPatterns module... Generating the C++ source for the QtAssistant module... Creating the Makefile for the QtAssistant module... Generating the C++ source for the QtDesigner module... Creating the Makefile for the QtDesigner 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 library for QtGui Makefile... Creating QPy support library for QtDesigner Makefile... Creating QPy support libraries Makefile... Creating pyuic4 wrapper... Creating pyuic4 Makefile... Creating pylupdate4 Makefile... Creating pyrcc4 Makefile... Creating Qt Designer plugin Makefile... Creating pyqtconfig.py... [2] $ make [3] $ sudo make install [4] $ sudo ldconfig ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< 4. Sample Program ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>< [1] samplePyQt.py を拾ってくる. [2] $ python samplePyQt.py [EOF]