cannot find proj_api.h ...

722 views
Skip to first unread message

Pei JIA

unread,
Mar 24, 2019, 8:11:47 PM3/24/19
to SpatiaLite Users


Hi, all:


checking proj_api.h usability... no
checking proj_api
.h presence... no
checking
for proj_api.h... no
configure
: error: cannot find proj_api.h, bailing out



I had proj.4 (version 6.0.0) manually installed on my Ubuntu 18.04.2, it's quite weird that proj_api.h is NOT able to be found.

However, from the following commands, I can easily tell it's ALREADY installed:


 ~ ll /usr/local/include/proj_api.h  
-rw-r--r-- 1 root root 8.2K Mar 24 16:56 /usr/local/include/proj_api.h
 ~ ll /usr/local/include/proj
total
296K
-rw-r--r-- 1 root root 15K Mar 24 16:56 common.hpp
-rw-r--r-- 1 root root 73K Mar 24 16:56 coordinateoperation.hpp
-rw-r--r-- 1 root root 25K Mar 24 16:56 coordinatesystem.hpp
-rw-r--r-- 1 root root 51K Mar 24 16:56 crs.hpp
-rw-r--r-- 1 root root 28K Mar 24 16:56 datum.hpp
-rw-r--r-- 1 root root 37K Mar 24 16:56 io.hpp
-rw-r--r-- 1 root root 16K Mar 24 16:56 metadata.hpp
-rw-r--r-- 1 root root 15K Mar 24 16:56 nn.hpp
-rw-r--r-- 1 root root 24K Mar 24 16:56 util.hpp
 ~ cat /usr/local/lib/pkgconfig/proj.pc  
prefix
=/usr/local
exec_prefix
=${prefix}
libdir
=${exec_prefix}/lib
includedir
=${prefix}/include
 
Name: proj
Description: Cartographic Projections Library.
Requires:
Version: 6.0.0
Libs: -L${libdir} -lproj
Cflags: -I${includedir}


What's in file configure line 17582:

if test x"$enable_proj" != "xno"; then
 
for ac_header in proj_api.h
do :
  ac_fn_c_check_header_mongrel
"$LINENO" "proj_api.h" "ac_cv_header_proj_api_h" "$ac_includes_default"
if test "x$ac_cv_header_proj_api_h" = xyes; then :
  cat
>>confdefs.h <<_ACEOF
#define HAVE_PROJ_API_H 1
_ACEOF


else
  as_fn_error $
? "cannot find proj_api.h, bailing out" "$LINENO" 5
fi


What's in file configure.ac line 216:

AC_ARG_ENABLE(proj, [AS_HELP_STRING(
 
[--enable-proj], [enables PROJ.4 inclusion [default=yes]])],
 
[], [enable_proj=yes])
if test x"$enable_proj" != "xno"; then
  AC_CHECK_HEADERS
(proj_api.h,, [AC_MSG_ERROR([cannot find proj_api.h, bailing out])])
  AC_SEARCH_LIBS
(pj_init_plus,proj,,AC_MSG_ERROR(['libproj' is required but it doesn't seem to be installed on this system.]),-lm)
  AC_SEARCH_LIBS(pj_init_ctx,proj,,AC_MSG_ERROR(['
libproj' is required but the version on this system does not support the required features (Version 4.8.0 or later is needed).]),-lm)
else
  AC_DEFINE(OMIT_PROJ)
fi


Any suggestions?

Pei JIA

unread,
Mar 25, 2019, 3:32:46 AM3/25/19
to SpatiaLite Users

Sorry ... Problem solved...
instead of beta release.


Cheers
Pei
Reply all
Reply to author
Forward
0 new messages