View previous topic :: View next topic |
Author |
Message |
andersas n00b
Joined: 09 May 2009 Posts: 11
|
Posted: Mon May 07, 2012 6:40 am Post subject: [solved] qgis-1.7.0 fails to build |
|
|
Hi
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: |
[ 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'
|
If I do
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: | error: passing ‘const QgsSymbolV2’ as ‘this’ argument of ‘int QgsSymbolV2::renderHints()’ discards qualifiers |
I also can't compile version 1.4.0.
After 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?
Last edited by andersas on Mon May 07, 2012 6:54 am; edited 1 time in total |
|
Back to top |
|
|
andersas n00b
Joined: 09 May 2009 Posts: 11
|
Posted: Mon May 07, 2012 6:45 am Post subject: |
|
|
After som more digging and installing it without any problem on another machine, I found that
the culprit is the python use flag. Adding
Code: | sci-geosciences/qgis -python |
to /etc/portage/package.use solved the problem.
Is that not a bug? |
|
Back to top |
|
|
donc_oe n00b
Joined: 26 Feb 2012 Posts: 8
|
Posted: Tue Jan 01, 2013 4:10 pm Post subject: |
|
|
andersas wrote: | Is that not a bug? |
yes. that's a bug. the python USE flag ends up pulling in strange dependencies and the emerge most likely fails. this is a major problem in qgis currently.
i hope upgrading to qgis-1.8.0 will fix this. https://bugs.gentoo.org/show_bug.cgi?id=421093 |
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Thu Apr 04, 2013 12:22 am Post subject: |
|
|
I can confirm that qgis-1.8.0 builds cleanly without "-python". I haven't tested it yet - heck, I've never used any sort of GIS - this is going to be my learning vehicle. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
Frax n00b
Joined: 29 Aug 2003 Posts: 25
|
Posted: Wed Jul 02, 2014 2:54 pm Post subject: |
|
|
Found this topic looking for a solution to my QGIS 1.8.0 build problem. I still had to use -pyhton for it to work. _________________ Act safely, think dangerously. |
|
Back to top |
|
|
diablo465 Apprentice
Joined: 10 Sep 2013 Posts: 194
|
Posted: Mon May 18, 2015 3:00 am Post subject: |
|
|
Thanks guys, disable python also solves my problem |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon May 18, 2015 11:16 am Post subject: |
|
|
Why do you want to install qgis-1.8.0? It's outdated. Current version is 2.8: http://www.qgis.org/en/site/ |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|