<div dir="ltr">Dear QGIS developers,<div><br></div><div>I am trying to build QGIS using Qt 5.14.2. I have installed the Qt 5.14.2. I have also set the CMake configuration (all Qt5*_Dir parameter) to their respective directory under Qt 5.14.2 director. For example <font face="monospace">Qt5Core_DIR:PATH=/home/isunni/Qt/5.14.2/gcc_64/lib/cmake/Qt5Core</font>.</div><div><br></div><div>Unfortunately, when I run the build command (e.g. <font face="monospace">ninja -j6</font>) I got some error like this below:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace">In file included from /home/isunni/Qt/5.14.2/gcc_64/include/QtCore/qcalendar.h:48:0,<br>                 from /home/isunni/Qt/5.14.2/gcc_64/include/QtCore/QtCore:37,<br>                 from /home/isunni/dev/cpp/QGIS/src/gui/qgshelp.h:19,<br>                 from /home/isunni/dev/cpp/QGIS/src/providers/postgres/qgspgnewconnection.h:21,<br>                 from /home/isunni/dev/cpp/QGIS/src/providers/postgres/qgspgnewconnection.cpp:22:<br>/home/isunni/Qt/5.14.2/gcc_64/include/QtCore/qstringview.h: In instantiation of ‘constexpr QStringView::QStringView(const Pointer&) [with Pointer = const char16_t*; typename std::enable_if<QtPrivate::IsCompatiblePointer<Pointer>::value, bool>::type <anonymous> = 1]’:<br>/home/isunni/Qt/5.14.2/gcc_64/include/QtCore/qstringbuilder.h:378:71:   required from here<br>/home/isunni/Qt/5.14.2/gcc_64/include/QtCore/qstringview.h:201:53: error: ‘lengthHelperPointer’ was not declared in this scope<br>         : QStringView(str, str ? lengthHelperPointer(str) : 0) {}<br>                                  ~~~~~~~~~~~~~~~~~~~^~~~~</font></blockquote><div><br></div><div>It seems, it still refers to the system installed Qt (5.9), but I am not sure which one since I already set the Qt5*_Dir to QT 5.14.2 and the CMAKE_PREFIX_PATH is also set to <font face="monospace">/home/isunni/Qt/5.14.2/gcc_64</font><i style="font-family:monospace"> </i><font face="arial, sans-serif">(where my Qt 5.14.2 located)</font></div><div><br>Is there a parameter that I should update beside the Qt5*_Dir to make it work? Or is there any library or package that I need to install additionally?</div><div><br></div><div>I am using Ubuntu 18.04 and can build QGIS using the system installed Qt (5.9) fine.</div><div><br></div><div>Thanks!</div><div><br></div><div>NB: Here is my CMakeCache: <a href="https://gist.github.com/ismailsunni/c61b6b51c83753df39fea67b5e848b80">https://gist.github.com/ismailsunni/c61b6b51c83753df39fea67b5e848b80</a><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ismail Sunni</div><div>Software Engineer</div><div><a href="http://ismailsunni.id" target="_blank">ismailsunni.id</a><br><div><a href="http://ismailsunni.wordpress.com" target="_blank">ismailsunni.wordpress.com</a></div></div></div></div></div></div>