<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>This has been fixed yesterday per
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/5677">https://github.com/OSGeo/gdal/pull/5677</a></p>
<p>(and this is for GDAL 3.5.0, not 3.4.3)<br>
</p>
<div class="moz-cite-prefix">Le 07/05/2022 à 04:51, Pei JIA a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CADh8Q_WiCyzfbATdnjxYcKd4_m5Bmuo6t083yU9EQ_Zx56jNQg@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>Hi, all:</div>
<div><br>
</div>
<div>Finally, I successfully built gdal under Ubuntu 22.04, with
gcc 11.2.</div>
<div>However, when I tried to install with `sudo make install`,
I got the following ERROR message:</div>
<div><br>
</div>
<i>➜ build git:(master) ✗ sudo make install<br>
/usr/local/bin/cmake -S....../gdal -B....../gdal/build
--check-build-system CMakeFiles/Makefile.cmake 0<br>
/usr/local/bin/cmake -E cmake_progress_start
....../gdal/build/CMakeFiles
....../gdal/build//CMakeFiles/progress.marks<br>
make -f CMakeFiles/Makefile2 all<br>
make[1]: Entering directory '....../gdal/build'<br>
make -f CMakeFiles/generate_gdal_version_h.dir/build.make
CMakeFiles/generate_gdal_version_h.dir/depend<br>
make[2]: Entering directory '....../gdal/build'<br>
cd ....../gdal/build && /usr/local/bin/cmake -E
cmake_depends "Unix Makefiles" ....../gdal ....../gdal
....../gdal/build ....../gdal/build
....../gdal/build/CMakeFiles/generate_gdal_version_h.dir/DependInfo.cmake
--color=<br>
make[2]: Leaving directory '....../gdal/build'<br>
make -f CMakeFiles/generate_gdal_version_h.dir/build.make
CMakeFiles/generate_gdal_version_h.dir/build<br>
make[2]: Entering directory '....../gdal/build'<br>
/usr/local/bin/cmake -DSOURCE_DIR=....../gdal
-DBINARY_DIR=....../gdal/build -DGDAL_SHA1SUM=
-DGDAL_RELEASE_DATE= -P
....../gdal/cmake/helpers/generate_gdal_version_h.cmake<br>
-- Found Git: /usr/bin/git (found version "2.34.1") <br>
CMake Error at
....../gdal/cmake/helpers/generate_gdal_version_h.cmake:27
(string):<br>
string sub-command SUBSTRING requires <b>four arguments</b>.<br>
<br>
<br>
make[2]: ***
[CMakeFiles/generate_gdal_version_h.dir/build.make:73:
CMakeFiles/generate_gdal_version_h] Error 1<br>
make[2]: Leaving directory '....../gdal/build'<br>
make[1]: *** [CMakeFiles/Makefile2:4317:
CMakeFiles/generate_gdal_version_h.dir/all] Error 2<br>
make[1]: Leaving directory '....../gdal/build'<br>
make: *** [Makefile:149: all] Error 2<br>
</i>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Line 27 of file <i>....../gdal/cmake/helpers/generate_gdal_version_h
i</i>s :</div>
<div><br>
</div>
<div><b>string(SUBSTRING ${GDAL_GIT_HASH} 0 10 REV)</b><br>
</div>
<div><br>
</div>
<div>There are <b>ALREADY 4 arguments</b>. </div>
<div><br>
</div>
<div>Did anybody have the same issue ??</div>
<div><br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</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>