Instructions for devel versions added to CompileOnWindows

5 messages Options
Embed this post
Permalink
Colin Nielsen

Instructions for devel versions added to CompileOnWindows

Reply Threaded More More options
Print post
Permalink
I've just finished adding instructions to the Wiki page for compiling
grass-6.5.svn (develbranch_6) and grass-7.0.svn (trunk). Please test.

> Colin, addictionally I suggest you include the format of path as unix
> on some steps, because it facilitate the copy and past (just to save
> time of those the decide to handle the things on MSYS).
> -------
> 3. Copy c:\osgeo4w\apps\msys\etc\fstab.sample to
> c:\osgeo4w\apps\msys\etc\fstab (without .sample)
>     or
>  cp /c/OSGeo4W\apps\msys\etc\fstab.sample /c/OSGeo4W\apps\msys\etc\fstab
> -----
> 4. Open c:\osgeo4w\apps\msys\etc\fstab
>    or /c/OSGeo4W/apps/msys/etc/fstab
> --------
>
> 3. Open c:\osgeo4w\usr\src\grass64\mswindows\osgeo4w\package.sh and at line
> 12: Change:
>
> or /c/OSGeo4W/usr\src/\grass64/mswindows/osgeo4w/package.sh

I agree we could probably change step 3 to your suggestion, but I left
those lines in windows format because:
1) Windows users are more familiar with using windows explorer for
file management, and
2) For the other lines just typing /c/osgeo4w/apps/msys/etc/fstab will
not open the file for editing. This still has to be done externally in
notepad, notepad++ or some other text editor (I'm not touching
instructions for vim!).

> By the way, I remember that almost on my case I needed to incluide
> to extra steps before start GRASS
>
> GRASS_WISH=/c/OSGeo4W/bin/wish.exe
> export GRASS_WISH
> cd /c/OSGeo4W/apps/grass/bin
> grass6

Is this a problem specific to xp/vista 64-bit? Can you give us more
details on the error messages you receive? I believe the setting of
GRASS_WISH should be handled by etc/Init.sh. So if this isn't working
on x64 this should be fixed.

> Finally, now I get grass65 and not grass64, so I suggest update this.

Done.

-Colin

>
> So, Colin and colleagues, THANKS a lot!!!
>
>
>
> miltinho
>
>
>
>
>
> 2009/3/28 Milton Cezar Ribeiro <[hidden email]>
>>
>> Hi Colin,
>>
>> Sorry, I really forgot the zlib-devel. My mistake.
>> But now I compiled and I have other issue.
>> When I start MSys, and define GRASS_WISH,
>> and execute GRASS I get the box to select
>> my MAPSET. After that I get the following error message:
>> This application has failed to start
>> because libintl3.dll was not found.
>> Re-installing the application may fix this problem.
>> Any idea? I need do compile GRASS again (how can I recompile?).
>>
>> Best wishes
>>
>> miltinho
>> Toronto, CA
>> 2009/3/28 Colin Nielsen <[hidden email]>
>>>
>>> I believe you're missing the zlib-devel package, it contains zlib.h.
>>> (Re-)install this package, then try again. If it still fails, verify
>>> that zlib.h is in /osgeo4w/include. If it is there but is still
>>> failing let us know.
>>>
>>> -Colin
>>>
>>> On Sat, Mar 28, 2009 at 4:47 PM, Milton Cezar Ribeiro
>>> <[hidden email]> wrote:
>>> > Dear Colin,
>>> >
>>> > Thank you very much for your great work.
>>> > I am trying to follow your steps on a 64bit Vista Machine,
>>> > and got the following error.
>>> >
>>> > checking for socket... no
>>> > checking for socket in -lsocket... no
>>> > configure: warning: *** Unable to locate socket() function.
>>> > checking for location of zlib includes...
>>> > checking for zlib.h... no
>>> > configure: error: *** Unable to locate zlib includes.
>>> > Any idea?
>>> >
>>> > Best wishes,
>>> >
>>> > milton
>>> > Toronto, CA
>>> > 2009/3/28 Colin Nielsen <[hidden email]>
>>> >>
>>> >> I just wanted to announce that the CompileOnWindows wiki entry
>>> >> <http://trac.osgeo.org/grass/wiki/CompileOnWindows> is finished and
>>> >> now allows anyone to develop grass on windows (vista or xp) through
>>> >> the mingw/msys system with no dependency compiling and relatively
>>> >> little extra work (thanks to jef for solving all remaining issues by
>>> >> adding the mingw-libs package to the wiki).
>>> >>
>>> >> -Colin
>>> >> _______________________________________________
>>> >> grass-windows mailing list
>>> >> [hidden email]
>>> >> http://lists.osgeo.org/mailman/listinfo/grass-windows
>>> >
>>> >
>>
>
>
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Markus Neteler

Re: [GRASS-dev] Instructions for devel versions added to CompileOnWindows

Reply Threaded More More options
Print post
Permalink
On Sun, Mar 29, 2009 at 5:09 PM, Colin Nielsen <[hidden email]> wrote:

> Milton:
>> By the way, I remember that almost on my case I needed to incluide
>> to extra steps before start GRASS
>>
>> GRASS_WISH=/c/OSGeo4W/bin/wish.exe
>> export GRASS_WISH
>> cd /c/OSGeo4W/apps/grass/bin
>> grass6
>
> Is this a problem specific to xp/vista 64-bit? Can you give us more
> details on the error messages you receive?

