[gdal-dev] Failing to build with libparquet

Ari Jolma ari.jolma at gmail.com
Wed Oct 22 23:09:48 PDT 2025


I think I got it compiled in now with 3.11. A few remarks on building on 
Linux Mint:

- I installed libarrow-dev, libarrow-dataset-dev, 
libarrow-dataset-glib-dev, and libparquet-dev (it was not obvious from 
where to get ArrowCompute dependency)

- I had to make Arrow and Parquet cmake files use pkg_check_modules for 
multiple dependents: zstd, lz4, re2, thrift

I'm just playing around with this now, later I'll probably add Parquet 
support for our lambda python library to access geoparquet files in S3.

Ari

Even Rouault kirjoitti 22.10.2025 klo 17.36:
> Hi Ari,
>
> This should be fine with master or latest state of the release/3.11 
> branch, or try to use maybe Arrow 18 or something if you need to sick 
> with release/3.9. There are from time to time breakages in the Arrow 
> C++ API, and older GDAL releases won't build for that  reason with 
> newer Arrow releases.
>
> Even
>
> Le 22/10/2025 à 16:06, Ari Jolma via gdal-dev a écrit :
>> I'm trying to build release/3.9 with libparquet from 
>> https://packages.apache.org/artifactory/arrow/ubuntu/
>>
>> libparquet2100/jammy,now 21.0.0-1 amd64
>>
>> The error is
>>
>> /home/ari/github/gdal/ogr/ogrsf_frmts/parquet/ogrparquetdriver.cpp: 
>> In function ‘GDALDataset* OGRParquetDriverOpen(GDALOpenInfo*)’:
>> /home/ari/github/gdal/ogr/ogrsf_frmts/parquet/ogrparquetdriver.cpp:700:43: 
>> error: too many arguments to function 
>> ‘arrow::Result<std::unique_ptr<parquet::arrow::FileReader> > 
>> parquet::arrow::OpenFile(std::shared_ptr<arrow::io::RandomAccessFile>, 
>> arrow::MemoryPool*)’
>>   700 |         auto st = parquet::arrow::OpenFile(std::move(infile),
>>       | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
>>   701 | poMemoryPool.get(), &arrow_reader);
>>       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> In file included from 
>> /home/ari/github/gdal/ogr/ogrsf_frmts/parquet/ogr_include_parquet.h:58,
>>                  from 
>> /home/ari/github/gdal/ogr/ogrsf_frmts/parquet/ogr_parquet.h:38,
>>                  from 
>> /home/ari/github/gdal/ogr/ogrsf_frmts/parquet/ogrparquetdriver.cpp:35:
>> /usr/include/parquet/arrow/reader.h:368:46: note: declared here
>>   368 | ::arrow::Result<std::unique_ptr<FileReader>> OpenFile(
>>       |                                              ^~~~~~~~
>> gmake[2]: *** 
>> [ogr/ogrsf_frmts/parquet/CMakeFiles/ogr_Parquet.dir/build.make:76: 
>> ogr/ogrsf_frmts/parquet/CMakeFiles/ogr_Parquet.dir/ogrparquetdriver.cpp.o] 
>> Virhe 1
>> gmake[1]: *** [CMakeFiles/Makefile2:9944: 
>> ogr/ogrsf_frmts/parquet/CMakeFiles/ogr_Parquet.dir/all] Virhe 2
>> gmake: *** [Makefile:146: all] Virhe 2
>>
>> what might be the issue?
>>
>> Ari
>>
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>


More information about the gdal-dev mailing list