Re: [PyQt] problem running pyqt on xubuntu
On Sun, 21 Oct 2012 08:11:11 +0100, Mark Summerfield wrote: > Hi Baz, > > On Sun, 21 Oct 2012 00:44:58 +0100 > Baz Walter wrote: >> On 20/10/12 08:11, Mark Summerfield wrote: >> > Hi, >> > >> > I have built local versions of Qt 4.8.3, Python, SIP, and PyQt on an >> > Xubuntu machine which has Qt 4.8.1 as its system Qt: >> > >> > $ cd qt483src >> > $ ./configure -prefix ~/opt/qt483 >> > $ make && make install >> > >> > $ cd py33src >> > $ ./configure --prefix ~/opt/py33 >> > $ make && make install >> > >> > $ cd sip414src >> > $ ~/opt/py33/bin/python3 configure.py >> > $ make && make install >> > >> > $ cd pyqt495src >> > $ ~/opt/py33/bin/python3 configure.py -q ~/opt/qt483/bin/qmake >> > $ make && make install >> > >> > $ ./opt/py33/bin/python3 mypyqtapp.pyw >> > Cannot mix incompatible Qt library (version 0x40801) with this library >> > (version 0x40803) Aborted (core dumped) >> > >> > So clearly, despite trying to build using my local Qt, PyQt seems to be >> > looking at the system Qt. >> > >> > Is there a solution for this? >> >> One of the simplest solutions is to use LD_LIBRARY_PATH. >> >> Create a wrapper "pyqt483" script like this: >> >> #!/bin/sh >> >> export LD_LIBRARY_PATH="path/to/qt4/lib" >> >> exec "path/to/bin/python" "$@" >> >> Then you can test your pyqt apps like this: >> >> $ pyqt483 mypyqtapp.pyw > > I will try that next week. > > But I still don't understand why, if I use -q when I build PyQt, it > makes any reference to another Qt at all. > > So, ISTM, that this is a PyQt bug... PyQt uses the qmake mkspec files from the Qt installation to get all the compiler and linker flags. In a default linux installation this will include using rpath to point to the Qt libs selected at compile time. A lot of distros remove this from their custom Qt installation. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] problem running pyqt on xubuntu
Hi Baz, On Sun, 21 Oct 2012 00:44:58 +0100 Baz Walter wrote: > On 20/10/12 08:11, Mark Summerfield wrote: > > Hi, > > > > I have built local versions of Qt 4.8.3, Python, SIP, and PyQt on an > > Xubuntu machine which has Qt 4.8.1 as its system Qt: > > > > $ cd qt483src > > $ ./configure -prefix ~/opt/qt483 > > $ make && make install > > > > $ cd py33src > > $ ./configure --prefix ~/opt/py33 > > $ make && make install > > > > $ cd sip414src > > $ ~/opt/py33/bin/python3 configure.py > > $ make && make install > > > > $ cd pyqt495src > > $ ~/opt/py33/bin/python3 configure.py -q ~/opt/qt483/bin/qmake > > $ make && make install > > > > $ ./opt/py33/bin/python3 mypyqtapp.pyw > > Cannot mix incompatible Qt library (version 0x40801) with this library > > (version 0x40803) Aborted (core dumped) > > > > So clearly, despite trying to build using my local Qt, PyQt seems to be > > looking at the system Qt. > > > > Is there a solution for this? > > One of the simplest solutions is to use LD_LIBRARY_PATH. > > Create a wrapper "pyqt483" script like this: > > #!/bin/sh > > export LD_LIBRARY_PATH="path/to/qt4/lib" > > exec "path/to/bin/python" "$@" > > Then you can test your pyqt apps like this: > > $ pyqt483 mypyqtapp.pyw I will try that next week. But I still don't understand why, if I use -q when I build PyQt, it makes any reference to another Qt at all. So, ISTM, that this is a PyQt bug... -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Programming in Python 3" - ISBN 0321680561 http://www.qtrac.eu/py3book.html ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] problem running pyqt on xubuntu
On 20/10/12 08:11, Mark Summerfield wrote: Hi, I have built local versions of Qt 4.8.3, Python, SIP, and PyQt on an Xubuntu machine which has Qt 4.8.1 as its system Qt: $ cd qt483src $ ./configure -prefix ~/opt/qt483 $ make && make install $ cd py33src $ ./configure --prefix ~/opt/py33 $ make && make install $ cd sip414src $ ~/opt/py33/bin/python3 configure.py $ make && make install $ cd pyqt495src $ ~/opt/py33/bin/python3 configure.py -q ~/opt/qt483/bin/qmake $ make && make install $ ./opt/py33/bin/python3 mypyqtapp.pyw Cannot mix incompatible Qt library (version 0x40801) with this library (version 0x40803) Aborted (core dumped) So clearly, despite trying to build using my local Qt, PyQt seems to be looking at the system Qt. Is there a solution for this? One of the simplest solutions is to use LD_LIBRARY_PATH. Create a wrapper "pyqt483" script like this: #!/bin/sh export LD_LIBRARY_PATH="path/to/qt4/lib" exec "path/to/bin/python" "$@" Then you can test your pyqt apps like this: $ pyqt483 mypyqtapp.pyw ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] problem running pyqt on xubuntu
Hello, I am doing it for eric development using separate Qt installation directories, Python virtual environments and start scripts setting the path to the Qt tools explicitly. Works perfectly for me. Just make sure to set the path explicitly when building PyQt4 and QScintilla stuff. Detlev Am 20.10.2012 um 09:43 schrieb Mark Summerfield : > On Sat, 20 Oct 2012 03:21:51 -0400 > Scott Kitterman wrote: >> On Saturday, October 20, 2012 08:11:29 AM Mark Summerfield wrote: >>> I have built local versions of Qt 4.8.3, Python, SIP, and PyQt on an >>> Xubuntu machine which has Qt 4.8.1 as its system Qt: >> >> ... >> >>> So clearly, despite trying to build using my local Qt, PyQt seems to be >>> looking at the system Qt. >>> >>> Is there a solution for this? >> >> Upgrading to the newest Xubuntu release where 4.8.3 is the system Qt >> would be one way to do it. > > Yes, and so would doing a local install of 4.8.1. But my whole purpose > is to be able to have many local builds of different combinations of > Py x Qt x PyQt for testing purposes. > > -- > Mark Summerfield, Qtrac Ltd, www.qtrac.eu >C++, Python, Qt, PyQt - training and consultancy >"Rapid GUI Programming with Python and Qt" - ISBN 0132354187 >http://www.qtrac.eu/pyqtbook.html > ___ > PyQt mailing listPyQt@riverbankcomputing.com > http://www.riverbankcomputing.com/mailman/listinfo/pyqt Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] problem running pyqt on xubuntu
On Sat, 20 Oct 2012 03:21:51 -0400 Scott Kitterman wrote: > On Saturday, October 20, 2012 08:11:29 AM Mark Summerfield wrote: > > I have built local versions of Qt 4.8.3, Python, SIP, and PyQt on an > > Xubuntu machine which has Qt 4.8.1 as its system Qt: > > ... > > > So clearly, despite trying to build using my local Qt, PyQt seems to be > > looking at the system Qt. > > > > Is there a solution for this? > > Upgrading to the newest Xubuntu release where 4.8.3 is the system Qt > would be one way to do it. Yes, and so would doing a local install of 4.8.1. But my whole purpose is to be able to have many local builds of different combinations of Py x Qt x PyQt for testing purposes. -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Rapid GUI Programming with Python and Qt" - ISBN 0132354187 http://www.qtrac.eu/pyqtbook.html ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] problem running pyqt on xubuntu
On Saturday, October 20, 2012 08:11:29 AM Mark Summerfield wrote: > I have built local versions of Qt 4.8.3, Python, SIP, and PyQt on an > Xubuntu machine which has Qt 4.8.1 as its system Qt: ... > So clearly, despite trying to build using my local Qt, PyQt seems to be > looking at the system Qt. > > Is there a solution for this? Upgrading to the newest Xubuntu release where 4.8.3 is the system Qt would be one way to do it. Scott K ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] problem running pyqt on xubuntu
Hi, I have built local versions of Qt 4.8.3, Python, SIP, and PyQt on an Xubuntu machine which has Qt 4.8.1 as its system Qt: $ cd qt483src $ ./configure -prefix ~/opt/qt483 $ make && make install $ cd py33src $ ./configure --prefix ~/opt/py33 $ make && make install $ cd sip414src $ ~/opt/py33/bin/python3 configure.py $ make && make install $ cd pyqt495src $ ~/opt/py33/bin/python3 configure.py -q ~/opt/qt483/bin/qmake $ make && make install $ ./opt/py33/bin/python3 mypyqtapp.pyw Cannot mix incompatible Qt library (version 0x40801) with this library (version 0x40803) Aborted (core dumped) So clearly, despite trying to build using my local Qt, PyQt seems to be looking at the system Qt. Is there a solution for this? Thanks! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Programming in Python 3" - ISBN 0321680561 http://www.qtrac.eu/py3book.html ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt