<div dir="ltr">Hi Hernán,<div><br></div><div><div>It looks like someone backported a fix from QGIS 2.99 (upcoming 3.0 release) code branch, where QStringLiteral() is preferred over QString() because it is available in Qt5, and other reasons. The use of QStringLiteral in 2.x code bases needs removed (as Jürgen mentioned).</div><div><br></div><div>Side note: I have gotten around it for C++ plugin development, where I wanted to compile the same plugin code for QGIS 2 and 3 while focusing more on QGIS 3 coding style/standards, by using the following macro:</div><div><br></div><div><div>#ifndef QStringLiteral</div><div>// Add define for Qt4</div><div>// Source code is assumed to be encoded in UTF-8 (as per Qt5 macro)</div><div>//# define QStringLiteral(str) QString::fromUtf8(str, sizeof(str) - 1)</div><div>// But... that macro does not appear to work on Linux with GCC,</div><div>// Just add QString() stub instead</div><div># define QStringLiteral(str) QString(str)</div><div>#endif</div></div><div><br></div><div>This *could* be added to 2.x branches (to guard against this type of error), but there is the problem that there is no standard base included header file, e.g. qgis.h and qgsconfig.h are not always included. So, no clear place to put the macro.</div><div><br></div><div>Regards,</div><div><br></div>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br>----------------------------------<br>Boundless Desktop and QGIS Support/Development<br>Boundless Spatial - <a href="http://boundlessgeo.com/" target="_blank">http://boundlessgeo.com</a><br><div><a href="mailto:lshaffer@boundlessgeo.com" target="_blank">lshaffer@boundlessgeo.com</a> </div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br>----------------------------------<br>Boundless Desktop and QGIS Support/Development<br>Boundless Spatial - <a href="http://boundlessgeo.com" target="_blank">http://boundlessgeo.com</a><br><a href="mailto:lshaffer@boundlessgeo.com" target="_blank">lshaffer@boundlessgeo.com</a></div></div></div>
<br><div class="gmail_quote">On Wed, May 24, 2017 at 3:21 PM, Jürgen E. Fischer <span dir="ltr"><<a href="mailto:jef@norbit.de" target="_blank">jef@norbit.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Hernán,<br>
<span class=""><br>
On Wed, 24. May 2017 at 22:56:49 +0200, Hernán De Angelis wrote:<br>
> I am trying to compile 2.18.8 from source. This is my usual way of<br>
> installing QGIS and I never experience any dramatic problems. However, this<br>
> time I keep getting the following cryptic error, which I cannot seem to get<br>
> around:<br>
<br>
</span>Apply af8fb04f.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Jürgen<br>
<br>
<br>
--<br>
Jürgen E. Fischer norBIT GmbH Tel. <a href="tel:%2B49-4931-918175-31" value="+49493191817531">+49-4931-918175-31</a><br>
Dipl.-Inf. (FH) Rheinstraße 13 Fax. <a href="tel:%2B49-4931-918175-50" value="+49493191817550">+49-4931-918175-50</a><br>
Software Engineer D-26506 Norden <a href="http://www.norbit.de" rel="noreferrer" target="_blank">http://www.norbit.de</a><br>
QGIS release manager (PSC) Germany IRC: jef on FreeNode<br>
</font></span><br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>