[Qgis-user] Building QGIS 2.14.3 from source in Fedora 19, it breaks duetoSegmentation fault when it runs?
童言
tongyan.cherish at 139.com
Sat Jun 4 03:32:32 PDT 2016
I try to build QGIS 2.14.3 from source in Fedora 19, but it breaks due to Segmentation fault when it runs, so why it happens?.
The details are as follows:
First I run yum-builddep qgis-2.14.3-1.fc24.src.rpm in Fedora 19, then it says this:
PyQt4-devel
PyQwt-devel
bison
cmake
desktop-file-utils
expat-devel
fcgi-devel
flex
gdal-devel
geos-devel
grass-devel
gsl-devel
libspatialite-devel
postgresql-devel
proj-devel
python-devel
qca2-devel
qextserialport-devel
qscintilla-devel
qscintilla-python-devel
qt4-devel
qt4-webkit-devel
qwt-devel
qwtpolar-devel-1.0.1-2.fc19.1.i686
sip-devel
spatialindex-devel
sqlite-devel
Further I complete to install all build required packages:
Getting requirements for qgis-2.14.3-1.fc24.src
--> Already installed : PyQt4-devel-4.10.1-4.fc19.i686
--> Already installed : PyQwt-devel-5.2.0-20.fc19.2.i686
--> Already installed : bison-2.6.4-2.fc19.i686
--> Already installed : cmake-2.8.11-1.fc19.i686
--> Already installed : desktop-file-utils-0.21-2.fc19.i686
--> Already installed : expat-devel-2.1.0-5.fc19.i686
--> Already installed : fcgi-devel-2.4.0-20.fc19.i686
--> Already installed : flex-2.5.37-1.fc19.i686
--> Already installed : gdal-devel-1.9.2-5.fc19.i686
--> Already installed : geos-devel-3.4.2-1.f19.i686
--> Already installed : grass-devel-6.4.3-5.fc19.i686
--> Already installed : gsl-devel-1.15-8.fc19.i686
--> Already installed : libspatialite-devel-4.1.1-1.fc19.i686
--> Already installed : postgresql-devel-9.2.4-1.fc19.i686
--> Already installed : proj-devel-4.8.0-4.fc19.i686
--> Already installed : python-devel-2.7.5-15.fc19.i686
--> Already installed : qca2-devel-2.0.3-5.fc19.i686
--> Already installed : qextserialport-devel-1.2-0.3.beta2.fc19.i686
--> Already installed : qscintilla-devel-2.7.1-1.fc19.i686
--> Already installed : qscintilla-python-devel-2.7.1-1.fc19.noarch
--> Already installed : qt-devel-4.8.4-19.fc19.i686
--> Already installed : qtwebkit-devel-2.3.1-1.fc19.i686
--> Already installed : qwt-devel-6.0.1-3.nk.1.i686
--> Already installed : qwtpolar-devel-1.0.1-2.fc19.1.i686
--> Already installed : sip-devel-4.14.6-1.fc19.i686
--> Already installed : spatialindex-devel-1.8.0-2.fc19.i686
--> Already installed : sqlite-devel-3.7.17-1.fc19.i686
Futher more I creat a build directory and run cmake:
mkdir build-master
cd build-master
cmake -D CMAKE_BUILD_TYPE=RelWithDebIn ..
Then it says this:
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/lib/ccache/cc
-- Check for working C compiler: /usr/lib/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/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.3, 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/lib/libproj.so
-- Found GEOS: /usr/lib/libgeos_c.so (3.4.2)
-- Found GDAL: /usr/lib/libgdal.so (1.9.2)
-- Found Expat: /lib/libexpat.so
-- Found Spatialindex: /usr/lib/libspatialindex.so
-- Found Qwt: /usr/lib/libqwt.so (6.0.1)
-- Found Sqlite3: /usr/lib/libsqlite3.so
-- Found PostgreSQL: /usr/lib/libpq.so
-- Found SpatiaLite: /usr/lib/libspatialite.so
-- Looking for gaiaDropTable in /usr/lib/libspatialite.so
-- Looking for gaiaDropTable in /usr/lib/libspatialite.so - found
-- Looking for gaiaStatisticsInvalidate in /usr/lib/libspatialite.so
-- Looking for gaiaStatisticsInvalidate in /usr/lib/libspatialite.so - not found
-- Looking for spatialite_init_ex in /usr/lib/libspatialite.so
-- Looking for spatialite_init_ex in /usr/lib/libspatialite.so - found
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.8.4", minimum required is "4.8.0")
-- Found Qt version: 4.8.4
-- Touch support disabled
-- Found QScintilla2: /usr/lib/libqscintilla2.so (2.7.1)
-- Found QCA: /usr/lib/libqca.so (2.0.3)
-- Found QCA OpenSSL plugin
-- Pedantic compiler settings enabled
-- Debug output enabled
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.5", minimum required is "2.7")
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.5", minimum required is "2")
-- Found Python executable: /usr/bin/python2.7
-- Found Python version: 2.7.5
-- Found Python library: /usr/lib/libpython2.7.so
-- Found PyQt4 version: 4.10.1
-- Found SIP version: 4.14.6
-- Found QScintilla2 PyQt module: qsci_version_str:
-- Found QwtPolar: /usr/lib/libqwtpolar.so
-- Found GSL: -lgsl -lgslcblas -lm
-- Looking for updwtmpx
-- Looking for updwtmpx - found
-- txt2tags not found - disabled
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.5")
-- Ctest Binary Directory set to: /root/qgis-2.14.3/build-master/output/bin
-- Configuring done
-- Generating done
-- Build files have been written to: /root/qgis-2.14.3/build-master
Now I start to complile:
make -j2
Then it is done with some warnings:
[21%] /root/qgis-2.14.3/src/core/qgsexpression_texts.cpp: in the Static member function‘static void QgsExpression::initFunctionHelp()’:
/root/qgis-2.14.3/src/core/qgsexpression_texts.cpp:5:6:
note: variable tracking size limit exceeded with-fvar-tracking-assignments, retrying without
void QgsExpression::initFunctionHelp()
[21%]/root/qgis-2.14.3/src/core/qgsproject.cpp: in the member function 'QgsProject: write: bool ()':
/root/qgis-2.14.3/src/core/qgsproject.cpp:1150:50: warning: in the {} 'QFileInfo:: lastRead (s) const).QDateTime:: ToTime_t t ()' from the 'uint {aka unsigned int}' into narrow type 'time t {aka long int}' [-Wnarrowing]
Utimbuf TB struct = {fi.lastRead ().ToTime_t () fi.lastModified (),.ToTime_t () ()}
/root/qgis-2.14.3/src/core/qgsproject.cpp:1150:80: warning: in the {} 'QFileInfo:: LastModified () (const).QDateTime:: ToTime_t t ()' from the 'uint {aka unsigned int}' into narrow type 'time t {aka long int}' [-Wnarrowing]
Utimbuf TB struct = {fi.lastRead ().ToTime_t () fi.lastModified (),.ToTime_t () ()}
[67%]/root/qgis-2.14.3/src/providers/grass/qgsgrass.cpp: in the static member function 'bool QgsGrass:: mapRegion (QgsGrassObject:: Type, QString, QString, QString, QString, Cell_head*)', 'static':
/root/qgis-2.14.3/src/providers/grass/qgsgrass.cpp:1893:22: warning: variable 'Map' can be tampered by 'longjmp' or 'VFORK' [-Wclobbered]
struct Map_info *Map = 0
[68%]/root/qgis-2.14.3/src/providers/grass/qgsgrassprovider.cpp: in the member function void QgsGrassProvider::onFeatureDeleted(QgsFeatureId)’:
/root/qgis-2.14.3/src/providers/grass/qgsgrassprovider.cpp:1551:7: warning:variable‘layerField’can be tampered by‘longjmp’or‘vfork’ [-Wclobbered]
int layerField = 0
[68%]/root/qgis-2.14.3/src/providers/grass/qgsgrassvector.cpp: in the member function 'QgsGrassVector: openHead: bool ()':
/root/qgis-2.14.3/src/providers/grass/qgsgrassvector.cpp:232:20: warning: variable 'map' can be tampered by 'longjmp' or 'VFORK' [-Wclobbered]
struct Map_info *map = 0
[82%]In file included from /root/qgis-2.14.3/src/app/qgslabelinggui.h:23:0,
from /root/qgis-2.14.3/src/app/qgslabelinggui.cpp:18:
/root/qgis-2.14.3/build-master/src/app/../ui/ui_qgslabelingguibase.h: in the member function‘void Ui_QgsLabelingGuiBase::setupUi(QWidget*)’中:
/root/qgis-2.14.3/build-master/src/app/../ui/ui_qgslabelingguibase.h:584:10: note: variable tracking size limit exceeded with-fvar-tracking-assignments, retrying without
void setupUi(QWidget *QgsLabelingGuiBase)
[86%]In file included from /root/qgis-2.14.3/src/app/qgsoptions.h:22:0,
from /root/qgis-2.14.3/src/app/qgsoptions.cpp:20:
/root/qgis-2.14.3/build-master/src/app/../ui/ui_qgsoptionsbase.h: in the member function‘void Ui_QgsOptionsBase::setupUi(QDialog*)’中:
/root/qgis-2.14.3/build-master/src/app/../ui/ui_qgsoptionsbase.h:632:10: note: variable tracking size limit exceeded with-fvar-tracking-assignments, retrying without
void setupUi(QDialog *QgsOptionsBase)
Now I run it from the build directory,then it breaks due to Segmentation fault like this :
[root at localhost build-master]# ./output/bin/qgis
...
Warning: loading of qgis translation failed [/root/qgis-2.14.3/build-master/output/i18n/qgis_zh_CN]
...
Warning: QCss::Parser - Failed to load file "/style.qss"
...
Warning: QFileSystemWatcher: failed to add paths: /root/.qgis2//project_templates
...
Warning: QString::arg: Argument missing: can not resolve the symbol “type” in type:/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libbasicauthmethod.so, (/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libbasicauthmethod.so: undefined symbol: type)
...
Warning: QString::arg: Argument missing: can not resolve the symbol “isProvider” in isProvider:/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libbasicauthmethod.so, (/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libbasicauthmethod.so: undefined symbol: isProvider)
Warning: QString::arg: Argument missing: can not resolve the symbol “type” in type:/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so, (/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so: undefined symbol: type)
Warning: QString::arg: Argument missing: can not resolve the symbol “databaseDrivers” in databaseDrivers:/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so, (/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so: undefined symbol: databaseDrivers)
Warning: QString::arg: Argument missing: can not resolve the symbol “directoryDrivers” in directoryDrivers:/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so, (/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so: undefined symbol: directoryDrivers)
Warning: QString::arg: Argument missing: can not resolve the symbol “protocolDrivers” in protocolDrivers:/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so, (/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so: undefined symbol: protocolDrivers)
Warning: QString::arg: Argument missing: can not resolve the symbol “fileVectorFilters” in fileVectorFilters:/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so, (/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so: undefined symbol: fileVectorFilters)
Warning: QString::arg: Argument missing: can not resolve the symbol “buildSupportedRasterFileFilter” in buildSupportedRasterFileFilter:/root/qgis-2.14.3/build-master/output/lib/qgis/plugins/libdelimitedtextprovider.so,
to be continued (1/3)..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160604/0beec062/attachment.html>
More information about the Qgis-user
mailing list