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

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 <miltinho.astronauta@gmail.com>

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 <colin.nielsen@gmail.com>

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
<miltinho.astronauta@gmail.com> 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 <colin.nielsen@gmail.com>
>>
>> I just wanted to announce that the CompileOnWindows wiki entry
>> <http://trac.osgeo.org/grass/wiki/CompileOnWindows&gt; 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
>> grass-windows@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-windows
>
>

On Sun, Mar 29, 2009 at 5:09 PM, Colin Nielsen <colin.nielsen@gmail.com> 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

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 <neteler@osgeo.org> wrote:

On Sun, Mar 29, 2009 at 5:09 PM, Colin Nielsen <colin.nielsen@gmail.com> 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

On Sun, Mar 29, 2009 at 6:45 PM, Colin Nielsen <colin.nielsen@gmail.com> 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 :slight_smile:

Markus