Proj Crate

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.

4 points · 7 comments · view on lemmy.world

7 Comments

hub@news.cosocial.ca · 1 pts · 3y

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

Deebster@lemmyrs.org · 1 pts · 3y

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@chaos.social · 1 pts · 3y

@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.

chrysn@chaos.social · 1 pts · 3y
[ removed ]
wlinna@lemmyrs.org · 1 pts · 3y (1 reply)

Hello, does this comment solve your issue? I wrote this after solving the compilation issue on Windows myself

https://github.com/georust/proj/pull/79#issuecomment-1308751602

Kaiser@lemmy.world · 1 pts · 3y

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