pietern / goestools

Tools to work with signals and files from GOES satellites
https://pietern.github.io/goestools/
BSD 2-Clause "Simplified" License
374 stars 83 forks source link

Upgrade proj bindings #130

Closed pietern closed 9 months ago

pietern commented 2 years ago

The proj API has changed in version 5 (see https://proj.org/development/migration.html).

Backwards compatibility works until version 7.

Ubuntu 22.04 will ship with proj version 8 where this no longer works (see compilation failure).

Both bindings can coexist and used based on PROJ_VERSION_MAJOR.

soxrok2212 commented 2 years ago

Bumping this as building is broken in Ubuntu 22.04 (now that its officially been released, of course).

In file included from /home/dev/goestools/src/goesproc/map_drawer.h:5,
                 from /home/dev/goestools/src/goesproc/handler_goesn.cc:12:
/home/dev/goestools/src/goesproc/proj.h:16:10: fatal error: proj_api.h: No such file or directory
   16 | #include <proj_api.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/goesproc/CMakeFiles/goesproc.dir/build.make:174: src/goesproc/CMakeFiles/goesproc.dir/handler_goesn.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:2398: src/goesproc/CMakeFiles/goesproc.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
pietern commented 9 months ago

This was fixed in #148 and #167.