gdalinfo and gdal_translate are working fine. just pytest failed with the same error.

Here is my configure:

./configure --prefix=${PREFIX} \
  --without-libtool \
  --disable-rpath \
  --with-libz=internal \
  --with-png=internal \
  --with-libtiff=internal \
  --with-geotiff=internal \
  --with-jpeg=internal \
  --with-gif=internal \
  --without-pg \
  --without-sqlite3 \
  --without-expat \
  --without-odbc \
  --with-curl=/usr/bin/curl-config \
  --without-perl \
  --without-pcre \
  --with-hdfs=no \
  --with-python=/scratch/SDK/Python-2.7.5/dist/bin/python \
  --with-proj=/scratch/SDK/proj-6.0.0/dist

After that:

make clean
make -j8 -s
cd apps; make -s test_ogrsf; cd ..

-Fengting

On 4/9/2019 4:22 AM, Even Rouault wrote:
On lundi 8 avril 2019 17:20:45 CEST Fengting Chen wrote:
I rebuilt GDAl with python bindings without errors. Now I got a
different error:

ImportError while loading conftest
'/scratch/gdal/gdal/autotest/conftest.py'.
/home/fechen/.local/lib/python2.7/site-packages/six.py:709: in exec_
      exec("""exec _code_ in _globs_, _locs_""")
conftest.py:9: in <module>
      from osgeo import gdal
../gdal/swig/python/build/lib.linux-x86_64-2.7/osgeo/__init__.py:21: in
<module>
      _gdal = swig_import_helper()
../gdal/swig/python/build/lib.linux-x86_64-2.7/osgeo/__init__.py:17: in
swig_import_helper
      _mod = imp.load_module('_gdal', fp, pathname, description)
E   ImportError: /scratch/gdal/gdal/gdal/.libs/libgdal.so.20: undefined
symbol: _Z17CPLHaveRuntimeAVXv

Any idea why  libgdal.so.20 has undefined symbol?
First time I see this error
Do you get this also when using gdalinfo, gdal_translate, etc ?
If so, consider doing a clean build. It might be that you have attempted
several builds of GDAL with different options after ./configure

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to