This is the mail archive of the cygwin-xfree@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

usage of Xt?


Dear Cygwinners:

I have been working for a few weeks porting some apps
and libraries from linux to win32 under cygwin.  

I have been successful building some DLL's that don't
use X.  (Yeah!)  These DLL's include public DATA, so I
learned the __declspec() trick.  Overall, I think I
understand the DLL process versus the *.so process
under linux.  

My problem has been with a pesky X library that uses
Motif.  It works great in the example apps when
compiled statically, but not dynamically in the DLL.  

The library uses: -lXm -lXt -lX11 -lSM -lICE

It compiles the DLL without incident.  The example
compiles without incident.  When I run the example I
get the following to stderr:

<SNIP>
Warning: translation table syntax error: Unknown event
type :   BtnMotion
Warning: ... found while parsing '<BtnMotion>:        
     ManagerGadgetButtonM
otion()'
Warning: String to TranslationTable conversion
encountered errors
Warning: translation table syntax error: Unknown event
type :   EnterWindow
Warning: ... found while parsing '<EnterWindow>:      
     ManagerEnter()'
Warning: String to TranslationTable conversion
encountered errors
Warning: translation table syntax error: Unknown event
type :   Btn1Down
Warning: ... found while parsing '<Btn1Down>:
XmLFolderActivate()'
Warning: String to TranslationTable conversion
encountered errors
Error: Couldn't find per display information
<SNIP>

No X window is built.  I am no Xpert unfortunately. 
However, these warnings appear to be bubbling up out
of Xt.  Is it possible that the fact that Xt is only
static is a problem???  In the list of libraries, Xm
and Xt are both static and the others are dynamic.

I found a note that pertains to this in the
Cygwin-XFree FAQ.  It is 3.12.  The note leads me to
believe that it is not possible to build an Xt dll due
to a problem with static initialization of global data
(perhaps precisely my problem).

Anyway, I am fishing for advice on how to proceed.  Is
it possible that I need a dll version of Xt and Xm? 
Or is something else the issue?

Thank you all for the advice.  I would like to say
that without lurking through the mailing list archive
proceeding as far as I have with this project would
have been flat out impossible.  Thanks!


=====
-- Craig Stevenson
-- Home Page: http://www.sdc.org/~craigs/
-- Recently computed: The 200 billionth digit of pi is 2.

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]