[PySide] Fwd: Re: pypi package doesn't build on Mageia 4 due to position dependent code

Jonas Thiem jonasthiem at googlemail.com
Thu Mar 27 15:16:08 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I messed up sending this one to the list:
- -------- Original Message --------
Subject: Re: [PySide] pypi package doesn't build on Mageia 4 due to
position dependent code
Date: Thu, 27 Mar 2014 15:10:12 +0100
From: Jonas Thiem <jonasthiem at googlemail.com>
To: Roman Lacko <backup.rlacko at gmail.com>

I didn't do anything except type python3-pip install PySide. How would
I make sure it builds against Qt4? (libqt4-devel is installed)

On 03/27/2014 02:59 PM, Roman Lacko wrote:
> PySide does not support Qt 5 You need to build PySide against Qt 4
> 
> ============================== Package version: 1.2.1 Build type: 
> Release Build tests: False --- Make path: /usr/bin/make Make 
> generator: Unix Makefiles Make jobs: --- Script directory: 
> /tmp/pip_build_root/PySide Sources directory: 
> /tmp/pip_build_root/PySide/sources Build directory: 
> /tmp/pip_build_root/PySide/pyside_build/py3.3-qt5.2.0-64bit-release
>
>
Install
> 
directory:
> /tmp/pip_build_root/PySide/pyside_install/py3.3-qt5.2.0-64bit-release
>
>
Python
> 
site-packages install directory:
> /tmp/pip_build_root/PySide/pyside_install/py3.3-qt5.2.0-64bit-release/lib64/python3.3/site-packages
>
>
- ---
>
> 
Python executable: /usr/bin/python3 Python includes:
> /usr/include/python3.3m Python library:
> /usr/lib64/libpython3.3m.so <http://libpython3.3m.so> Python
> prefix: /usr Python scripts: /usr/bin --- Qt qmake: /usr/bin/qmake
> Qt version: 5.2.0 Qt bins: /usr/lib64/qt5/bin Qt plugins:
> /usr/lib64/qt5/plugins --- OpenSSL libs: None
> ============================== ...
> 
> 
> 
> 2014-03-27 14:37 GMT+01:00 Jonas Thiem <jonasthiem at googlemail.com 
> <mailto:jonasthiem at googlemail.com>>:
> 
> Hi everyone,
> 
> I wanted to use PySide with Python 3, but sadly Mageia 4 doesn't 
> ship PySide packages for Python 3 (just 2.x). Therefore I tried 
> installing it with python3-pip. Unfortunately, it doesn't work:
> 
> 
> Excerpt from the terminal output (full output is attached):
> 
> ...
> 
> [  4%] Building CXX object 
> ApiExtractor/CMakeFiles/apiextractor.dir/apiextractor.cpp.o
> 
> In file included from /usr/lib64/qt5/include/QtCore/qchar.h:45:0,
> 
> from /usr/lib64/qt5/include/QtCore/qhash.h:45,
> 
> from /usr/lib64/qt5/include/QtCore/QHash:1,
> 
> from 
> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/typesystem.h:27,
>
>
> 
from
> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:27,
>
>
> 
from
> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/apiextractor.h:28,
>
>
> 
from
> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/apiextractor.cpp:24:
>
>
> 
/usr/lib64/qt5/include/QtCore/qglobal.h:996:4: error: #error "You
> must build your code with position independent code if Qt was
> built with -reduce-relocations. " "Compile your code with -fPIC or 
> -fPIE."
> 
> #  error "You must build your code with position independent code 
> if Qt was built with -reduce-relocations. "\
> 
> ^
> 
> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/apiextractor.cpp:
>
>
In
> 
function ?bool preprocess(const QString&, QFile&, const
> QStringList&)?:
> 
> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/apiextractor.cpp:273:38:
>
>
error:
> 
?convertSeparators? is not a member of ?QDir?
> 
> ...
> 
> 
> So it appears all that is missing is a simple -fPIC compile
> option. Is there a chance this can fixed in the near future? I'm
> happy to retest stuff or modify files if given suitable
> instructions for further testing.
> 
> Regards, Jonas Thiem
> 
> _______________________________________________ PySide mailing list
> PySide at qt-project.org <mailto:PySide at qt-project.org> 
> http://lists.qt-project.org/mailman/listinfo/pyside
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTNDKiAAoJEBIDTbbx8Yke6rAP/2UxKo5yG5GEOikSephJ1QmP
DKIRyaEuwLqDWPnBW4qUKrJWyaWu4UiWj6HmYNNzwkhoj6ChrV8oZg2PRkjEhYAB
pUejGXMVSLLnj5AqXQ4sB8BhFCwWf+YwBtmAPU911IHI9QV9tVbv04+7zqAptSUM
H17lF2t3yNuJR0osqVgue3asDDRF1eSpKPEAop1/qOZgs1I7qA67xdYmY9u3bUCm
zJfWsqalemBr2HfwQiqQAyugCPAFTuqDr/zlwp7Q44yiV8+deyMWM4qufUpRjxxq
e7Mhj414w3pMrFwPZZqrAdFOZ8xW3ICps+T/2JFVHv16zryUeWvWK8NFhYNea258
LnPHfZD6m4mjbOrsRteIJFxJF+Bt8SZlxNssBSGp5dbOJhdQow77TJ1QnG87LGfN
f+doxjF6lPw/VozV817mg+EXlrjzSQOhEpzo1eRmkuCiObneOWSxqO2sKznQmBIB
dUE5N3h9n5xINfpzg+qu6v1ZkUa7TlsuwsRdwX/ZKWABvItH+BbUSKIwKLRJQWS3
h1nS3cBWxEive9OkUhT9/zsXdHg8/0w+cjg+LJKZ6NNKCfD6LzlD+1qWUyei7fPU
o+eem4lPoCYdx85GHI/mC7i/0V0XIERNg+/Q2VcKft37PUwXNxVyelg+ClqcpntS
B3V6c9jLoCstPX2PPCmb
=ASpb
-----END PGP SIGNATURE-----



More information about the PySide mailing list