Running an
emerge qgis
on my otherwise up to date and functioning gentoo system
gives the following error (with MAKEOPTS="-j 1" in make.conf):
Code: Select all
[ 68%] Building CXX object python/CMakeFiles/python_module_qgis_analysis.dir/analysis/sipanalysispart3.cpp.o
Linking CXX shared library analysis.so
[ 68%] Built target python_module_qgis_analysis
[ 68%] Generating core/sipcorepart0.cpp, core/sipcorepart1.cpp, core/sipcorepart2.cpp, core/sipcorepart3.cpp
sip: Deprecation warning: /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/core/core.sip:2: %Module version number should be specified using the 'version' argument
sip: Deprecation warning: /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/core/qgsnetworkaccessmanager.sip:36: Annotation is invalid
Scanning dependencies of target python_module_qgis_core
[ 68%] Building CXX object python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart0.cpp.o
[ 69%] Building CXX object python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart1.cpp.o
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp: In function ‘PyObject* meth_QgsSymbolV2_renderHints(PyObject*, PyObject*)’:
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:6671:42: error: passing ‘const QgsSymbolV2’ as ‘this’ argument of ‘int QgsSymbolV2::renderHints()’ discards qualifiers
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp: In function ‘PyObject* meth_QgsSymbolV2RenderContext_setSelected(PyObject*, PyObject*)’:
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:7069:35: error: passing ‘const QgsSymbolV2RenderContext’ as ‘this’ argument of ‘void QgsSymbolV2RenderContext::setSelected(bool)’ discards qualifiers
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp: In function ‘PyObject* meth_QgsVectorLayer_addAttribute(PyObject*, PyObject*)’:
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:21650:50: warning: ‘bool QgsVectorLayer::addAttribute(QString, QString)’ is deprecated (declared at /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/../src/core/qgsvectorlayer.h:510)
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp: In function ‘PyObject* meth_QgsVectorFileWriter_writeAsShapefile(PyObject*, PyObject*)’:
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:23471:87: warning: ‘static QgsVectorFileWriter::WriterError QgsVectorFileWriter::writeAsShapefile(QgsVectorLayer*, const QString&, const QString&, const QgsCoordinateReferenceSystem*, bool, QString*, const QStringList&, const QStringList&)’ is deprecated (declared at /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/../src/core/qgsvectorfilewriter.h:61)
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp: In member function ‘virtual bool sipQgsVectorDataProvider::addAttributes(const QMap<QString, QString>&)’:
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:24555:55: warning: ‘virtual bool QgsVectorDataProvider::addAttributes(const QMap<QString, QString>&)’ is deprecated (declared at /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/../src/core/qgsvectordataprovider.h:245)
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp: In function ‘PyObject* meth_QgsVectorDataProvider_addAttributes(PyObject*, PyObject*)’:
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:25942:87: warning: ‘virtual bool QgsVectorDataProvider::addAttributes(const QMap<QString, QString>&)’ is deprecated (declared at /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/../src/core/qgsvectordataprovider.h:245)
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:25942:116: warning: ‘virtual bool QgsVectorDataProvider::addAttributes(const QMap<QString, QString>&)’ is deprecated (declared at /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/../src/core/qgsvectordataprovider.h:245)
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp: In function ‘PyObject* meth_QgsVectorDataProvider_supportedNativeTypes(PyObject*, PyObject*)’:
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:26347:84: warning: ‘const QMap<QString, QVariant::Type>& QgsVectorDataProvider::supportedNativeTypes() const’ is deprecated (declared at /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/../src/core/qgsvectordataprovider.h:355)
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp: In function ‘PyObject* meth_QgsCoordinateReferenceSystem_createFromEpsg(PyObject*, PyObject*)’:
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:31130:47: warning: ‘bool QgsCoordinateReferenceSystem::createFromEpsg(long int)’ is deprecated (declared at /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/../src/core/qgscoordinatereferencesystem.h:122)
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp: In function ‘PyObject* meth_QgsCoordinateReferenceSystem_epsg(PyObject*, PyObject*)’:
/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0_build/python/core/sipcorepart1.cpp:31439:35: warning: ‘long int QgsCoordinateReferenceSystem::epsg() const’ is deprecated (declared at /var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0/python/../src/core/qgscoordinatereferencesystem.h:266)
make[2]: *** [python/CMakeFiles/python_module_qgis_core.dir/core/sipcorepart1.cpp.o] Error 1
make[1]: *** [python/CMakeFiles/python_module_qgis_core.dir/all] Error 2
make: *** [all] Error 2
emake failed
* ERROR: sci-geosciences/qgis-1.7.0 failed (compile phase):
* Make failed!
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 5199: Called cmake-utils_src_compile
* environment, line 1252: Called _execute_optionaly 'src_compile'
* environment, line 384: Called enable_cmake-utils_src_compile
* environment, line 1501: Called cmake-utils_src_make
* environment, line 1271: Called die
* The specific snippet of code:
* emake "$@" || die "Make failed!";
*
* If you need support, post the output of 'emerge --info =sci-geosciences/qgis-1.7.0',
* the complete build log and the output of 'emerge -pqv =sci-geosciences/qgis-1.7.0'.
* The complete build log is located at '/var/tmp/portage/sci-geosciences/qgis-1.7.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sci-geosciences/qgis-1.7.0/temp/environment'.
* S: '/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0'
>>> Failed to emerge sci-geosciences/qgis-1.7.0, Log file:
>>> '/var/tmp/portage/sci-geosciences/qgis-1.7.0/temp/build.log'
* Messages for package sci-geosciences/qgis-1.7.0:
* ERROR: sci-geosciences/qgis-1.7.0 failed (compile phase):
* Make failed!
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 5199: Called cmake-utils_src_compile
* environment, line 1252: Called _execute_optionaly 'src_compile'
* environment, line 384: Called enable_cmake-utils_src_compile
* environment, line 1501: Called cmake-utils_src_make
* environment, line 1271: Called die
* The specific snippet of code:
* emake "$@" || die "Make failed!";
*
* If you need support, post the output of 'emerge --info =sci-geosciences/qgis-1.7.0',
* the complete build log and the output of 'emerge -pqv =sci-geosciences/qgis-1.7.0'.
* The complete build log is located at '/var/tmp/portage/sci-geosciences/qgis-1.7.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sci-geosciences/qgis-1.7.0/temp/environment'.
* S: '/var/tmp/portage/sci-geosciences/qgis-1.7.0/work/qgis-1.7.0'
ACCEPT_KEYWORDS="~amd64" emerge qgis (to get qgis 1.7.3)
it gives more or less the same error, that is a lot of
Code: Select all
error: passing ‘const QgsSymbolV2’ as ‘this’ argument of ‘int QgsSymbolV2::renderHints()’ discards qualifiersAfter som searching I found that there had been a problem with qgis and newer sip versions, so
i tried installing with sip-4.11.2 but the results are the same.
How can I install this program?


