Comments (7)
I've reproduced this. Taking a look now.
from proj.
I haven't solved this yet, but some notes:
On arm64 mac:
- Reproduced this failure using homebrew proj (7.2.1)
- Reproduced this failure using bundled proj (7.1.0)
- This first required resolving a "'libtiff' couldn't be found" compiler error. I think this was due to homebrew switching it's root from /usr/local -> /opt/homebrew.
- Successfully built and passed test suite using homebrew proj 7.2.1 on rosetta (x86_64 emulator) and x86_64 toolchain
from proj.
I made a minimal reproduction of the issue here: https://github.com/georust/proj/blob/frewsxcv-min/src/main.rs in this draft PR #63
I have absolutely no idea what's going on 😔
from proj.
I think we should cast the net wider and see whether the PROJ maintainers (or anyone else in the community) have begun to test on M1, and if they have, whether they can repro this using analogous c or cpp (which I cannot write at all) wrapping the API calls. I just don't see what's wrong on the Rust side.
from proj.
I don't currently have access to my M1 machine, but IIRC I was able to build and pass the proj test suite (the c++ one).
I think it was as simple as running ctest
from the root of the libproj directory, but my memory is fickle.
My best guess was that it had to do with how we were managing pointers, similar to what @urschrei fixed in #56 but I don't yet have any real evidence or solution.
from proj.
This is probably the underlying bug: rust-lang/rust-bindgen#1973
from proj.
This is probably the underlying bug: rust-lang/rust-bindgen#1973
Confirmed this is the bug. I got tests passing on my Macbook Air M1 with these changes: #65
from proj.
Related Issues (20)
- Clarify "network" feature is required for TIFF support HOT 2
- `Send` and `Sync` HOT 6
- Add "Geospatial" category to `Cargo.toml`
- New tiff feature flag should be plumbed from proj to proj-sys
- Need ability to convert 3D coordinates HOT 4
- Bug in conversion from "OGC:CRS84" to "EPSG:3395" HOT 5
- How to build for windows? HOT 3
- proj-sys errors in build with gcc-13
- Windows builder in CI HOT 12
- Inconsistent transformations of coords between OSX and ubuntu HOT 9
- Proj isnt compiling in docker container, but does locally HOT 12
- Update to libproj 9.3.1 HOT 2
- Expose conversion to WKT and PROJJSON HOT 1
- Specify CMAKE release type in proj-sys?
- home crate (bindgen dependency) requires MSRV 1.70 HOT 4
- Investigate the possibility of replacing reqwest with ureq
- Puzzled about how to create projection
- Problem when using bundled_proj feature
- Missing include of cstdint HOT 1
- The network handler should reuse the HTTP client
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proj.