georust / proj

Rust bindings for the latest stable release of PROJ
https://docs.rs/proj
Apache License 2.0
137 stars 43 forks source link

Missing include of cstdint #203

Closed HalfVoxel closed 2 months ago

HalfVoxel commented 2 months ago

When I try to build from the base docker image of FROM ghcr.io/osgeo/gdal:ubuntu-full-3.9.0 or FROM ubuntu:24.04 I get the error:

  In file included from /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proj-sys-0.23.1/PROJSRC/proj/proj-9.0.1/src/proj_json_streaming_writer.cpp:34:
  /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proj-sys-0.23.1/PROJSRC/proj/proj-9.0.1/src/proj_json_streaming_writer.hpp:42:14: error: 'int64_t' in namespace 'std' does not name a type
     42 | typedef std::int64_t GIntBig;

It seems to be because this file does not have #include <cstdint>.

HalfVoxel commented 2 months ago

Looks like this has already been addressed in an unreleased version.