[PyQt] pyqtdeploy and sip errors...
John Hackett
john.hackett at icon-is.co.uk
Thu Oct 29 13:08:06 GMT 2015
Phil,
thanks for the very prompt reply - see below:
> cd /root/Software/sip-4.17
> pyqtdeploycli --package sip --target linux-64 configure
> python2.7 configure.py --static --sysroot=$SYSROOT --no-tools --use-qmake --configuration=sip-linux.cfg
> $SYSROOT/qmake
This is SIP 4.17 for Python 2.7.6 on linux2.
Reading configuration from /root/Software/sip-4.17/sip-linux.cfg...
The sip module will be installed in
/root/pyqtdeploy-dir/sysroot-linux/lib/python2.7/site-packages.
The sip module will be built as a static library.
The sip.h header file will be installed in
/root/pyqtdeploy-dir/sysroot-linux/include/python2.7.
The default directory to install .sip files in is /usr/share/sip.
Creating siplib/sip.h...
Creating siplib/siplib.c...
Creating siplib/siplib.sbf...
Creating sipconfig.py...
Creating top level .pro file...
Creating sip code generator .pro file...
Creating sip module .pro file...
> make clean
> make
cd siplib/ && ( test -e Makefile || /opt/Qt/5.5/gcc_64/bin/qmake /root/Software/sip-4.17/siplib/siplib.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory `/root/Software/sip-4.17/siplib'
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python3.4m -o siplib.o siplib.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python3.4m -o apiversions.o apiversions.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python3.4m -o descriptors.o descriptors.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python3.4m -o qtlib.o qtlib.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python3.4m -o threads.o threads.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python3.4m -o objmap.o objmap.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python3.4m -o voidptr.o voidptr.c
gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python3.4m -o array.o array.c
g++ -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/include/python3.4m -o bool.o bool.cpp
g++ -shared -Wl,--version-script=sip.exp -o sip.so siplib.o apiversions.o descriptors.o qtlib.o threads.o objmap.o voidptr.o array.o bool.o
make[1]: Leaving directory `/root/Software/sip-4.17/siplib'
> make install
cd siplib/ && ( test -e Makefile || /opt/Qt/5.5/gcc_64/bin/qmake /root/Software/sip-4.17/siplib/siplib.pro -o Makefile ) && make -f Makefile install
make[1]: Entering directory `/root/Software/sip-4.17/siplib'
cp -f sip.so /usr/lib/python3/dist-packages/sip.so
strip /usr/lib/python3/dist-packages/sip.so
cp -f /root/Software/sip-4.17/siplib/sip.h /usr/include/python3.4m/sip.h
make[1]: Leaving directory `/root/Software/sip-4.17/siplib'
--
Regards,
John Hackett
Icon Information Systems
74 Gibsons Hill, Norbury, London, SW16 3JS
t: 020 8764 2663
f: 020 8711 3370
m: 07801-231118
e: john.hackett at icon-is.co.uk
w: www.icon-is.co.uk
skype: john_hackett
twitter: @iconinfosys
----- Original Message -----
> From: "Phil Thompson" <phil at riverbankcomputing.com>
> To: "John Hackett" <john.hackett at icon-is.co.uk>
> Cc: pyqt at riverbankcomputing.com
> Sent: Thursday, 29 October, 2015 11:59:32 AM
> Subject: Re: [PyQt] pyqtdeploy and sip errors...
> On 29 Oct 2015, at 11:46 a.m., John M. Hackett <john.hackett at icon-is.co.uk>
> wrote:
> >
> > I am having problems with the final stages of building an application with
> > pyqtdeploy: "make" fails with this error:
> >
> > /usr/bin/ld cannot find -lsip
> > /usr/bin/ld cannot find -lintl
> >
> > PyQt5.5 is installed on Ubuntu 14.04 and the application (Python2.7) is
> > running correctly inside the IDE (Pycharm). Then using the instructions
> > here - http://pyqt.sourceforge.net/Docs/pyqtdeploy/static_builds.html -
> > I've build the static packages.
> >
> > Concentrating on the sip problem I have setup SYSROOT and followed the
> > instructions for building the static SIP (v4.17).
> > The output of "python2.7 configure.py ...." indicates that the module and
> > headers will be copied to the SYSROOT directory:
> >
> > The sip module will be installed in
> > /root/pyqtdeploy-dir/sysroot-linux/lib/python2.7/site-packages.
> > The sip module will be built as a static library.
> > The sip.h header file will be installed in
> > /root/pyqtdeploy-dir/sysroot-linux/include/python2.7.
> >
> > but the output of the "make" command is using python3.4m and "make install"
> > is copying the files to the python3 tree:
> >
> > cp -f sip.so /usr/lib/python3/dist-packages/sip.so
> > strip /usr/lib/python3/dist-packages/sip.so
> > cp -f /root/Software/sip-4.17/siplib/sip.h /usr/include/python3.4m/sip.h
> > make[1]: Leaving directory `/root/Software/sip-4.17/siplib'
> What *exactly* where the commands and arguments that you ran?. My guess is
> that you didn't use a clean source tree and didn't run qmake.
> Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151029/60d3ce8c/attachment.html>
More information about the PyQt
mailing list