[PyQt] Ubuntu pyqtdeploy fail: /usr/bin/ld: cannot find -lsip
Phil Thompson
phil at riverbankcomputing.com
Fri May 16 05:23:54 BST 2014
On 16/05/2014 12:47 am, lloyd konneker wrote:
> Environment: Ubuntu14.04, Qt5.2.1, latest stable PyQt, pyqtdeploy0.4
>
> g++ -Wl,-O1 -o pensool main.o pyqtdeploy_main.o pyqtdeploy_module.o
> qrc_pyqtdeploy.o qrc_stdlib.o qrc_site-packages.o
> -L/usr/lib/python3.4/site-packages
> -L/usr/lib/python3.4/site-packages/PyQt5 -lsip -lQtWidgets -lQtCore
> -lQtGui -lQtSvg -L/usr/lib/i386-linux-gnu -lpython3.4m -lutil -ldl
> -lQt5Svg -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
>
> /usr/bin/ld: cannot find -lsip
>
> /usr/lib/python3.4/site-packages/PyQt5/libQtGui.a(sipQtGuicmodule.o):(.bss+0x18):
> multiple definition of `pyqt5_from_argv_list'
>
> /usr/lib/python3.4/site-packages/PyQt5/libQtWidgets.a(sipQtWidgetscmodule.o):(.bss+0x24):
> first defined here
>
> /usr/lib/python3.4/site-packages/PyQt5/libQtGui.a(sipQtGuicmodule.o):(.bss+0x14):
> multiple definition of `pyqt5_update_argv_list'
>
> /usr/lib/python3.4/site-packages/PyQt5/libQtWidgets.a(sipQtWidgetscmodule.o):(.bss+0x18):
> first defined here
>
> collect2: error: ld returned 1 exit status
>
> make: *** [pensool] Error 1
> I think I followed the directions in the tutorial for building sip
> statically.
The tutorial is based on you using your own build of Python, not the
distro version.
> >make install
> installs it to a location that is not in the g++ command? i.e.
> /usr/lib/python3/dist-packages
>
> /usr$ find * -name libsip.a
> lib/python3/dist-packages/libsip.a
>
> Please let me know if you would rather I not report such errors until
> later releases of pyqtdeploy.
I'm grateful for all the testing. The nature of the deployment problem
is that there will be many, many small issues that people will come up
with just because they do things in a different (but perfectly valid)
way. I would just say that if I don't respond to a problem then it's
likely that it's no longer an issue as things are moving on fairly
quickly. For example the notes for building static packages are mostly
out of date, but I do now have the PyQt5 wiggly example running on the
iPhone simulator.
Phil
More information about the PyQt
mailing list