nanogui: a question about Tcl ,Tk ,Nxlib and Nano- X


Previous by date: 6 Feb 2007 07:44:20 +0000 Re: a question about Tcl ,Tk ,N xlib and Nano- X, Greg Haerr
Next by date: 6 Feb 2007 07:44:20 +0000 uCLinux support for NXLIB and FLTK., Franco Casadei
Previous in thread: 6 Feb 2007 07:44:20 +0000 Re: a question about Tcl ,Tk ,N xlib and Nano- X, Greg Haerr
Next in thread: 6 Feb 2007 07:44:20 +0000 Re: a question about Tcl ,T k ,N xlib and Nano- X, Greg Haerr

Subject: Re: Re: [nanogui] a question about Tcl ,T k ,N xlib and Nano- X
From: ####@####.####
Date: 6 Feb 2007 07:44:20 +0000
Message-Id: <45C8318A.0000F6.06978@bj126app56.126.com>

Hi Greg,
 
I had tried using NXLIB 0.45 and Microwindows-0.91 several times,and compiled with sucess.
But when compiling TK use libnx11.a, I got error messages:
 
gcc -pipe -O2    -Wl,--export-dynamic tkAppInit.o
-L/home/user/src/tk8.4.14/unix -ltk8.4 \
        -L/home/user/src/tcl8.4.14/unix -ltcl8.4  -lpthread
-L/home/user/src/nxlib-0.45 -lnx11
-L/home/user/src/microwindows-0.91/src/lib -lnano-X  -ldl -lieee -lm
-Wl,-rpath,/usr/local/lib:/usr/X11R6/lib -o wish
/home/user/src/tk8.4.14/unix/libtk8.4.a(tkUnixSelect.o)(.text+0xcc): In
function `TkSelGetSelection':
tkUnixSelect.c: undefined reference to `XConvertSelection'
/home/user/src/tk8.4.14/unix/libtk8.4.a(tkSelect.o)(.text+0x2bb): In
function `Tk_ClearSelection':
tkSelect.c: undefined reference to `XSetSelectionOwner'
/home/user/src/tk8.4.14/unix/libtk8.4.a(tkSelect.o)(.text+0x3a7): In
function `Tk_OwnSelection':
tkSelect.c: undefined reference to `XSetSelectionOwner'
collect2: ld return 1
make: *** [wish] error 1

 
 Thanks and Regards,
 Tom
----------------------------------------------------------
"Greg Haerr" ####@####.#### :




Try using NXLIB 0.45, it has lots of important fixes.
 
Regards,
 
Greg

----- Original Message ----- 
From: ####@####.#### 
To: ####@####.#### 
Cc: greg haerr ; ####@####.#### 
Sent: Friday, February 02, 2007 2:16 AM
Subject: Re: [nanogui] a question about Tcl ,Tk ,N xlib and Nano- X


Hi,
 
I just forgot  the important thing ... Hope someone can help me.
Log of running wish (TLC8.4.14+TK8.4.14+Nxlib0.44+Microwindows 0.91):
 
nx11: display bpp = 32, bits_per_rgb 8
XSetLocaleModifiers called
nxTranslateEventMask no handler for event mask (00c1807f): 16 22 23
XInternAtom Comm 0
XInternAtom InterpRegistry 0
XInternAtom TK_APPLICATION 0
XGrabServer called
XChangeProperty InterpRegistry
XUngrabServer called
XChangeProperty TK_APPLICATION
% nxTranslateEventMask no handler for event mask (00c1807f): 16 22 23
nxTranslateEventMask no handler for event mask (00e3807f): 16 22 23
XSetClassHint called
XInternAtom UTF8_STRING 0
XInternAtom _NET_WM_NAME 0
XChangeProperty _NET_WM_NAME
XInternAtom WM_DELETE_WINDOW 0
XInternAtom WM_PROTOCOLS 0
XChangeProperty WM_PROTOCOLS
XAllocSizeHints called
 
 
Thanks
Regards

 
----------------------------------------------------------------------
####@####.#### :

Dear all,



I tried to run TK  use the lib of Nano-X, what I did was:



1) installed microwindows-0.91  (in conifg :Threadsafe=Y, SHARELIBS=N,FREETYPE2=Y) 



   (with success).



2)installed Nxlib 0.44 (in Makefile XRM=N)   with success.



3) installed TCL 8.4.14,



./configure --enable-threads --disable-shared  and make & make install with success.



4) installed Tk8.4.14 



  ./configure --without-x --enable-threads --disable-shared 



  and in  Makfile: added to the LIBS: -lnano-X -lnx11),with success



4)then I run the Nano-X server by  "./nano-X & ./nanowm & sleep 1000"



5) run wish



6)as a test ,I tried to  inputed the  command to drew  a button:



%   button .b -text "hello" -command exit



%   pack .b



then a blank rectangle appeared,but  the button  wasn't really mapped......



Please suggest me some pointers to the solution of the  problem.



Thanks a lot and  best Regards,



Tom Lu



 



   



物超所值的选择,你够精明吗? www.188.com 

Previous by date: 6 Feb 2007 07:44:20 +0000 Re: a question about Tcl ,Tk ,N xlib and Nano- X, Greg Haerr
Next by date: 6 Feb 2007 07:44:20 +0000 uCLinux support for NXLIB and FLTK., Franco Casadei
Previous in thread: 6 Feb 2007 07:44:20 +0000 Re: a question about Tcl ,Tk ,N xlib and Nano- X, Greg Haerr
Next in thread: 6 Feb 2007 07:44:20 +0000 Re: a question about Tcl ,T k ,N xlib and Nano- X, Greg Haerr


Powered by ezmlm-browse 0.20.