this post was submitted on 14 Jun 2023
4 points (100.0% liked)

Rust Lang

709 readers
1 users here now

Rules [Developing]

Observe our code of conduct

Constructive criticism only

No endless relitigation

No low-effort content

No memes or image macros

No NSFW Content

founded 1 year ago
MODERATORS
 

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.

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 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.

[–] [email protected] 1 points 1 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.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

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 1 points 1 year ago

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

[–] [email protected] 1 points 1 year ago

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

load more comments
view more: next ›