Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[solved] qgis-1.7.0 fails to build

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
andersas
n00b
n00b
Posts: 11
Joined: Sat May 09, 2009 7:19 pm

[solved] qgis-1.7.0 fails to build

  • Quote

Post by andersas » Mon May 07, 2012 6:40 am

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: 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'
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: Select all

 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.
Top
andersas
n00b
n00b
Posts: 11
Joined: Sat May 09, 2009 7:19 pm

  • Quote

Post by andersas » Mon May 07, 2012 6:45 am

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: Select all

sci-geosciences/qgis -python
to /etc/portage/package.use solved the problem.

Is that not a bug?
Top
donc_oe
n00b
n00b
Posts: 8
Joined: Sun Feb 26, 2012 9:58 pm
Contact:
Contact donc_oe
Website

  • Quote

Post by donc_oe » Tue Jan 01, 2013 4:10 pm

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
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Thu Apr 04, 2013 12:22 am

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
Top
Frax
n00b
n00b
User avatar
Posts: 25
Joined: Fri Aug 29, 2003 2:42 am

  • Quote

Post by Frax » Wed Jul 02, 2014 2:54 pm

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.
Top
diablo465
Apprentice
Apprentice
Posts: 194
Joined: Tue Sep 10, 2013 11:00 am

  • Quote

Post by diablo465 » Mon May 18, 2015 3:00 am

Thanks guys, disable python also solves my problem
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Mon May 18, 2015 11:16 am

Why do you want to install qgis-1.8.0? It's outdated. Current version is 2.8: http://www.qgis.org/en/site/
Top
Post Reply

7 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic