Ticket #744 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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@…
Platform: MSWindows Vista CPU: Unspecified

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

  Changed 4 years ago by hamish

  • keywords wingrass added; Compiling, MS Win removed

  Changed 4 years ago by cnielsen

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.

follow-up: ↓ 4   Changed 4 years ago by 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

in reply to: ↑ 3   Changed 4 years ago by cnielsen

  • cc grass-dev@… added
  • owner changed from grass-dev@… to cnielsen
  • status changed from new to assigned

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?

  Changed 4 years ago by hellik

  • status changed from assigned to closed
  • resolution set to fixed

thanks for the added note!

Note: See TracTickets for help on using tickets.