[gdal-dev] compiling gdal: ogr_ODS error

Andrew C Aitchison andrew at aitchison.me.uk
Sat Aug 26 07:39:05 PDT 2023


On Sat, 26 Aug 2023, Hernán De Angelis wrote:

> rpc.h is missing och is not located in a standard path in your system. What 
> package provides rpc in your OS? Perhaps installing grpc-devel?

My ubuntu has
   /usr/include/ntirpc/rpc/rpc.h	from libntirpc-dev
and
   /usr/include/tirpc/rpc/rpc.h	from libtirpc-dev
and builds the ogdi driver without problem.


> Den 2023-08-26 kl. 13:06, skrev andy:
>> Hi,
>> if I try to compile gdal 3.7.1 on debian bullseye,
>> 
>> cmake -D GDAL_USE_GEOS=ON -D GDAL_USE_PARQUET=ON ..
>> cmake --build .
>> 
>> I have this error:
>> 
>> Scanning dependencies of target ogr_ODS
>> [ 89%] Building CXX object 
>> ogr/ogrsf_frmts/ods/CMakeFiles/ogr_ODS.dir/ods_formula_node.cpp.o
>> [ 89%] Building CXX object 
>> ogr/ogrsf_frmts/ods/CMakeFiles/ogr_ODS.dir/ods_formula.cpp.o
>> [ 89%] Building CXX object 
>> ogr/ogrsf_frmts/ods/CMakeFiles/ogr_ODS.dir/ogrodsdatasource.cpp.o
>> [ 89%] Building CXX object 
>> ogr/ogrsf_frmts/ods/CMakeFiles/ogr_ODS.dir/ogrodsdriver.cpp.o
>> [ 89%] Built target ogr_ODS
>> Scanning dependencies of target ogr_OGDI
>> [ 89%] Building CXX object 
>> ogr/ogrsf_frmts/ogdi/CMakeFiles/ogr_OGDI.dir/ogrogdidatasource.cpp.o
>> In file included from 
>> /home/aborruso/lavagna/tmp/gdal-3.7.1/ogr/ogrsf_frmts/ogdi/ogrogdi.h:41,
>>                  from 
>> /home/aborruso/lavagna/tmp/gdal-3.7.1/ogr/ogrsf_frmts/ogdi/ogrogdidatasource.cpp:30:
>> /usr/include/ogdi/ecs.h:9:10: fatal error: rpc/rpc.h: No such file or 
>> directory
>>     9 | #include <rpc/rpc.h>
>>       |          ^~~~~~~~~~~
>> compilation terminated.
>> gmake[2]: *** [ogr/ogrsf_frmts/ogdi/CMakeFiles/ogr_OGDI.dir/build.make:82: 
>> ogr/ogrsf_frmts/ogdi/CMakeFiles/ogr_OGDI.dir/ogrogdidatasource.cpp.o] Error 
>> 1
>> gmake[1]: *** [CMakeFiles/Makefile2:10535: 
>> ogr/ogrsf_frmts/ogdi/CMakeFiles/ogr_OGDI.dir/all] Error 2
>> gmake: *** [Makefile:160: all] Error 2
>> 
>> How to solve it?
>> 
>> Thank you
>> 
>> -- 
>> ___________________
>> 
>> Andrea Borruso
>> website: https://medium.com/tantotanto
>> 38° 7' 48" N, 13° 21' 9" E, EPSG:4326
>> ___________________
>> 
>> "cercare e saper riconoscere chi e cosa,
>>  in mezzo all’inferno, non è inferno,
>> e farlo durare, e dargli spazio"
>> 
>> Italo Calvino
>> 
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Andrew C. Aitchison                      Kendal, UK
                    andrew at aitchison.me.uk


More information about the gdal-dev mailing list