[PyQt] PyQt 5.1.1 and Qt 5.2.0 beta
Selim Tuvi
selim.tuvi at dreamworks.com
Wed Nov 6 16:57:43 GMT 2013
FYI, I rebuilt Python (this time 2.7.5) from scratch and still ran into the
same problem.
-Selim
On Wed, Nov 6, 2013 at 7:57 AM, Selim Tuvi <selim.tuvi at dreamworks.com>wrote:
> The compile stage already has that flag. I am getting this error during
> linking. From the Makefile in
> PyQt-gpl-5.1.2-snapshot-c483162df565/designer':
>
> CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
> CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
> INCPATH = -I../../../qt-5.2.0b1/mkspecs/linux-g++ -I.
> -I../../../opt/python/2.7.3/include/python2.7 -I.
> -I../../../qt-5.2.0b1/include -I../../../qt-5.2.0b1/include/QtDesigner
> -I../../../qt-5.2.0b1/include/QtWidgets -I../../../qt-5.2.0b1/include/QtXml
> -I../../../qt-5.2.0b1/include/QtGui -I../../../qt-5.2.0b1/include/QtCore -I.
> LINK = g++
> LFLAGS = -Wl,-O1 -Wl,-rpath,/usr/pic1/qt-5.2.0b1/lib -shared
>
> -Selim
>
>
> On Tue, Nov 5, 2013 at 3:59 PM, Johny Bui <jbui at vivint.com> wrote:
>
>> Try adding -fPIC to your cflag then recompile.
>> Johny.
>>
>>
>> Sent via the Samsung GALAXY S®4, an AT&T 4G LTE smartphone
>>
>>
>>
>> -------- Original message --------
>> From: Selim Tuvi <selim.tuvi at dreamworks.com>
>> Date: 11/05/2013 2:37 PM (GMT-08:00)
>> To: Johny Bui <jbui at vivint.com>
>> Cc: Phil Thompson <phil at riverbankcomputing.com>,
>> pyqt at riverbankcomputing.com
>> Subject: Re: [PyQt] PyQt 5.1.1 and Qt 5.2.0 beta
>>
>>
>> Now I am getting the following error:
>>
>> g++ -Wl,-O1 -Wl,-rpath,/usr/pic1/qt-5.2.0b1/lib -shared -o libpyqt5.so
>> pluginloader.o moc_pluginloader.o -L/usr/pic1/opt/python/2.7.3/lib
>> -lpython2.7 -L/usr/pic1/qt-5.2.0b1/lib -lQt5Designer -lQt5Widgets -lQt5Xml
>> -lQt5Gui -lQt5Core -lGL -lpthread
>> /usr/bin/ld: /usr/pic1/opt/python/2.7.3/lib/libpython2.7.a(abstract.o):
>> relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making
>> a shared object; recompile with -fPIC
>> /usr/pic1/opt/python/2.7.3/lib/libpython2.7.a: could not read symbols:
>> Bad value
>> collect2: ld returned 1 exit status
>> gmake[1]: *** [libpyqt5.so] Error 1
>> gmake[1]: Leaving directory
>> `/usr/pic1/src/PyQt-gpl-5.1.2-snapshot-c483162df565/designer'
>> gmake: *** [sub-designer-make_first-ordered] Error 2
>>
>>
>>
>> On Tue, Nov 5, 2013 at 2:23 PM, Selim Tuvi <selim.tuvi at dreamworks.com>wrote:
>>
>>> Thanks Johny, Phil's patch didn't help but yours did.
>>>
>>> FYI, this is the compiler I am using:
>>>
>>> gcc version 4.4.7 20120313 (Red Hat 4.4.7-3)
>>>
>>> -Selim
>>>
>>>
>>>
>>> On Tue, Nov 5, 2013 at 10:37 AM, Johny Bui <jbui at vivint.com> wrote:
>>>
>>>> If your compiler is old like mine, you will need to use this attached
>>>> patch.
>>>> mine is arm gcc 4.3.
>>>>
>>>> Johny.
>>>>
>>>>
>>>> On 11/05/2013 02:58 AM, Phil Thompson wrote:
>>>>
>>>> On Mon, 4 Nov 2013 15:28:32 -0800, Selim Tuvi
>>>> <selim.tuvi at dreamworks.com> <selim.tuvi at dreamworks.com>
>>>> wrote:
>>>> > Does the current PyQt 5 release support Qt 5.2.0 beta? I am getting
>>>> the
>>>> > following error when I build PyQt:
>>>> >
>>>> > qpyqml_register_type.cpp:281: error: insufficient contextual
>>>> information
>>>> to
>>>> > determine type
>>>> > gmake[2]: *** [qpyqml_register_type.o] Error 1
>>>> > gmake[2]: Leaving directory
>>>> > `/usr/pic1/src/PyQt-gpl-5.1.2-snapshot-c483162df565/qpy/QtQml'
>>>> > gmake[1]: *** [sub-QtQml-make_first] Error 2
>>>> > gmake[1]: Leaving directory
>>>> > `/usr/pic1/src/PyQt-gpl-5.1.2-snapshot-c483162df565/qpy'
>>>> > gmake: *** [sub-qpy-make_first-ordered] Error 2
>>>>
>>>> Works fine for me but I suspect the problem is a crappy compiler.
>>>>
>>>> Try the attached patch.
>>>>
>>>> Phil
>>>>
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20131106/a798b39e/attachment-0001.html>
More information about the PyQt
mailing list