http://pythonqt.sourceforge.net/Building.html
PythonQt requires at least Qt 4.6.1 and Python 2.6.x/2.7.x or Python 3.3.
To compile PythonQt, you will need a python developer installation which includes Python's header files and the python2x.[lib | dll | so | dynlib].
The recommended way to build PythonQt is to use the QMake-based *.pro file. The build scripts a currently set to use Python 2.6. You may need to tweak the build/python.prf file to set the correct Python includes and libs on your system.
On Linux, you need to install a Python-dev package. If Python can not be linked or include files can not be found, you probably need to tweak build/python.prf
To build PythonQt, just do a:
> cd PythonQtRoot
> qmake
> make all
The tests and examples are located in PythonQt/lib. You should add PythonQt/lib to your LD_LIBRARY_PATH so that the runtime linker can find the *.so files.
编译完成后,结果都生成在PythonQt3.2/lib/ 中
这里启动程序,报如下错误:
PythonQtTest: error while loading shared libraries: libPythonQt-Qt5-Python2.7.so.3: cannot open shared object file: No such file or directory