<div dir="ltr"><div>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':<br><br>CFLAGS        = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)<br>

CXXFLAGS      = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)<br>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.<br>

LINK          = g++<br>LFLAGS        = -Wl,-O1 -Wl,-rpath,/usr/pic1/qt-5.2.0b1/lib -shared<br><br></div>-Selim<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 3:59 PM, Johny Bui <span dir="ltr"><<a href="mailto:jbui@vivint.com" target="_blank">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><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><div><div class="h5"><br><br><br>-------- Original message --------<br>From: Selim Tuvi <<a href="mailto:selim.tuvi@dreamworks.com" target="_blank">selim.tuvi@dreamworks.com</a>> <br>

Date: 11/05/2013  2:37 PM  (GMT-08:00) <br>To: Johny Bui <<a href="mailto:jbui@vivint.com" target="_blank">jbui@vivint.com</a>> <br>Cc: Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>>,<a href="mailto:pyqt@riverbankcomputing.com" target="_blank">pyqt@riverbankcomputing.com</a> <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" target="_blank">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><font color="#888888"><br>
<br>
</font></span></div>
<span><font color="#888888">-Selim<br>
<br>
</font></span></div>
<div>
<div>
<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" target="_blank">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" target="_blank">
<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>


</div></div></div></blockquote></div><br></div>