[gdal-dev] nitfwritejpeg.cpp:(.text+0x104): undefined reference to `jpeg_vsiio_dest(jpeg_compress_struct*, _IO_FILE*)'
Even Rouault
even.rouault at spatialys.com
Sat May 7 01:49:22 PDT 2022
I don't reproduce any build issue trying in a ubuntu 22.04 Docker
container doing a normal build:
$ docker run --rm -it -v /home/even/gdal:/src ubuntu:22.04
cd /src
mkdir build
cd build
apt update
apt install libproj-dev libjpeg8-dev libjpeg-turbo8-dev cmake g++
cmake ..
make -j12
But if I then disable the JPEG driver with
cmake .. -DGDAL_ENABLE_DRIVER_JPEG:BOOL=OFF
make
indeed leads to the error you get. I've queued a fix for that in
https://github.com/OSGeo/gdal/pull/5683, but I'm not sure if it is the
scenario you tried
Le 07/05/2022 à 05:35, Pei JIA a écrit :
> Hi, all:
>
> It looks *libjpeg8-dev libjpeg-turbo8-dev* from Ubuntu 22.04's repo is
> *NOT compatible* with current GDAL git? Any suggestions?
>
>
> /[ 89%] Linking CXX shared library libgdal.so
> /usr/local/bin/cmake -E cmake_link_script CMakeFiles/GDAL.dir/link.txt
> --verbose=1
> /usr/bin/c++ -fPIC -fvisibility=hidden -Wl,--no-undefined -shared
> -Wl,-soname,libgdal.so.30 -o libgdal.so.30.0.0
> @CMakeFiles/GDAL.dir/objects1.rsp
> -Wl,-rpath,/usr/local/lib:/usr/lib/x86_64-linux-gnu/hdf5/serial: -lm
> -ldl /usr/lib/x86_64-linux-gnu/libz.so
> /usr/lib/x86_64-linux-gnu/libcurl.so
> /usr/lib/x86_64-linux-gnu/libodbc.so
> /usr/lib/x86_64-linux-gnu/libodbcinst.so
> /usr/lib/x86_64-linux-gnu/libxml2.so
> /usr/lib/x86_64-linux-gnu/libcryptopp.so
> /usr/lib/x86_64-linux-gnu/libcrypto.so
> /usr/lib/x86_64-linux-gnu/libssl.so
> /usr/lib/x86_64-linux-gnu/libzstd.so
> /usr/lib/x86_64-linux-gnu/liblzma.so
> /usr/lib/x86_64-linux-gnu/libdeflate.so
> /usr/lib/x86_64-linux-gnu/liblz4.so
> /usr/lib/x86_64-linux-gnu/libblosc.so /usr/lib/libarmadillo.so
> /usr/lib/x86_64-linux-gnu/libproj.so
> /usr/lib/x86_64-linux-gnu/libqhull_r.so
> /usr/lib/x86_64-linux-gnu/libproj.so /usr/lib/x86_64-linux-gnu/libz.so
> /usr/lib/x86_64-linux-gnu/libxerces-c.so
> /usr/lib/x86_64-linux-gnu/libproj.so
> /usr/lib/x86_64-linux-gnu/libtiff.so
> /usr/lib/x86_64-linux-gnu/libjpeg.so
> /usr/lib/x86_64-linux-gnu/libgeotiff.so
> /usr/lib/x86_64-linux-gnu/libtiff.so
> /usr/lib/x86_64-linux-gnu/libjpeg.so
> /usr/lib/x86_64-linux-gnu/libproj.so
> /usr/lib/x86_64-linux-gnu/libgeotiff.so
> /usr/lib/x86_64-linux-gnu/libtiff.so
> /usr/lib/x86_64-linux-gnu/libheif.so
> /usr/lib/x86_64-linux-gnu/libjpeg.so
> /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so
> /usr/lib/x86_64-linux-gnu/libLerc.so
> /usr/lib/x86_64-linux-gnu/libzstd.so /usr/local/lib/libbrunslienc-c.so
> /usr/local/lib/libbrunslidec-c.so /usr/lib/x86_64-linux-gnu/libpng.so
> /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libz.so
> /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libz.so
> /usr/lib/x86_64-linux-gnu/libpoppler.so /usr/local/lib/libpodofo.so
> /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so
> /usr/lib/x86_64-linux-gnu/libgif.so
> /usr/lib/x86_64-linux-gnu/libnetcdf.so.19
> /usr/lib/x86_64-linux-gnu/libblosc.so
> /usr/lib/x86_64-linux-gnu/libcfitsio.so
> /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
> /usr/lib/x86_64-linux-gnu/libcrypto.so
> /usr/lib/x86_64-linux-gnu/libcurl.so
> /usr/lib/x86_64-linux-gnu/libpthread.a
> /usr/lib/x86_64-linux-gnu/libsz.so /usr/lib/x86_64-linux-gnu/libz.so
> /usr/lib/x86_64-linux-gnu/libdl.a -lm
> /usr/lib/x86_64-linux-gnu/libcurl.so
> /usr/lib/x86_64-linux-gnu/libwebp.so
> /usr/lib/x86_64-linux-gnu/libsqlite3.so
> /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libpq.so
> /usr/local/lib/libopenjp2.so
> /usr/lib/x86_64-linux-gnu/libtiledb.so.2.6
> /usr/lib/x86_64-linux-gnu/libIlmImf.so
> /usr/lib/x86_64-linux-gnu/libIlmImfUtil.so
> /usr/lib/x86_64-linux-gnu/libHalf.so
> /usr/lib/x86_64-linux-gnu/libIex.so
> /usr/lib/x86_64-linux-gnu/libxerces-c.so
> /usr/lib/x86_64-linux-gnu/libsqlite3.so
> /usr/lib/x86_64-linux-gnu/libxerces-c.so
> /usr/lib/x86_64-linux-gnu/libxerces-c.so
> /usr/lib/x86_64-linux-gnu/libfyba.so
> /usr/lib/x86_64-linux-gnu/libfygm.so
> /usr/lib/x86_64-linux-gnu/libfyut.so
> /usr/lib/x86_64-linux-gnu/libsqlite3.so
> /usr/lib/x86_64-linux-gnu/libproj.so
> /usr/lib/x86_64-linux-gnu/libpcre2-8.so
> /usr/lib/x86_64-linux-gnu/libspatialite.so
> /usr/lib/x86_64-linux-gnu/librasterlite2.so
> /usr/lib/x86_64-linux-gnu/libsqlite3.so
> /usr/lib/x86_64-linux-gnu/libsqlite3.so
> /usr/lib/x86_64-linux-gnu/libsqlite3.so
> /usr/lib/x86_64-linux-gnu/libsqlite3.so
> /usr/lib/x86_64-linux-gnu/libxerces-c.so
> /usr/lib/x86_64-linux-gnu/libmysqlclient.so
> /usr/lib/x86_64-linux-gnu/libpq.so
> /usr/lib/x86_64-linux-gnu/libodbc.so
> /usr/lib/x86_64-linux-gnu/libodbc.so
> /usr/lib/x86_64-linux-gnu/libodbc.so
> /usr/lib/x86_64-linux-gnu/libfreexl.so /usr/local/lib/libopencad.so
> /usr/lib/x86_64-linux-gnu/libproj.so /usr/lib/libogdi.so
> /lib/x86_64-linux-gnu/libexpat.so.1.8.7
> /usr/lib/x86_64-linux-gnu/libxml2.so
> /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.16.0
> /usr/lib/x86_64-linux-gnu/libproj.so
> /usr/lib/x86_64-linux-gnu/libproj.so
> /usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0
> /usr/lib/x86_64-linux-gnu/libcrypto.so -lm
> /usr/bin/ld: frmts/nitf/CMakeFiles/gdal_NITF.dir/nitfwritejpeg.cpp.o:
> in function `NITFWriteJPEGBlock(GDALDataset*, _IO_FILE*, int, int,
> int, int, int, int, unsigned char const*, int, int (*)(double, char
> const*, void*), void*)':
> nitfwritejpeg.cpp:(.text+0x104): undefined reference to
> `jpeg_vsiio_dest(jpeg_compress_struct*, _IO_FILE*)'
> collect2: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/GDAL.dir/build.make:2386: libgdal.so.30.0.0]
> Error 1
> make[2]: Leaving directory '....../gdal/build'
> make[1]: *** [CMakeFiles/Makefile2:4517: CMakeFiles/GDAL.dir/all] Error 2
> make[1]: Leaving directory '....../gdal/build'/
>
>
> Cheers
>
> --
>
> Pei JIA, Ph.D.
>
> Email: jp4work at gmail.com
> cell in Canada: +1 778-863-5816
> cell in China: +86 186-8244-3503
>
> Welcome to Vision Open
> http://www.visionopen.com
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220507/78176977/attachment.htm>
More information about the gdal-dev
mailing list