项目作者: sailfishos-chum

项目描述 :
RPM packaging of Mapnik for Sailfish
高级语言:
项目地址: git://github.com/sailfishos-chum/mapnik.git
创建时间: 2017-04-03T18:20:58Z
项目社区:https://github.com/sailfishos-chum/mapnik

开源协议:MIT License

下载


pkg-mapnik

RPM packaging of Mapnik for Sailfish

Howto build

  • Clone this repository into a directory of your choice ${PKGMAPNIK}

  • Change into directory where repository is:

    1. cd ${PKGMAPNIK}
  • Select your target (available in /srv/mer/targets) in MerSDK/SailfishSDK ${SFARCH}

  • Build by running the following in MerSDK/SailfishSDK:

    1. mb2 -t ${SFARCH} -s rpm/mapnik.spec apply
    2. mb2 -t ${SFARCH} -s rpm/mapnik.spec build
  • RPMs will be created in RPMS directory, copy them elsewhere.

  • Repeat the build step for any other required targets. Note that apply is not required, or it will attempt to patch twice.

Please let me know if there are some errors (missing dependencies, for
example) during building by opening an issue for this repository.

Due to the bug in SDK, for i486 target, you have to install libraries that are not recognized as
shared libraries by SDK separately from sb2 after they are installed via mb2/sb2:

  1. [mersdk@SailfishSDK ~]$ sb2 -t SailfishOS-i486 ldd /usr/lib/libboost_regex.so.1.51.0
  2. not a dynamic executable
  3. [...]
  4. [mersdk@SailfishSDK ~]$ sudo zypper in boost-regex
  5. [mersdk@SailfishSDK ~]$ sb2 -t SailfishOS-i486 ldd /usr/lib/libboost_regex.so.1.51.0
  6. linux-gate.so.1 => (0x6f758000)
  7. libsb2.so.1 => /usr/lib/libsb2/libsb2.so.1 (0x6f5fb000)
  8. libicuuc.so.52 => /usr/lib/libicuuc.so.52 (0x6f48b000)
  9. libicui18n.so.52 => /usr/lib/libicui18n.so.52 (0x6f282000)
  10. libicudata.so.52 => /usr/lib/libicudata.so.52 (0x6dc16000)
  11. libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x6db2e000)
  12. libm.so.6 => /lib/libm.so.6 (0x6dae6000)
  13. libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x6dacd000)
  14. libc.so.6 => /lib/libc.so.6 (0x6d907000)
  15. libdl.so.2 => /lib/libdl.so.2 (0x6d902000)
  16. libpthread.so.0 => /lib/libpthread.so.0 (0x6d8e6000)
  17. /lib/ld-linux.so.2 (0x6f759000)
  18. [...]

Libraries that were affected by the bug: boost-regex, harfbuzz, boost-program-options, libtiff, and libjpeg-turbo