This is the mail archive of the
cygwin-xfree@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: usage of Xt?
- To: <craig dot stevenson at ieee dot org>, "cygwin-xfree" <cygwin-xfree at sourceware dot cygnus dot com>
- Subject: RE: usage of Xt?
- From: "Suhaib Siddiqi" <ssiddiqi at inspirepharm dot com>
- Date: Thu, 13 Apr 2000 10:32:05 -0700
It is correct that you cannot build Xt as a DLL, unless you use the trick
Exceed folks did... that write a custom dll and all the X and MOTIF dlls
call it first.
Your problems is that you need to set XKeysymDb and XErrorDB. This had been
discussed
a few times and you should an answer to your problem in mailing list
archives of cygwin-xfree
and cygwin.
I am updating the FAQ and a work around for this problem will be in updated
FAQ.
Actually I had been working on updating FAQ and Cygwin-xfree URL today.
Suhaib
> -----Original Message-----
> From: cygwin-xfree-owner@sourceware.cygnus.com
> [mailto:cygwin-xfree-owner@sourceware.cygnus.com]On Behalf Of Craig
> Stevenson
> Sent: Thursday, April 13, 2000 10:30 AM
> To: cygwin-xfree
> Subject: 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