[gdal-dev] gdalautotest
Alan Stewart
astewart at terragotech.com
Wed Oct 10 07:24:39 PDT 2018
Thank you, that worked!
Alan Stewart
Senior Software Engineer
TerraGo Technologies
3200 Windy Hill Road, Suite 1550W
Atlanta, GA 30339 USA
O. +1 678.391.9615
www.terragotech.com
-----Original Message-----
From: Even Rouault <even.rouault at spatialys.com>
Sent: Tuesday, October 09, 2018 5:39 PM
To: gdal-dev at lists.osgeo.org
Cc: Alan Stewart <astewart at terragotech.com>
Subject: Re: [gdal-dev] gdalautotest
On mardi 9 octobre 2018 20:09:23 CEST Alan Stewart wrote:
> Okay, found the bindings and bindings_install targets in makefile.vc.
> The bindings target does not build so something is wrong. Mysteriously
> reporting that files are not found, reporting absolute paths for files
> that are in fact there at the reported path... Also Swig.swg and
> python.swg are not found.
try:
set DISTUTILS_USE_SDK=1
set MSSdk=1
cd swig\python
python setup.py build
python setup.py install
>
> Alan Stewart
> Senior Software Engineer
> TerraGo Technologies
> 3200 Windy Hill Road, Suite 1550W
> Atlanta, GA 30339 USA
> O. +1 678.391.9615
>
> www.terragotech.com<applewebdata://B24C0762-C7C9-4431-8518-ACC915448B89/www.
> terragotech.com>
>
> From: Alan Stewart
> Sent: Tuesday, October 09, 2018 3:38 PM
> To: 'gdal-dev at lists.osgeo.org' <gdal-dev at lists.osgeo.org>
> Subject: RE: gdalautotest
>
> Oops, just realized the path I need to add to PYTHONPATH I the parent
> of osgeo. Still fails importing _gdal. Are these files supposed to
> have been installed into my Pyton installation by the install process?
>
> Alan Stewart
> Senior Software Enginee
> TerraGo Technologies
> 3200 Windy Hill Road, Suite 1550W
> Atlanta, GA 30339 USA
> O. +1 678.391.9615
>
> www.terragotech.com<applewebdata://B24C0762-C7C9-4431-8518-ACC915448B89/www.
> terragotech.com>
>
> From: Alan Stewart
> Sent: Tuesday, October 09, 2018 3:22 PM
> To: 'gdal-dev at lists.osgeo.org'
> <gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>> Subject:
> gdalautotest
>
> I'd like to run the gdalautotest scripts locally, and add some tests,
> but I've not had success getting the environment set up correctly. I
> assume with the right configuration the build process will generate
> the Python bindings?
>
> I'm on Windows running in a VS1027 x86 native tools command prompt.
> I've configured the following environment variables:
>
> set "GDAL_HOME=C:\devel\GitHub\build"
> set "GDAL_DATA=%GDAL_HOME%\data"
> set "PATH=%PATH%;%GDAL_HOME%\bin"
> set "PYTHONPATH=C:\devel\GitHub\gdal\gdal\pymod"
>
> My nmake.local contains:
>
> MSVC_VER=1910
> VERSION=204
> GDAL_HOME="C:\devel\GitHub\build"
> PYDIR="C:\Python27" <-- in the
> PATH inherited by the command prompt SWIG="C:\devel\GitHub\swig.exe"
> BINDINGS=python
> HAVE_NUMPY=1
>
> I run "nmake -f makefile.vc", then "nmake -f makefile.vc install",
> then from the autotest folder "C:\Python27\python.exe run_all.py". The
> error is that pymod\gdaltest.py cannot import gdal from osgeo.
>
> I found the gdal\swig\python\osgeo folder and tried adding that to
> PYTHONPATH. Same result.
>
> Alan Stewart
> Senior Software Engineer
> TerraGo Technologies
> 3200 Windy Hill Road, Suite 1550W
> Atlanta, GA 30339 USA
> O. +1 678.391.9615
>
> www.terragotech.com<applewebdata://B24C0762-C7C9-4431-8518-ACC915448B89/www.
> terragotech.com>
--
Spatialys - Geospatial professional services http://www.spatialys.com
More information about the gdal-dev
mailing list