Has anyone managed to build the proj crate, I’ve tried on windows and on Ubuntu but always seem to have some problem with the proj-sys crate building proj from source.

  • Deebster
    link
    fedilink
    English
    11 year ago

    The seem to be working on getting it working on Windows right now: Windows builder in CI but I assume on linux it should be fine.

    I don’t have any experience with that crate myself.

  • chrysn
    link
    fedilink
    11 year ago

    @Kaiser If you run into trouble with something-sys, you should check whether that crate requires libsomething headers to be installed. (cargo will take care of dependencies, but only within Rust, it can’t install arbitrary C libraries). On Ubuntu, you’ll need to run sudo apt install libproj-dev (maybe also libtiff-dev) to get these headers.

    • @KaiserOP
      link
      English
      11 year ago

      Thanks for the response, never got it quite working on windows but rebuilding my Ubuntu is seemed to do the trick.

  • Hub
    link
    fedilink
    English
    11 year ago

    Just created a new crate and added proj, and then cargo build. And it works. proj-sys did build.