<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>In my case, this didn't work. <br>
</p>
<p>1. When I ran the GDAL build, I always use "make clean" to clean
the old build. And I did run scripts/setdevenv.sh before running
the test. <br>
</p>
<p><i>>which gdalinfo</i><i><br>
</i><i>/scratch/gdal/gdal/gdal/apps/gdalinfo</i><i><br>
</i></p>
<p><i>>gdalinfo --version</i><i><br>
</i><i>GDAL 2.5.0dev-94f370c-dirty, released 2019/04/01</i><br>
</p>
<p>2. gdalinfo and gdaltranslate are working without error. Only
pytest failed:</p>
<p><i>E ImportError: /scratch/gdal/gdal/gdal/.libs/libgdal.so.20:
undefined symbol: _Z17CPLHaveRuntimeAVXv</i><br>
</p>
<p>3. I checked libgdal.so.so, it is missing that symbol:</p>
<p><i>>nm /scratch/gdal/gdal/gdal/.libs/libgdal.so.20 |grep
_Z17CPLHaveRuntimeAVXv</i><i><br>
</i><i> U _Z17CPLHaveRuntimeAVXv</i><br>
</p>
<p>It seems that my manual test of gdalinfo and gdal_translate
didn't use that symbol. Anyone know which library that symbol came
from? <br>
</p>
<p>Thanks,</p>
<p>-Fengting<br>
</p>
<div class="moz-cite-prefix">On 4/18/2019 5:17 AM, Even Rouault
wrote:<br>
</div>
<blockquote type="cite" cite="mid:4423378.P32z12xsDR@even-i700">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">E ImportError:
/home/parallels/OS-GIS/platforms/linux/x86_64/gdal/lib/python2.7/site-packa
ges/osgeo/_gdal.so: undefined symbol: CPLGetErrorCounter
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Try
ldd /home/parallels/OS-GIS/platforms/linux/x86_64/gdal/lib/python2.7/site-packages/osgeo/_gdal.so
and check which libgdal.so it links to. It is likely that it is not the right one.
You'll have to adjust your LD_LIBRARY_PATH then.
Sourcing scripts/setdevenv.sh should do that for you
</pre>
</blockquote>
</body>
</html>