[PyQt] multiple definition of `pyqt5_from_argv_list'

Phil Thompson phil at riverbankcomputing.com
Sat May 17 00:11:39 BST 2014


On 16/05/2014 7:16 pm, lloyd konneker wrote:
> I finessed my previous problem by creating a link from libsip.a as
> the sip build installed it, to the directory where pyqtdeploy expects
> it, but now I get:
> 
> 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/PyQt5
> -L/usr/lib/python3.4/site-packages -lQtWidgets -lQtSvg -lQtGui -lsip
> -lQtCore -L/usr/lib/i386-linux-gnu -lpython3.4m -lutil -ldl -lQt5Svg
> -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
> 
> /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 am thinking I can just hack out one definition, if the PyQt5
> Makefile will let me rebuild just one file that I hack.
> 
>  I am blogging about my experiences but it it still a draft.
> 
>  http://plashless.wordpress.com/2014/05/16/using-pyqtdeploy/ [1]

Make sure you are using current SIP, PyQt etc snaphots.

Phil


More information about the PyQt mailing list