[GRASS-dev] Compiling and Installing GRASS GIS on Windows

Dear GRASS GIS developers, I am Neev Mistry (Eric1234), a student participating in the 2017 Google Code-In. I have been having some trouble with compiling and installing GRASS GIS on Windows. I have followed the instructions on https://trac.osgeo.org/grass/wiki/CompileOnWindows up until the step where I have to run the package.sh compilation script. I ran all four commands and got no output from any (See Image 1.png). I cannot find an error.log file or mswindows/osgeo4w/package.log. When I go to the folder for OSGEO4W64 and click on Apps, GRASS GIS is not installed there. I have installed GRASS GIS 7.2.2 earlier using the installer, and I do also have the OSGeoLive Virtual Machine, but trying to compile the source code is not working for me. Thank you so much for your help.

Sincerely, Neev Mistry

Virus-free. www.avg.com
(attachments)

Image 1.png

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

Neev Mistry wrote

Dear GRASS GIS developers, I am Neev Mistry (Eric1234), a student
participating in the 2017 Google Code-In. I have been having some trouble
with compiling and installing GRASS GIS on Windows. I have followed the
instructions on https://trac.osgeo.org/grass/wiki/CompileOnWindows up
until
the step where I have to run the package.sh compilation script. I ran all
four commands and got no output from any (See Image 1.png). I cannot find
an error.log file or mswindows/osgeo4w/package.log. When I go to the
folder
for OSGEO4W64 and click on Apps, GRASS GIS is not installed there. I have
installed GRASS GIS 7.2.2 earlier using the installer, and I do also have
the OSGeoLive Virtual Machine, but trying to compile the source code is
not
working for me. Thank you so much for your help.

could you try the command ls.

doing here on my windows box

user@DESKTOP-VADT8Q4 MINGW64 /usr/src/grass_trunk
$ ls
AUTHORS Vagrantfile general ps
CHANGES aclocal.m4 grass.pc.in raster
CITING binaryInstall.src grasslib.dox raster3d
COPYING config.guess gui rpm
Dockerfile config.sub imagery scripts
GPL.TXT configure include temporal
INSTALL configure.in install-sh testsuite
Makefile contributors.csv lib tools
NEWS contributors_extra.csv locale translators.csv
README db macosx vector
REQUIREMENTS.html demolocation man visualization
SUBMITTING display misc
TODO doc mswindows

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

Neev Mistry wrote

Dear GRASS GIS developers, I am Neev Mistry (Eric1234), a student
participating in the 2017 Google Code-In. I have been having some trouble
with compiling and installing GRASS GIS on Windows. I have followed the
instructions on https://trac.osgeo.org/grass/wiki/CompileOnWindows up
until
the step where I have to run the package.sh compilation script. I ran all
four commands and got no output from any (See Image 1.png). I cannot find
an error.log file or mswindows/osgeo4w/package.log. When I go to the
folder
for OSGEO4W64 and click on Apps, GRASS GIS is not installed there. I have
installed GRASS GIS 7.2.2 earlier using the installer, and I do also have
the OSGeoLive Virtual Machine, but trying to compile the source code is
not
working for me. Thank you so much for your help.

according to your screenshot, you're on a windows 64bit box and try to
compile GRASS trunk. am I right?

if you want to compile trunk on a windows 64bit box, then you have to use
following command:

PACKAGE_POSTFIX=-daily OSGEO4W_POSTFIX=64 ./mswindows/osgeo4w/package.sh

just tried here on my win 10 64bit box, configure and compiling works with
the command above.

when compilation starts, error.log lives in:

C:\msys64\usr\src\grass_trunk\error.log

and package.log lives in

C:\msys64\usr\src\grass_trunk\mswindows\osgeo4w\package.log

have a look into this folder:

C:\msys64\usr\src\grass_trunk\mswindows\osgeo4w

is there a file called configure-stamp in this folder? if yes, then just
delete this file and try it again and report back here.

while writing this mail, my test compilation on my windows 10 64bit box
finished:

in package log I can see:

--------------
--------------------------------------------------
[...]
Started compilation: Sat Jan 6 20:42:36 CET 2018
--
Errors in:
No errors detected.
--
Finished compilation: Sat Jan 6 20:56:52 CET 2018
Sat Jan 6 20:56:52 CET 2018: FINISHED make AFTER 14m18s
Sat Jan 6 20:56:52 CET 2018: STARTING make install
[...]
---------------------------------------------------

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