<div style="font-family: 微软雅黑; font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5;"><span style="font-family: 宋体; font-size: medium; line-height: 25px;">I have succeeded in building QGIS 2.14.3 with QT4 in fedora 21, now I try to build</span><span style="font-family: 宋体; font-size: medium; line-height: 25px;"> QGIS 2.14.3 with QT 5 in fedora 21. After I run cmake:</span></div><div style="font-family: 微软雅黑; font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5;"><b style="line-height: 1.6;">cmake -DENABLE_QT5=ON -DWITH_QWTPOLAR=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_PYSPATIALITE=TRUE ..</b><br></div><div>it says:</div><div><br></div><div><div>The C compiler identification is GNU 4.9.2</div><div>-- The CXX compiler identification is GNU 4.9.2</div><div>-- Check for working C compiler: /usr/lib64/ccache/cc</div><div>-- Check for working C compiler: /usr/lib64/ccache/cc -- works</div><div>-- Detecting C compiler ABI info</div><div>-- Detecting C compiler ABI info - done</div><div>-- Check for working CXX compiler: /usr/lib64/ccache/c++</div><div>-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works</div><div>-- Detecting CXX compiler ABI info</div><div>-- Detecting CXX compiler ABI info - done</div><div>-- QGIS version: 2.14.3 Essen (21403)</div><div>-- Found GRASS 6: /usr/lib/grass (6.4.4, off_t size = )</div><div>-- Could not find GRASS 7</div><div>-- Looking for openpty</div><div>-- Looking for openpty - not found</div><div>-- Looking for openpty</div><div>-- Looking for openpty - found</div><div>-- Found Proj: /usr/lib64/libproj.so</div><div>-- Found GEOS: /usr/lib64/libgeos_c.so (3.4.2)</div><div>-- Found GDAL: /usr/lib64/libgdal.so (1.11.1)</div><div>-- Found Expat: /lib64/libexpat.so</div><div>-- Found Spatialindex: /usr/lib64/libspatialindex.so</div><div>-- Found Qwt: /usr/lib64/libqwt-qt5.so (6.1.1)</div><div>-- Found Sqlite3: /usr/lib64/libsqlite3.so</div><div>-- Found PostgreSQL: /usr/lib64/libpq.so</div><div>-- Found SpatiaLite: /usr/lib64/libspatialite.so</div><div>-- Looking for gaiaDropTable in /usr/lib64/libspatialite.so</div><div>-- Looking for gaiaDropTable in /usr/lib64/libspatialite.so - found</div><div>-- Looking for gaiaStatisticsInvalidate in /usr/lib64/libspatialite.so</div><div>-- Looking for gaiaStatisticsInvalidate in /usr/lib64/libspatialite.so - found</div><div>-- Looking for spatialite_init_ex in /usr/lib64/libspatialite.so</div><div>-- Looking for spatialite_init_ex in /usr/lib64/libspatialite.so - found</div><div>-- Found Qt version: 5.3.2</div><div>-- Touch support disabled</div><div>-- Found QScintilla2: /usr/lib64/libqscintilla2-qt5.so (2.8.4)</div><div>-- Found QCA: /usr/lib64/libqca-qt5.so (2.1.0)</div><div>-- <b>QtCore/QCA include/lib variables missing or CMake is cross-compiling,</b></div><div>--   skipping QCA OpenSSL plugin C++ check</div><div>-- Pedantic compiler settings enabled</div><div>-- Debug output enabled</div><div>-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.4.1", minimum required is "3") </div><div>-- Found Python executable: /usr/bin/python3</div><div>-- Found Python version: 3.4.1</div><div>-- Found Python library: /usr/lib64/libpython3.4m.so</div><div>-- Found PyQt5 version: 5.3.2</div><div>-- Found SIP version: 4.16.4</div><div>-- Found QScintilla2 PyQt module: qsci_version_str:</div><div><br></div><div>-- Found GSL: -lgsl -lgslcblas -lm</div><div>-- Looking for updwtmpx</div><div>-- Looking for updwtmpx - found</div><div>-- txt2tags not found - disabled</div><div>-- Found PythonInterp: /usr/bin/python3 (found version "3.4.1") </div><div>-- Qsci sip file not found - disabling bindings for derived classes</div><div>-- Ctest Binary Directory  set to: /root/qgis-2.14.3/build-master-qt5/output/bin</div><div>-- Configuring done</div><div>-- Generating done</div><div>-- Build files have been written to: /root/qgis-2.14.3/build-master-qt5</div></div><div><br></div><div>but when I run make such as :</div><div>make -j2</div><div><br></div><div>it ends with this error:</div><div><br></div><div><div>/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64/libqca-qt5.so:‘QtPrivate::QContainerImplHelper::mid(int, int*, int*)’<span style="color: rgb(51, 51, 51); font-family: arial; font-size: 18px; line-height: 20px;">Undefined references</span></div><div>collect2: Error:ld returns 1</div><div>src/crssync/CMakeFiles/crssync.dir/build.make:108: recipe for target 'output/bin/crssync' failed</div><div>make[2]: *** [output/bin/crssync] Error 1</div><div>CMakeFiles/Makefile2:2329: recipe for target 'src/crssync/CMakeFiles/crssync.dir/all' failed</div><div>make[1]: *** [src/crssync/CMakeFiles/crssync.dir/all] Error 2</div></div><div><br></div><div>I can not figure it out by myself, who can help me? </div><div><br><br><br><br></div><div id="signContainer"></div>