[Development] Qt-5.1, qglobal.h and PIC detection

Christian Gagneraud chgans at gna.org
Wed Nov 6 02:18:56 CET 2013


On 06/11/13 13:19, Liang Qi wrote:
> On Wednesday 06 November 2013 12:17:56 Christian Gagneraud wrote:
>> Hi,
>>
>> I'm using CLang build-analize tool, and when I switched from Qt 4.8 to
>> Qt 5.1 (insalled from Qt project's download area), I got a Qt #error,
>> basically the code is built with -fPIC, but CLang doesn't define a PIC
>> macro, so the build fails due to a check in qglobal.h (see details below).
>> ...
>
> That's a bug in scan-build script, already fixed in clang upstream.
>   More details in
> https://bugreports.qt-project.org/browse/QTBUG-33698

Thanks Liang!

Chris

>
> Regards,
> Liang
>
> --
> http://www.qiliang.net




More information about the Development mailing list