<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Try adding -fPIC to your cflag then recompile. </div><div>Johny.</div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">Sent via the Samsung GALAXY S®4, an AT&T 4G LTE smartphone</div></div><br><br><br>-------- Original message --------<br>From: Selim Tuvi <selim.tuvi@dreamworks.com> <br>Date: 11/05/2013  2:37 PM  (GMT-08:00) <br>To: Johny Bui <jbui@vivint.com> <br>Cc: Phil Thompson <phil@riverbankcomputing.com>,pyqt@riverbankcomputing.com <br>Subject: Re: [PyQt] PyQt 5.1.1 and Qt 5.2.0 beta <br> <br><br>
<div dir="ltr">Now I am getting the following error:<br>
<br>
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 
<br>
/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<br>
/usr/pic1/opt/python/2.7.3/lib/libpython2.7.a: could not read symbols: Bad value<br>
collect2: ld returned 1 exit status<br>
gmake[1]: *** [libpyqt5.so] Error 1<br>
gmake[1]: Leaving directory `/usr/pic1/src/PyQt-gpl-5.1.2-snapshot-c483162df565/designer'<br>
gmake: *** [sub-designer-make_first-ordered] Error 2<br>
<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Nov 5, 2013 at 2:23 PM, Selim Tuvi <span dir="ltr">
<<a href="mailto:selim.tuvi@dreamworks.com">selim.tuvi@dreamworks.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div>Thanks Johny, Phil's patch didn't help but yours did.<br>
<br>
</div>
<div>FYI, this is the compiler I am using:<br>
<br>
gcc version 4.4.7 20120313 (Red Hat 4.4.7-3)<span class="HOEnZb"><font color="#888888"><br>
<br>
</font></span></div>
<span class="HOEnZb"><font color="#888888">-Selim<br>
<br>
</font></span></div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Nov 5, 2013 at 10:37 AM, Johny Bui <span dir="ltr">
<<a href="mailto:jbui@vivint.com">jbui@vivint.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div bgcolor="#FFFFFF">If your compiler is old like mine, you will need to use this attached patch.<br>
mine is arm gcc 4.3.<span><font color="#888888"><br>
<br>
Johny.</font></span>
<div>
<div><br>
<br>
<div>On 11/05/2013 02:58 AM, Phil Thompson wrote:<br>
</div>
<blockquote type="cite">
<p><font>On Mon, 4 Nov 2013 15:28:32 -0800, Selim Tuvi <a href="mailto:selim.tuvi@dreamworks.com">
<selim.tuvi@dreamworks.com></a><br>
wrote:<br>
> Does the current PyQt 5 release support Qt 5.2.0 beta? I am getting the<br>
> following error when I build PyQt:<br>
><br>
> qpyqml_register_type.cpp:281: error: insufficient contextual information<br>
to<br>
> determine type<br>
> gmake[2]: *** [qpyqml_register_type.o] Error 1<br>
> gmake[2]: Leaving directory<br>
> `/usr/pic1/src/PyQt-gpl-5.1.2-snapshot-c483162df565/qpy/QtQml'<br>
> gmake[1]: *** [sub-QtQml-make_first] Error 2<br>
> gmake[1]: Leaving directory<br>
> `/usr/pic1/src/PyQt-gpl-5.1.2-snapshot-c483162df565/qpy'<br>
> gmake: *** [sub-qpy-make_first-ordered] Error 2<br>
<br>
Works fine for me but I suspect the problem is a crappy compiler.<br>
<br>
Try the attached patch.<br>
<br>
Phil</font> </p>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>


</body>