Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Figure out how to properly build/bundle dependencies #125

Closed

Description

@kkaefer

We have quite a list of dependencies that we need to build for various platforms.

Platforms

  • Mac OS X: x86_64
  • Linux (Ubuntu/Debian/Arch): i386, x86_64 (?)
  • iOS: armv7, armv7s, arm64, i386 (for Simulator)
  • Android (?)
  • Linux/Tegra: armv7 with gnueabi, hard float

Future platforms:

  • Windows: x86_64, i386 (will require ANGLE)

Dependencies

Direct library dependencies

  • libuv: For event loop/threading support
  • libpng: Image decoding
  • libjpeg: Image decoding
  • boost geometry: Rtree (header only!)

Platform-specific dependencies

  • GLFW on OS X/Linux: We need the 3.1/master version because it supports glfwPostEmptyEvent. This is not released yet and
  • libcurl: For non-OS-X platforms (this one has a slew of SSL dependencies)

Building all dependencies

Dane got us started with using the mapnik-packaging scripts to build cross-platform (OS X + iOS) libpng libraries. I'm not sure what the best way to proceed here is: Do we build all of our dependencies ourselves (could get very ugly for libcurl), or do we try to link to as many system- or package management provided binaries as possible?

/cc @springmeyer @incanus @tmcw

Activity

  1. incanus commented on Apr 2, 2014

    @incanus
    Contributor

    Add x86_64 for iOS, as there is also a 64-bit simulator mode (so that's five architectures for iOS).

  2. springmeyer commented on Apr 4, 2014

    @springmeyer
    Contributor

    Do we build all of our dependencies ourselves (could get very ugly for libcurl)

    Yes, I think we do. I have no fear with libcurl. I will crush libcurl.

    The main question in my mind is whether we try to gypify all the things or depend on shell scripted pre-builds (using the build system that comes with a given dep) and then just expect built binaries to be available on CXXFLAGS/LDFLAGS (the approach of mapnik-packaging). I think we start with the latter and aim for the former eventually or when dead easy (libuv). What this means to me is that in the near term:

    • Add libuv to mapnik-packaging (difficulty: should be easy)
    • Add libcurl (and deps) to mapnik-packaging (difficulty: we'll see)
    • Add GLFW to mapnik-packaging (difficulty: no idea)
    • Add a bootstrap script to build all the deps for a given platform and modify the gyp configs for llmr to expect them
  3. kkaefer commented on Apr 4, 2014

    @kkaefer
    MemberAuthor
  4. kkaefer commented on Apr 4, 2014

    @kkaefer
    MemberAuthor

    @springmeyer Can we talk through this next week when we're in DC?

  5. springmeyer commented on Apr 4, 2014

    @springmeyer
    Contributor

    Sounds great @kkaefer

    On Apr 4, 2014, at 2:25 AM, Konstantin Käfer [email protected] wrote:

    @springmeyer Can we talk through this next week when we're in DC?

    —
    Reply to this email directly or view it on GitHub.

  6. springmeyer commented on Apr 9, 2014

    @springmeyer
    Contributor

    progress: libuv, openssl, curl, and glfw are now building well on osx, travis (ubuntu), and ios via in mapnik-packaging. Also a new linaro target is roughed out that should be a good starting point for targeting tegra. Next step is integration into llmr-native via a bootstrap script that builds on https://github.com/mapbox/llmr-native/blob/master/ios/setup_libpng.sh.

  7. kkaefer commented on Apr 9, 2014

    @kkaefer
    MemberAuthor

    Thanks, @springmeyer! I'm working on the integration in the libuv branch.

  8. kkaefer commented on Apr 17, 2014

    @kkaefer
    MemberAuthor

    We have the static library building in place now, but it takes a very long time to build all of it on travis. Instead, we should look into shipping pre-built binaries for Ubuntu (PPA?) and Mac OS X (custom hombrew tap).

  9. springmeyer commented on Apr 17, 2014

    @springmeyer
    Contributor

    Sounds like you are working on something like this already (from chat logs) but I've been feeling like just tarring up the build-* Mapnik-packaging creates would be a good next step. Then our llmr install instructions could depend on pulling down that folder of headers and prebuilt static libs for each platform.

  10. added this to the WWDC milestone on Apr 29, 2014
  11. incanus commented on May 26, 2014

    @incanus
    Contributor

    Correct me if I'm wrong, but this should be either a) closed or b) at least ok for the WWDC milestone since we can get up and running on iOS/OS X no problem with current scripts.

  12. yhahn commented on May 30, 2014

    @yhahn
    Contributor

    @springmeyer @incanus final review and then move out of milestone or close : )

  13. springmeyer commented on May 31, 2014

    @springmeyer
    Contributor

    This is all wrapped up - the magic/chaos all lives in setup-libraries.sh and can be run with make setup. Closing. Followup at #291

  14. added a commit that references this issue on Aug 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions