-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This seems to work :-) so far it's compiling happily. Many thanks!
Maybe the Pypi package could somehow detect Qt5, and then throw some sort of warning? I guess that would help against accidentally compiling it with Qt5. On 03/27/2014 03:23 PM, Roman Lacko wrote: > please try following: > > python3-pip install PySide > --install-option="--qmake=/path/to/qt4-qmake" > > > 2014-03-27 15:16 GMT+01:00 Jonas Thiem <[email protected] > <mailto:[email protected]>>: > > 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 <[email protected] > <mailto:[email protected]>> To: Roman Lacko > <[email protected] <mailto:[email protected]>> > > 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> > <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 >> <[email protected] > <mailto:[email protected]> >> <mailto:[email protected] > <mailto:[email protected]>>>: > >> 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 [email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>> >> http://lists.qt-project.org/mailman/listinfo/pyside > > > _______________________________________________ PySide mailing > list [email protected] <mailto:[email protected]> > http://lists.qt-project.org/mailman/listinfo/pyside > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTND5EAAoJEBIDTbbx8YkeEN4P/38upkPLlyN2VcaIM0O8hCX/ 4KXBRcQgX+/fAaw1EE3TnQJObBGfDQ4uvW1BRBTYFmB0DB2KRCgF2f2DcZc7r7qc jag+G2bzoGdMs8KOf/PamVoM8B9lIBAJyM+oAt2+1HroGqqxpjWK2aDj2Vy5K0Fa xh00BBwLWS8v1u29f683DNs4ef09O5QjOmDPJUOPmRlZJXukgmjhFNNI7veBmcn+ ejmQw/iPALvgIO+JNyW9+t4RNYEBfQ3KcDKCwV1gWg/l6JF1XG6bCMqh/4QCwTJ5 Hl8fD8pkwX+O3AFlteKXw/bQI77B+60eGVtPYWuDEYOaEWfA/s0V7wuGNs6kyss4 JEsU2rVTIJtFZQ+UIJDQagH9QjDSNMlDZ4kTVyZnJi0eBPQcUkA2y2ONhpWEF9My 91B6GFETDqlEko2yFiZXDyzfL/fB1V2ikAw2quWPRtIKFwT/BHMHsRBQSlqTjdHo axkQII70MpC2qFvMwKiYVExtyjtVMfeAN4lWyIdvh2jAktwBu0DwS+sUBVpoSNPA l99WyqIRHeiAGp4zlA2snJAvh9hfhHsHkFm02pf/ya6aTQeQc8/NSmwSHWyLL/zg ry4u/4LIJmiRM0k0TJGOUmDCsLEuOZvl1sswzZTnbOEa/rTmXUsMpnLYUcTV/x4Z V8wPNT2oYsaV4VKLn1Pt =KvYi -----END PGP SIGNATURE----- _______________________________________________ PySide mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/pyside
