PySide on Centos 6.3
Published 22 August 2012 under how to, pyside, centos 6, python
The easiest way to install PySide 1.1.1 on Centos is using the BuildScripts. However, the build_and_install script needs a minor tweak before it will run successfully.
Firstly, clone the PySide BuildScripts from Github and initialize the submodules:
$ git clone git://github.com/PySide/BuildScripts.git
$ git submodule init
$ git submodule update
Now run the dependencies script for Centos/Fedora:
$ cd BuildScripts
$ ./dependencies.fedora.sh
If you were to run the build_and_install
script you would see this issue which results in the following error:
QT_PHONON_INCLUDE_DIR set to NOTFOUND
A workaround for this problem is to apply this patch which tells cmake where to find phonon:
$ patch -p1 < centos-pyside.patch
Note that if you've installed Qt from a download (rather than through your package manager) you'll want to make sure you have modified your LD_LIBRARY_PATH and PATH correctly. If you don't do this you'll get an undefined symbol error when you try to run shiboken. So, in your .bashrc
or equivalent put:
export PATH=$HOME/QtSDK/Desktop/Qt/4.8.1/gcc/bin:$PATH
export LD_LIBRARY_PATH=/home/build/QtSDK/Desktop/Qt/4.8.1/gcc/lib:$LD_LIBRARY_PATH
You should now be able to run build_and_install
to install PySide into $HOME/pkg/pyside-sandbox
.
Comments
blog comments powered by Disqus