Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error in Ubuntu 20.04 #505

Open
mkonik1 opened this issue Sep 22, 2023 · 1 comment
Open

Make error in Ubuntu 20.04 #505

mkonik1 opened this issue Sep 22, 2023 · 1 comment

Comments

@mkonik1
Copy link

mkonik1 commented Sep 22, 2023

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 */
| ^~~~~~~~~~
make[1]: *** [: geotiff_support.o] Error 1
make[1]: Leaving directory '/home/mk/ASF_MapReady/src/libasf_proj'
make: *** [Makefile:300: mapready] Error 2

Can you please help me address this issue?
Thank you,
Marta

@bbuechler
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants