Skip to content
Advertisement

No path in “pkg-config proj –libs” – Known problem of “proj_api.h not found in standard or given locations”

No clue why this: pkg-config proj --libs

gives: -lproj

when it should be: -L/usr/lib/x86_64-linux-gnu -lproj

because proj.pc is in /usr/lib/x86_64-linux-gnu/pkgconfig/

Now, is this problem related to proj_api.h not found in standard or given locations? My LMint 20.1 does not find that. I keep getting:

JavaScript

Even though proj_api.h is here:

JavaScript

Is this a problem with PROJ4 version 7.2.1-1? I found some posts about this (eg. this one about PKG_CONFIG_PATH in .bashrc) but no solutions. Any help is much appreciated,

— PROJ4 version:

JavaScript

Advertisement

Answer

Found it, the solution is to put ACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1 before the configure call like this:

JavaScript

These links may be useful: https://github.com/postgis/postgis/pull/354/files# and https://github.com/OSGeo/PROJ/issues/836

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement