Open mkonik1 opened 1 year ago
I worked through the dependencies for building MapReady on a more-modern OS using Docker. There is a public docker image available now, or perhaps you can use my notes to move forward.
As it turns out, this error above requires utilizing a libgeotiff
version < v1.5
when PJ_CONTEXT
was introduced.
Also pay attention to the version of proj
you're installing. It MUST be < v6.0
.
The ./configure works fine, but when running make, I get this error: make[1]: Entering directory '/home/mk/ASF_MapReady/src/libasf_proj' gcc -O4 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_ISOC99_SOURCE -Dlinux -D_PKG_MAPREADY -DASF_LIL_ENDIAN -DASF_LIL_IEEE -I. -I../../include -DMAKE_VER -I/usr/include/hdf5/serial -I/usr/include/geotiff -I/usr/include/hdf5/serial "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1" -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/x86_64-linux-gnu -I/usr/include/geotiff -c -o geotiff_support.o geotiff_support.c In file included from geotiff_support.c:5: /usr/include/geotiff/geo_keyp.h:113:4: error: unknown type name ‘PJ_CONTEXT’ 113 | PJ_CONTEXT pj_context; / PROJ context */ | ^: geotiff_support.o] Error 1
make[1]: Leaving directory '/home/mk/ASF_MapReady/src/libasf_proj'
make: [Makefile:300: mapready] Error 2
~~~~~ make[1]: [Can you please help me address this issue? Thank you, Marta