See
http://trac.osgeo.org/osgeo4w/ticket/71

> I believe the setting of
> GRASS_WISH should be handled by etc/Init.sh. So if this isn't working
> on x64 this should be fixed.

In etc/init.bat I see
if "%GRASS_WISH%"=="" set GRASS_WISH=wish.exe

Apparently wish.exe is not in the path in OSGeo4W and hence
the full path needs to be specified. But this seems to be OSGeo4W
specific.

Markus
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Colin Nielsen

Re: [GRASS-dev] Instructions for devel versions added to CompileOnWindows

Reply Threaded More More options
Print post
Permalink
The grass64 (non-bat) startup from within msys uses Init.sh rather
than Init.bat. I think the equivalent in init.sh is line 299:
GRASS_WISH=wish

Perhaps this is a PATH problem, since wish.exe is in /osgeo4w/bin
which should be in PATH. I can't be sure, since grass starts fine for
me without the wish error.

-Colin



On Sun, Mar 29, 2009 at 11:59 AM, Markus Neteler <[hidden email]> wrote:

> On Sun, Mar 29, 2009 at 5:09 PM, Colin Nielsen <[hidden email]> wrote:
>> Milton:
>>> By the way, I remember that almost on my case I needed to incluide
>>> to extra steps before start GRASS
>>>
>>> GRASS_WISH=/c/OSGeo4W/bin/wish.exe
>>> export GRASS_WISH
>>> cd /c/OSGeo4W/apps/grass/bin
>>> grass6
>>
>> Is this a problem specific to xp/vista 64-bit? Can you give us more
>> details on the error messages you receive?
>
> See
> http://trac.osgeo.org/osgeo4w/ticket/71
>
>> I believe the setting of
>> GRASS_WISH should be handled by etc/Init.sh. So if this isn't working
>> on x64 this should be fixed.
>
> In etc/init.bat I see
> if "%GRASS_WISH%"=="" set GRASS_WISH=wish.exe
>
> Apparently wish.exe is not in the path in OSGeo4W and hence
> the full path needs to be specified. But this seems to be OSGeo4W
> specific.
>
> Markus
>
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Markus Neteler

Re: [GRASS-dev] Instructions for devel versions added to CompileOnWindows

Reply Threaded More More options
Print post
Permalink
On Sun, Mar 29, 2009 at 6:45 PM, Colin Nielsen <[hidden email]> wrote:
> The grass64 (non-bat) startup from within msys uses Init.sh rather
> than Init.bat. I think the equivalent in init.sh is line 299:
> GRASS_WISH=wish

Ah, ok. So I guess that a condition is needed: if Windows, then wish.exe,
not wish. Maybe Milton can try that?

> Perhaps this is a PATH problem, since wish.exe is in /osgeo4w/bin
> which should be in PATH. I can't be sure, since grass starts fine for
> me without the wish error.

Still just guessing :)

Markus
_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows
Milton Cezar Ribeiro

Re: [GRASS-dev] Instructions for devel versions added to CompileOnWindows

Reply Threaded More More options
Print post
Permalink
Hi Colin & Markus,
 
I changed the line 299 of .../etc/Init.sh on three ways:
  a)  GRASS_WISH=wish.exe
  b)  GRASS_WISH=/c/OSGeo4W/bin/wish.exe
  c)  GRASS_WISH=/c/OSGeo4W/bin/wish85.exe
 
After I started MSYS and GRASS65: choices (b) and (c) worked fine,
but (a) still get error. May be we need to include "/c/OSGeo4W/bin"
on the PATH?
 
In fact, when I am writing, I tested options (b) and (c) and GRASS bypass
the WISH problem. But I get SEVERAL errors under MSYS, because
the system say that CAN'T find several lib** files, and CRASH. It happens only
under MSYS!
 
BUT, if I add the path as shown below (etc/Init.sh) the things are solved.
 
if [ -n "$GRASS_ADDON_PATH" ] ; then
   PATH="$GISBASE/bin:$GISBASE/scripts:$GRASS_ADDON_PATH:/c/OSGeo4W/bin:$PATH"
else
   PATH="$GISBASE/bin:$GISBASE/scripts:/c/OSGeo4W/bin:$PATH"
fi
So, I think we need to include the OSGeo4W/bin on the PATH almost for
VISTA 64bits.
 
I Continue testing... Remembering that I compiled GRASS 6.5 yesterday (MSYS).
 
Curiously, I get the same problems (GRASS Crashing AFTER RUN ONLY ONE TIME AFTER INSTALATION UNDER MSYS) on the grass64 binaries compiled and available on OSGeo4 site. I don't know the reason of the GRASS run once time and
not run fine again...
 
Well, I am here to test... almost under Vista (sorry!) 64.
 
milton

2009/3/29 Markus Neteler <[hidden email]>
On Sun, Mar 29, 2009 at 6:45 PM, Colin Nielsen <[hidden email]> wrote:
> The grass64 (non-bat) startup from within msys uses Init.sh rather
> than Init.bat. I think the equivalent in init.sh is line 299:
> GRASS_WISH=wish

Ah, ok. So I guess that a condition is needed: if Windows, then wish.exe,
not wish. Maybe Milton can try that?

> Perhaps this is a PATH problem, since wish.exe is in /osgeo4w/bin
> which should be in PATH. I can't be sure, since grass starts fine for
> me without the wish error.

Still just guessing :)

Markus


_______________________________________________
grass-windows mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-windows