Red Hat Bugzilla – Bug 463072
Missing mapnik.pc so mapnik-demo won't build
Last modified: 2008-09-28 14:44:09 EDT
This bug refers to mapnik-0.5.1-4.fc10.src.rpm from the development SRPMS directory. I built it on Fedora 9.
None of the packages built from this source RPM include a mapnik.pc file for pkg-config. But mapnik-demo (one of the packages built from the source RPM) requires mapnik.pc to build the example program.
% rpmbuild --rebuild mapnik-0.5.1-4.fc10.src.rpm
% sudo rpm -Uvh wherever/mapnik-*.rpm
% cp -r /usr/share/doc/mapnik-demo-0.5.1/ .
% cd mapnik-demo-0.5.1/c++
g++ `pkg-config --cflags mapnik freetype2` -Wall -c -o rundemo.o rundemo.cpp
Package mapnik was not found in the pkg-config search path.
Perhaps you should add the directory containing `mapnik.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mapnik' found
% for i in `rpm -qa | grep ^mapnik`; do rpm -ql $i | grep mapnik.pc; done
mapnik-0.5.2-0.4.svn738.fc9 has been submitted as an update for Fedora 9.
mapnik-0.5.2-0.4.svn738.fc8 has been submitted as an update for Fedora 8.
This no longer occurs with mapnik-0.5.2-0.4.svn738.fc9.x86_64 from Fedora 9 updates (and the corresponding mapnik-demo).
However mapnik-demo has some further dependencies such as unicode/unistr.h which are needed to build it. It might be a good idea to add dependencies to the mapnik-demo package so it pulls in everything you need to build the demo programs.
mapnik-0.5.2-0.4.svn738.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
mapnik-0.5.2-0.4.svn738.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.