[gdal-dev] Problems with latest pdfium
Joaquim Manuel Freire Luís
jluis at ualg.pt
Mon Jun 29 04:55:27 PDT 2020
Hi Even,
I tried to build with your pdfium.lib but got these linking errors.
Joaquim
pdfium.lib(openjpeg.obj) : error LNK2005: opj_set_info_handler already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_set_warning_handler already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_set_error_handler already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_create_decompress already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_set_default_decoder_parameters already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_codec_set_threads already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_setup_decoder already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_read_header already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_decode already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_set_decode_area already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_get_decoded_tile already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_set_decoded_resolution_factor already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_create_compress already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_set_default_encoder_parameters already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_setup_encoder already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_start_compress already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_end_compress already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_end_decompress already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_write_tile already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_destroy_codec already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_get_cstr_info already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(openjpeg.obj) : error LNK2005: opj_destroy_cstr_info already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(image.obj) : error LNK2005: opj_image_destroy already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(image.obj) : error LNK2005: opj_image_tile_create already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(cio.obj) : error LNK2005: opj_stream_create already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(cio.obj) : error LNK2005: opj_stream_destroy already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(cio.obj) : error LNK2005: opj_stream_set_read_function already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(cio.obj) : error LNK2005: opj_stream_set_seek_function already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(cio.obj) : error LNK2005: opj_stream_set_write_function already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(cio.obj) : error LNK2005: opj_stream_set_skip_function already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(cio.obj) : error LNK2005: opj_stream_set_user_data already defined in openjp2.lib(openjp2_w64.dll)
pdfium.lib(cio.obj) : error LNK2005: opj_stream_set_user_data_length already defined in openjp2.lib(openjp2_w64.dll)
Creating library gdal_i.lib and object gdal_i.exp
gdal_w64.dll : fatal error LNK1169: one or more multiply defined symbols found
From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of Even Rouault
Sent: Monday, June 29, 2020 10:34 AM
To: gdal-dev at lists.osgeo.org; William Kyngesburye <kyngchaos at kyngchaos.com>
Subject: Re: [gdal-dev] Problems with latest pdfium
William,
> I'm getting multiple errors trying to compile PDF support with pdfium.
See https://gdal.org/drivers/raster/pdf.html#pdfium
You need to build pdfium from the indicated forks.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200629/074697ca/attachment-0001.html>
More information about the gdal-dev
mailing list