nanogui: Re:Re: migrating a tcl/tk application to nano gui (microwindows)
Subject:
Re:Re: migrating a tcl/tk application to nano gui (microwindows)
From:
"sting sting" ####@####.####
Date:
29 Apr 2004 12:07:50 +0100
Message-Id: <SEA2-F3tyVPV09XQUG000021f9a@hotmail.com>
Thnxs , Greg.
What I did was :
on a RH9 machine with no tcl/tk, no microwindows,no nxlib:
first , installed microwindows: (0.90)
copied config.x11 from Configs.
changed HAVE_FREETYPE_2_SUPPORT = N to HAVE_FREETYPE_2_SUPPORT = Y.
and make (with success).
installed NXLIB: (0.44)
====================
in make I got the following error:
Xrm.c:2663: conflicting types for `XrmLocaleOfDatabase'
/usr/X11R6/include/X11/Xresource.h:375: previous declaration of
`XrmLocaleOfDatabase'
Xrm.c: In function `XrmLocaleOfDatabase':
Xrm.c:2669: warning: return discards qualifiers from pointer target type
make: *** [Xrm.o] Error 1
so in makefile I changed : INCLUDE_XRM=Y to INCLUDE_XRM=N (is it ok to do it
????)
and make (with success).
TCL: (8.5a1)
=====
./configure --enable-threads --disable-shared
and make && make install (with success).
TK: (8.5a1)
=====
./configure --without-x --enable-threads --disable-shared
--with-tcl=../buildtcl
in Makfile:
added to the LIBS: -lnano-X -lnx11
(with a path to these static libs)
and make && make install (with success).
now , env |grep DISPLAY returns
DISPLAY=:0.0
when I try to run the wish (by ./wish from the tk build folder or from
/usr/local/bin)
I get the followng error log:
/usr/local/bin/wish8.5
nxclient: retry connect attempt 1
nxclient: retry connect attempt 2
nxclient: retry connect attempt 3
nxclient: retry connect attempt 4
nxclient: retry connect attempt 5
nxclient: retry connect attempt 6
nxclient: retry connect attempt 7
nxclient: retry connect attempt 8
nxclient: retry connect attempt 9
nxclient: retry connect attempt 10
nx11: can't connect to nano-X server
Application initialization failed: this isn't a Tk applicationcouldn't
connect to display ":0.0"
Any idea ?
regards,
Sting
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail