[GRASS-dev] [GRASS GIS] #744: package.sh for compiling on windows

#744: package.sh for compiling on windows
-------------------------------+--------------------------------------------
Reporter: hellik | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Keywords: Compiling, MS Win | Platform: MSWindows Vista
      Cpu: Unspecified |
-------------------------------+--------------------------------------------
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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/744&gt;
GRASS GIS <http://grass.osgeo.org>

#744: package.sh for compiling on windows
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Resolution: | Keywords: wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by hamish):

  * keywords: Compiling, MS Win => wingrass

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/744#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#744: package.sh for compiling on windows
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Resolution: | Keywords: wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/744#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#744: package.sh for compiling on windows
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Resolution: | Keywords: wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/744#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#744: package.sh for compiling on windows
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: cnielsen
      Type: defect | Status: assigned
  Priority: normal | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Resolution: | Keywords: wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by cnielsen):

* cc: grass-dev@lists.osgeo.org (added)
  * owner: grass-dev@lists.osgeo.org => cnielsen
  * status: new => assigned

Comment:

Replying to [comment:3 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
[http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/mswindows/osgeo4w/package.sh#L83
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?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/744#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#744: package.sh for compiling on windows
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: cnielsen
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Resolution: fixed | Keywords: wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by hellik):

  * status: assigned => closed
  * resolution: => fixed

Comment:

thanks for the added note!

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/744#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>