[GRASS-dev] [GRASS-user] WinGRASS build up (WIP)

Helmut Kudrnovsky hellik at web.de
Fri Nov 15 12:03:35 PST 2019


Pedro VenĂ¢ncio-2 wrote
> Hi Jurgen,
> 
> 
> 
>> Try dependency walker called from the GRASS prompt and load gdal300.dll.
>> There's probably something missing that the dll needs or conflicting in
>> system32 that takes precendence over something shipped with OSGeo4W (see
>> also
>> [0])
>>
>>
> I'm not used with dependency walker, can you tell me the command I should
> run to call it from GRASS cli? I already have it in  %OSGEO4W_ROOT%\bin
> folder.

try:

(1) add following lines in C:\OSGeo4W64\bin\grass78.bat

@echo off
rem
#########################################################################
rem #
rem # GRASS initialization bat script (OSGeo4W)
rem #
rem
#########################################################################
rem
rem Set environmental variables
rem
call "%~dp0\o4w_env.bat"
call py3_env.bat
call "%OSGEO4W_ROOT%\apps\grass\grass78\etc\env.bat"
@echo off

rem do a dependency walk
rem add these 2 lines here
for %%d in (%GISBASE%\lib\*) do depends /c /f:1
/ot:%APPDATA%\GRASS7\depwalk_lib.log %%d
for %%e in (%GISBASE%\bin\*) do depends /c /f:1
/ot:%APPDATA%\GRASS7\depwalk_bin.log %%e

rem
rem Launch GRASS GIS
rem
"%GRASS_PYTHON%" "%GISBASE%\etc\grass78.py" %*

rem
rem Pause on error
rem
if %ERRORLEVEL% GEQ 1 pause

(2) start OSGeo4W winGRASS7.8.1; you have to wait some minutes while
dependency walker is working

(3) go to %APPDATA%\GRASS7 (just copy/paste this into the windows explorer);
here it opens as C:\Users\YourUsername\AppData\Roaming\GRASS7

(4) in this folder, there are 2 files:

depwalk_lib.log
depwalk_bin.log

(5) open these 2 files in a texteditor, e.g. notepad++ and search for gdal3,
here e.g. in depwald_lib.log:

          [  6] c:\osgeo4~1\apps\grass\grass78\lib\LIBGRASS_GPROJ.7.8.DLL
               [ E ] c:\osgeo4~1\apps\msys\bin\LIBINTL-8.DLL
               [ ^6] c:\windows\system32\KERNEL32.DLL
                    [F^6] c:\windows\system32\NTDLL.DLL
               [ ^6] c:\windows\system32\MSVCRT.DLL
               [ ^6] c:\osgeo4~1\bin\PROJ_6_2.DLL
               [ ^6] c:\osgeo4~1\bin\GDAL300.DLL   <<==
               [ ^6] c:\osgeo4~1\apps\grass\grass78\lib\LIBGRASS_GIS.7.8.DLL

that means LIBGRASS_GPROJ.7.8.DLL is looking for GDAL300.DLL in
c:\osgeo4~1\bin\



-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


More information about the grass-dev mailing list