Open piceaglauca opened 3 years ago
After digging deeper, it looks as is rpc.h is not part of the NDK's version of libc6, and the install.sh script doesn't explicitly look for it in /usr/include/rpc
or /usr/include/tirpc/rpc
. If the script is modified to set those as explicit includes for OGDI, it errors out with the unknown type errors. Those types are specified in rpc/types.h, but only on Apple or FreeBSD architecture.
From /usr/include/rpc/types.h
72 #if defined __APPLE_CC__ || defined __FreeBSD__
73 # define __u_char_defined
74 # define __daddr_t_defined
75 #endif
76
77 #ifndef __u_char_defined
78 typedef __u_char u_char;
79 typedef __u_short u_short;
80 typedef __u_int u_int;
81 typedef __u_long u_long;
82 typedef __quad_t quad_t;
83 typedef __u_quad_t u_quad_t;
84 typedef __fsid_t fsid_t;
85 # define __u_char_defined
86 #endif
~/piceadev/android/GDAL/gdal% ./../submodules/install.sh ~/piceadev/android/sdk/ndk-bundle 24 2>&1 | tee install.log
install.logSee below for summary of errors. I tried symlinking /usr/include/rpc into /usr/include/ogdi, which solved the rpc/rpc.h not found error, but then there were a bunch of unknown type errors: quad_t, u_quad_t
% uname -a Linux hostname 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Results in the following errors:
With lines of context: