【问题标题】:building a mapnik 2.2.0 RPM on RHEL 7在 RHEL 7 上构建 mapnik 2.2.0 RPM
【发布时间】:2015-09-17 15:29:35
【问题描述】:

我正在尝试在我的 RHEL/CENTOS 7 机器上构建 mapnik 2.2.0 RPM 文件。 所以我从 Fedora 22 获取了 RPM SRC 文件,即 mapnik-2.2.0-11.fc21.src.rpm (我的结果与 mapnik-2.2.0-5.fc20.src.rpm 相同) 当我运行 rpmbuild 时,我收到以下错误消息:

Welcome to Mapnik...

scons: warning: Ignoring missing SConscript 'deps/agg/build.py'
 File "/root/rpmbuild/BUILD/mapnik-v2.2.0/SConstruct", line 1799, in <module>

scons: warning: Ignoring missing SConscript 'deps/mapnik/build.py'
 File "/root/rpmbuild/BUILD/mapnik-v2.2.0/SConstruct", line 1808, in   <module>
 scons: done reading SConscript files.
 scons: Building targets ...
 g++ -o bindings/python/mapnik_building_symbolizer.os -c -ansi -Wall -pthread  -ftemplate-depth-300 -O3 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2  -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fno-strict-aliasing -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -fPIC -DHAVE_JPEG -DMAPNIK_USE_PROJ4 -DHAVE_PNG -DHAVE_TIFF -DBIGINT -DBOOST_REGEX_HAS_ICU -DLINUX -DMAPNIK_THREADSAFE -DNDEBUG -DHAVE_CAIRO -DHAVE_PYCAIRO -I. -Iinclude -I/usr/include/polyclipping -I/usr/include/agg2 -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/python2.7 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/pycairo bindings/python/mapnik_building_symbolizer.cpp
In file included from include/mapnik/symbolizer.hpp:29:0,
             from include/mapnik/building_symbolizer.hpp:29,
             from bindings/python/mapnik_building_symbolizer.cpp:26:
include/mapnik/image_compositing.hpp:74:19: error: 'comp_op_grain_merge' is not a member of 'agg'
 grain_merge = agg::comp_op_grain_merge,
               ^
include/mapnik/image_compositing.hpp:75:21: error: 'comp_op_grain_extract' is not a member of 'agg'
 grain_extract = agg::comp_op_grain_extract,
                 ^
scons: *** [bindings/python/mapnik_building_symbolizer.os] Error 1
scons: building terminated because of errors.
error: Bad exit status from /var/tmp/rpm-tmp.kuI6KW (%build)


RPM build errors:
       Bad exit status from /var/tmp/rpm-tmp.kuI6KW (%build)

【问题讨论】:

    标签: rpmbuild mapnik rhel7


    【解决方案1】:

    Mapnik 通常在其源代码树中带有 AGG 库的大量修补版本。然而,Fedora 构建禁用了这一点,而是将 Mapnik-AGG 补丁直接放在它自己的 AGG 包中(因为他们不喜欢在其他地方复制系统库)。

    您要么需要一个与修补过的 Fedora 版本功能兼容的 CentOS AGG 库,要么您必须修改 Mapnik 构建以禁用“system_agg”补丁(并从规范文件)。

    【讨论】:

      猜你喜欢
      • 2014-11-10
      • 2021-05-11
      • 2013-01-08
      • 2015-04-25
      • 1970-01-01
      • 2015-05-21
      • 2015-08-17
      • 1970-01-01
      • 2016-02-17
      相关资源
      最近更新 更多