<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I don't reproduce any build issue trying in a ubuntu 22.04 Docker
container doing a normal build:</p>
<p>$ docker run --rm -it -v /home/even/gdal:/src ubuntu:22.04<br>
cd /src<br>
mkdir build<br>
cd build<br>
apt update<br>
apt install libproj-dev libjpeg8-dev libjpeg-turbo8-dev cmake g++<br>
cmake ..<br>
make -j12</p>
<p>But if I then disable the JPEG driver with<br>
cmake .. -DGDAL_ENABLE_DRIVER_JPEG:BOOL=OFF<br>
make<br>
</p>
<p>indeed leads to the error you get. I've queued a fix for that in
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/5683">https://github.com/OSGeo/gdal/pull/5683</a>, but I'm not sure if it is
the scenario you tried<br>
</p>
<div class="moz-cite-prefix">Le 07/05/2022 à 05:35, Pei JIA a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CADh8Q_UGLKY9_Bp6PZoSwiRuwZQFKEtv1bPDzW9HBn9axmh4tw@mail.gmail.com">
<div dir="ltr">
<div>Hi, all:</div>
<div><br>
</div>
<div>It looks <b>libjpeg8-dev libjpeg-turbo8-dev</b> from
Ubuntu 22.04's repo is <b>NOT compatible</b> with current
GDAL git? Any suggestions?</div>
<div><br>
</div>
<br>
<div><i>[ 89%] Linking CXX shared library libgdal.so<br>
/usr/local/bin/cmake -E cmake_link_script
CMakeFiles/GDAL.dir/link.txt --verbose=1<br>
/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 <br>
/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*)':<br>
nitfwritejpeg.cpp:(.text+0x104): undefined reference to
`jpeg_vsiio_dest(jpeg_compress_struct*, _IO_FILE*)'<br>
collect2: error: ld returned 1 exit status<br>
make[2]: *** [CMakeFiles/GDAL.dir/build.make:2386:
libgdal.so.30.0.0] Error 1<br>
make[2]: Leaving directory '....../gdal/build'<br>
make[1]: *** [CMakeFiles/Makefile2:4517:
CMakeFiles/GDAL.dir/all] Error 2<br>
make[1]: Leaving directory '....../gdal/build'</i><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div><br>
</div>
<div>Pei JIA, Ph.D.</div>
<div><br>
</div>
<div>Email: <a href="mailto:jp4work@gmail.com"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">jp4work@gmail.com</a></div>
<div>cell in Canada: +1 778-863-5816</div>
<div>cell in China: +86 186-8244-3503</div>
<div><br>
</div>
Welcome to Vision Open<br>
<a href="http://www.visionopen.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.visionopen.com</a></div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>