Opened 15 years ago

Closed 15 years ago

#744 closed defect (fixed)

package.sh for compiling on windows

Reported by: hellik Owned by: cnielsen
Priority: normal Milestone: 6.5.0
Component: Compiling Version: svn-develbranch6
Keywords: wingrass Cc: grass-dev@…
CPU: Unspecified Platform: MSWindows Vista

Description

taken from http://lists.osgeo.org/pipermail/grass-user/2009-September/052261.html:

hi

i've looked at package.sh at rev39042 for develbranch65:

at line 1 (http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/osgeo4w/package.sh#L1)

#!/c/Programme/OSGeo4W/apps/msys/bin/sh

at line 10 (http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/osgeo4w/package.sh#L10)

export OSGEO4W_ROOT_MSYS=/c/Programme/OSGeo4W

i've installed the osgeo4w-packages at c:\Osgeo4W\

so i have to adapt the path that compiling is starting. maybe something for the wiki (http://trac.osgeo.org/grass/wiki/CompileOnWindows) ?

best regards helmut

Change History (5)

comment:1 by hamish, 15 years ago

Keywords: wingrass added; Compiling MS Win removed

comment:2 by cnielsen, 15 years ago

I've updated the CompileOnWindows wiki page to reflect recent updates to package.sh. Look at the GRASS-6.4.0 section and adapt the line numbers for develbranch_6.

The default paths were from Jurgen, but as hamish noted in a comment in r39046, these should probably be changed to be more general. %PROGRAMFILES% wouldn't be so good because of continuing issues with paths-with-spaces, but maybe it should be changed to /c/osgeo4w/ to reflect the suggested path in CompileOnWindows?

I added instructions to remove the -j4 from the make command because I got errors, similarly with the bottom half of the script which is designed to build osgeo4w packages (using VC) and isn't needed for normal builds... but maybe I'm missing something.

comment:3 by hellik, 15 years ago

thanks for updating the wiki!

And comment out (by adding a # to the start of the line) to lines 83-85, e.g.: 
#cp /c/mingw/bin/libgnurx-0.dll $OSGEO_ROOT_MSYS/bin
#cp /c/mingw/bin/libiconv-2.dll $OSGEO_ROOT_MSYS/bin
#cp /c/mingw/bin/libintl-8.dll $OSGEO_ROOT_MSYS/bin

shouldn't this lines 87-89? http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/osgeo4w/package.sh#L87

in reply to:  3 comment:4 by cnielsen, 15 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to cnielsen
Status: newassigned

Replying to hellik:

thanks for updating the wiki!

And comment out (by adding a # to the start of the line) to lines 83-85, e.g.: 
#cp /c/mingw/bin/libgnurx-0.dll $OSGEO_ROOT_MSYS/bin
#cp /c/mingw/bin/libiconv-2.dll $OSGEO_ROOT_MSYS/bin
#cp /c/mingw/bin/libintl-8.dll $OSGEO_ROOT_MSYS/bin

shouldn't this lines 87-89? http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/osgeo4w/package.sh#L87

The line numbers are slightly different in the different branches (instructions were for releasebranch_6_4), I've added a note to the Wiki to watch out for this. I could duplicate the instructions for each version with the correct line numbers but it seems a bit redundant.

Can this ticket be considered resolved?

comment:5 by hellik, 15 years ago

Resolution: fixed
Status: assignedclosed

thanks for the added note!

Note: See TracTickets for help on using tickets.