Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677260 - sci-geosciences/viking USE=mapnik - configure: error: mapnik/map.hpp is needed but not found - you will need to install package 'libmapnik-dev' or similar. The feature can be disabled with --disable-mapnik
Summary: sci-geosciences/viking USE=mapnik - configure: error: mapnik/map.hpp is neede...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-04 18:15 UTC by Vincent-Xavier JUMEL
Modified: 2021-03-12 09:30 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_677260.txt,22.70 KB, text/plain)
2019-02-04 18:17 UTC, Vincent-Xavier JUMEL
Details
build.log (file_677260.txt,12.06 KB, text/plain)
2019-02-04 18:17 UTC, Vincent-Xavier JUMEL
Details
build.log (build.log,10.30 KB, text/x-log)
2019-02-24 11:13 UTC, dawgg
Details
emerge --info (emg.info,6.13 KB, application/x-info)
2019-02-24 11:14 UTC, dawgg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent-Xavier JUMEL 2019-02-04 18:15:55 UTC
Though sci-geosciences/mapnik-3.0.18 is installed, viking ./configure complains about missing mapnik hpp headers.
Comment 1 Vincent-Xavier JUMEL 2019-02-04 18:17:09 UTC
Created attachment 563726 [details]
emerge --info
Comment 2 Vincent-Xavier JUMEL 2019-02-04 18:17:45 UTC
Created attachment 563728 [details]
build.log
Comment 3 dawgg 2019-02-24 11:10:27 UTC
exact same error here with sci-geosciences/mapnik-3.0.18 installed as dep

checking mapnik/map.hpp usability... no
checking mapnik/map.hpp presence... no
checking for mapnik/map.hpp... no
configure: error: mapnik/map.hpp is needed but not found - you will need to install package 'libmapnik-dev' or similar. The feature can be disabled with --disable-mapnik

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sci-geosciences/viking-1.7/work/viking-1.7/config.log
 * ERROR: sci-geosciences/viking-1.7::gentoo failed (configure phase):
Comment 4 dawgg 2019-02-24 11:13:05 UTC
Created attachment 566318 [details]
build.log

build.log
sci-geosciences/viking-1.7:0/0::gentoo
Comment 5 dawgg 2019-02-24 11:14:29 UTC
Created attachment 566320 [details]
emerge --info

emerge --info
Comment 6 dawgg 2019-02-26 11:18:35 UTC
the reason for this error is in some misplaced/misreferenced files belonging to  sci-geosciences/mapnik-3.0.18.
it seems configure expects files in /usr/include/mapnik/util/mapbox/ but the mapnik-installation from portage puts the files into /usr/include/mapnik/mapbox/.
I found out by running the configure-script from the source manually and checking config.log; the errormsg emitted by ./configure is misleading.

i could compile it manually and with portage by putting full paths into
/usr/include/mapnik/util/variant.hpp and
/usr/include/mapnik/util/mapbox/variant.hpp (dir mapbox/ copied into dir util/)
which is certainly not the right way but might give some hints fixing this.
Comment 7 milev.philip 2020-05-07 06:26:02 UTC
I ran into the exact same error, when tried to build viking. I think the issue is how mapnik is deploying their includes. I added https://github.com/mapnik/mapnik/issues/4141
Comment 8 Hans de Graaff gentoo-dev Security 2021-03-12 09:30:20 UTC
mapnik is no longer packaged in gentoo and viking 1.8 consequently no longer has support for it.