<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-3" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hamish wrote:
<blockquote cite="mid:20070831154414.1c0ee375.hamish_nospam@yahoo.com"
type="cite">
<pre wrap="">Luigi Ponti wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Installation instructions at
<a class="moz-txt-link-rfc2396E" href="http://grass.itc.it/grass62/binary/mswindows/"><http://grass.itc.it/grass62/binary/mswindows/></a> say that "there's no
grass.bat script", but (no matter what I try) there is no way for me to
start grass with the recommended cygwin_grass.bat. It just works fine
if there is an X server already started from a previous grass.bat run.
Below you find the error log I have obtained via the following command
cygwin_grass.bat > c:\cygwin\all_out.txt 2>&1
</pre>
</blockquote>
<pre wrap=""><!---->..
</pre>
<blockquote type="cite">
<pre wrap="">Starting GRASS ...
Application initialization failed: this isn't a Tk applicationcouldn't
connect to display "localhost:0"
Error in startup script: dynamic loading is not currently available on
this system
while executing
"load /usr/local/lib/tk8.4/../libtk8.4.a Tk"
</pre>
</blockquote>
<pre wrap=""><!---->..
Did you modify the bash line to run startx, launching X at startup?
bash --login -i -c startx
</pre>
</blockquote>
Yes, I did. Here is my cygwin_grass.bat file:<br>
<blockquote>@echo off<br>
<br>
C:<br>
chdir C:\cygwin\bin<br>
<br>
set GRASS_AUTOSTART=1<br>
<br>
bash --login -i -c startx<br>
</blockquote>
<br>
If I run just the last line at the command prompt:<br>
<blockquote>bash --login -i -c startx > c:\cygwin\all_out.txt
2>&1<br>
</blockquote>
I get the following all_out.txt:<br>
<blockquote>Welcome to the XWin X Server<br>
Vendor: The Cygwin/X Project<br>
Release: 6.8.99.901-4<br>
<br>
Contact: <a class="moz-txt-link-abbreviated" href="mailto:cygwin-xfree@cygwin.com">cygwin-xfree@cygwin.com</a><br>
<br>
XWin was started with the following command line:<br>
<br>
X :0 -multiwindow -clipboard <br>
<br>
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root<br>
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1<br>
(II) XF86Config is not supported<br>
(II) See <a class="moz-txt-link-freetext" href="http://x.cygwin.com/docs/faq/cygwin-x-faq.html">http://x.cygwin.com/docs/faq/cygwin-x-faq.html</a> for more
information<br>
winDetectSupportedEngines - Windows NT/2000/XP<br>
winDetectSupportedEngines - DirectDraw installed<br>
winDetectSupportedEngines - DirectDraw4 installed<br>
winDetectSupportedEngines - Returning, supported engines 00000007<br>
winSetEngine - Multi Window or Rootless => ShadowGDI<br>
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits
per pixel<br>
winAllocateFBShadowGDI - Creating DIB with width: 1024 height: 768
depth: 32<br>
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff<br>
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24
bpp 32<br>
null screen fn ReparentWindow<br>
null screen fn RestackWindow<br>
InitQueue - Calling pthread_mutex_init<br>
InitQueue - pthread_mutex_init returned<br>
InitQueue - Calling pthread_cond_init<br>
InitQueue - pthread_cond_init returned<br>
winInitMultiWindowWM - Hello<br>
winInitMultiWindowWM - Calling pthread_mutex_lock ()<br>
winMultiWindowXMsgProc - Hello<br>
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()<br>
MIT-SHM extension disabled due to lack of kernel support<br>
XFree86-Bigfont extension local-client optimization disabled due to
lack of shared memory support in the kernel<br>
(--) Setting autorepeat to delay=500, rate=31<br>
(--) winConfigKeyboard - Layout: "00000410" (00000410) <br>
(--) Using preset keyboard for "Italian" (410), type "4"<br>
Rules = "xorg" Model = "pc105" Layout = "it" Variant = "(null)" Options
= "(null)"<br>
The XKEYBOARD keymap compiler (xkbcomp) reports:<br>
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT>
has 2 symbols<br>
> Ignoring extra symbols<br>
Errors from xkbcomp are not fatal to the X server<br>
(--) 3 mouse buttons found<br>
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/,
removing from list!<br>
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/,
removing from list!<br>
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/,
removing from list!<br>
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/,
removing from list!<br>
winPointerWarpCursor - Discarding first warp: 512 384<br>
winInitMultiWindowWM - pthread_mutex_lock () returned.<br>
winProcEstablishConnection - Hello<br>
</blockquote>
And X does start (it is an X terminal and if I type grass62 and hit
return, GRASS starts just fine). But if I manually run at promt:<br>
<blockquote>set GRASS_AUTOSTART=1<br>
bash --login -i -c startx<br>
</blockquote>
the next thing I see is the GRASS startup message<br>
<blockquote>Cleaning up temporary files.....<br>
Starting GRASS ...<br>
</blockquote>
And no X runs. GRASS starts in text mode but then it tries to load a
GUI and off course this fails.<br>
<br>
Hope I provided some useful info. Thanks in advance,<br>
<br>
Luigi<br>
<br>
P.S. I also added the following at the and of .bashrc<br>
<br>
#################<br>
# Start GRASS<br>
if [ -n "$DISPLAY" ] && [ -n "$GRASS_AUTOSTART" ] ; then<br>
unset GRASS_AUTOSTART<br>
exec grass62<br>
fi<br>
#################
</body>
</html>