[Qgis-developer] Error happens when building QGIS 2.14.3 with QT5 in Fedora?

童言 tongyan.cherish at 139.com
Sat Jun 25 06:36:14 PDT 2016



I have succeeded in building QGIS 2.14.3 with QT4 in fedora 21, now I try to build QGIS 2.14.3 with QT 5 in fedora 21. After I run cmake:

cmake -DENABLE_QT5=ON -DWITH_QWTPOLAR=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_PYSPATIALITE=TRUE ..


it says:




The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- QGIS version: 2.14.3 Essen (21403)
-- Found GRASS 6: /usr/lib/grass (6.4.4, off_t size = )
-- Could not find GRASS 7
-- Looking for openpty
-- Looking for openpty - not found
-- Looking for openpty
-- Looking for openpty - found
-- Found Proj: /usr/lib64/libproj.so
-- Found GEOS: /usr/lib64/libgeos_c.so (3.4.2)
-- Found GDAL: /usr/lib64/libgdal.so (1.11.1)
-- Found Expat: /lib64/libexpat.so
-- Found Spatialindex: /usr/lib64/libspatialindex.so
-- Found Qwt: /usr/lib64/libqwt-qt5.so (6.1.1)
-- Found Sqlite3: /usr/lib64/libsqlite3.so
-- Found PostgreSQL: /usr/lib64/libpq.so
-- Found SpatiaLite: /usr/lib64/libspatialite.so
-- Looking for gaiaDropTable in /usr/lib64/libspatialite.so
-- Looking for gaiaDropTable in /usr/lib64/libspatialite.so - found
-- Looking for gaiaStatisticsInvalidate in /usr/lib64/libspatialite.so
-- Looking for gaiaStatisticsInvalidate in /usr/lib64/libspatialite.so - found
-- Looking for spatialite_init_ex in /usr/lib64/libspatialite.so
-- Looking for spatialite_init_ex in /usr/lib64/libspatialite.so - found
-- Found Qt version: 5.3.2
-- Touch support disabled
-- Found QScintilla2: /usr/lib64/libqscintilla2-qt5.so (2.8.4)
-- Found QCA: /usr/lib64/libqca-qt5.so (2.1.0)
-- QtCore/QCA include/lib variables missing or CMake is cross-compiling,
--   skipping QCA OpenSSL plugin C++ check
-- Pedantic compiler settings enabled
-- Debug output enabled
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.4.1", minimum required is "3") 
-- Found Python executable: /usr/bin/python3
-- Found Python version: 3.4.1
-- Found Python library: /usr/lib64/libpython3.4m.so
-- Found PyQt5 version: 5.3.2
-- Found SIP version: 4.16.4
-- Found QScintilla2 PyQt module: qsci_version_str:


-- Found GSL: -lgsl -lgslcblas -lm
-- Looking for updwtmpx
-- Looking for updwtmpx - found
-- txt2tags not found - disabled
-- Found PythonInterp: /usr/bin/python3 (found version "3.4.1") 
-- Qsci sip file not found - disabling bindings for derived classes
-- Ctest Binary Directory  set to: /root/qgis-2.14.3/build-master-qt5/output/bin
-- Configuring done
-- Generating done
-- Build files have been written to: /root/qgis-2.14.3/build-master-qt5





but when I run make such as :

make -j2




it ends with this error:




/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64/libqca-qt5.so:‘QtPrivate::QContainerImplHelper::mid(int, int*, int*)’Undefined references
collect2: Error:ld returns 1
src/crssync/CMakeFiles/crssync.dir/build.make:108: recipe for target 'output/bin/crssync' failed
make[2]: *** [output/bin/crssync] Error 1
CMakeFiles/Makefile2:2329: recipe for target 'src/crssync/CMakeFiles/crssync.dir/all' failed
make[1]: *** [src/crssync/CMakeFiles/crssync.dir/all] Error 2





I can not figure it out by myself, who can help me? 








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160625/53604136/attachment-0001.html>


More information about the Qgis-developer mailing list