hello,
as I ran into some Problems, building on Ubuntu, I hope to give something back to this neat project by giving a small how-to-run-it -on ubuntu.
System is ubuntu lucid x64, with python2.6 to be used and other python versions installed.
(1) I had to install all of libqt4-XXXX-dev packages except phonon. Currently Qt 4.7.0 will be installed
(2)svn co the project to path
(3)build /trunk:
(A) just go to /trunk and run
qmake
make
You will notice that you still forgot to install some libXYZ-dev - find out.
Finally this will fail when the trunk/extensions subproject is built. BUT in trunk/lib there will be the libPythonQt.so "core" lib
(B) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/trunk/lib XOR make links to a lib folder where the linker finds it
(B optional) to test, you could remove the "extensions" subproject from trunk/PythonQt.pro and some examples that do not require the whole Qt wrapped, will build.
(C) well .. I HAD to run the generator, because PythonQt attempts to build some Cocoa things (some Developer seems to use a Mac :) in trunk/generator a pythonqt_generator should now be ready to use, so go to trunk/generator and do
the output directory option will be ignored. This will take a while and produce:
…
/usr/include/qt4/QtGui/<any qt header>.h
…
<Some warnings>
…
Classes in typesystem: 568
Generated:
- header….: 545 (545)
- impl……: 545 (545)
- modules…: 0 (0)
- pri…….: 11 (0)
Done, 26 warnings (1149 known issues)
svn stat ../generated_cpp/
shows that some files were rewritten
now go back to /trunk and give
qmake && make
anoter iteration (make shure "extensions" occurs in PythonQt.pro if you had removed it above)
=> by now also the libPythonQt_QtAll.so should be ready in trunk/lib and the rest of the examples
=> trunk/lib/PyGuiExample should run fine and display 2 windows. In the python console you will notice that importing 3rd party python modules does not work e.g. "import scipy as sc"
=>
hello,
as I ran into some Problems, building on Ubuntu, I hope to give something back to this neat project by giving a small how-to-run-it -on ubuntu.
System is ubuntu lucid x64, with python2.6 to be used and other python versions installed.
(1) I had to install all of libqt4-XXXX-dev packages except phonon. Currently Qt 4.7.0 will be installed
(2)svn co the project to path
(3)build /trunk:
(A) just go to /trunk and run
You will notice that you still forgot to install some libXYZ-dev - find out.
Finally this will fail when the trunk/extensions subproject is built. BUT in trunk/lib there will be the libPythonQt.so "core" lib
(B) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/trunk/lib XOR make links to a lib folder where the linker finds it
(B optional) to test, you could remove the "extensions" subproject from trunk/PythonQt.pro and some examples that do not require the whole Qt wrapped, will build.
(C) well .. I HAD to run the generator, because PythonQt attempts to build some Cocoa things (some Developer seems to use a Mac :) in trunk/generator a pythonqt_generator should now be ready to use, so go to trunk/generator and do
the output directory option will be ignored. This will take a while and produce:
…
/usr/include/qt4/QtGui/<any qt header>.h
…
<Some warnings>
…
Classes in typesystem: 568
Generated:
- header….: 545 (545)
- impl……: 545 (545)
- modules…: 0 (0)
- pri…….: 11 (0)
Done, 26 warnings (1149 known issues)
shows that some files were rewritten
now go back to /trunk and give
anoter iteration (make shure "extensions" occurs in PythonQt.pro if you had removed it above)
=> by now also the libPythonQt_QtAll.so should be ready in trunk/lib and the rest of the examples
=> trunk/lib/PyGuiExample should run fine and display 2 windows. In the python console you will notice that importing 3rd party python modules does not work e.g. "import scipy as sc"
=>
make shure to install python-scipy and use the right/same (here 2.6) Python version for building and PYTHONPATH