This is the mail archive of the cygwin@sources.redhat.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]

Re: cygwin and gtk+


You need to include /usr/X11R6/bin in your path, and use
'--x-libraries=/usr/X11R6/lib' as well as
'--x-include=/usr/X11R6/includes' when configuring. (I'm assuming you've
installed the X11R6 distro from http://sources.redhat.com/cygwin/xfree/
into /usr/X11R6.  If not, please see the cygwin-xfree webpage and
mailing list, available from the URL above.

--Chuck


"Ermold, Brian D" wrote:
> 
> Hello,
> 
> I've been trying to get gtk+ to compile in the cygwin environment and the
> darn ./configure script keeps failing because it can't find -lXt. Does
> cygwin not support this or am I doing something wrong?
> 
> The error on the command line says:
> checking for X... no
> configure: error:
> *** X libraries or include files not found. Check 'config.log' for
> *** more details.
> 
> The last few lines in the config.log shows many different things depending
> on the switches I have set but the closest I have gotten shows:
> 
> configure:4537: checking for X
> configure:4604: gcc -E conftest.c >/dev/null 2>conftest.out
> configure:4600: X11/Intrinsic.h: No such file or directory
> configure: failed program was:
> #line 4599 "configure"
> #include "confdefs.h"
> #include <X11/Intrinsic.h>
> configure:4680: gcc -o conftest -g -O2 -Wall conftest.c -lXt 1>&5
> configure: In function `main':
> configure:4676: warning: implicit declaration of function `XtMalloc'
> /CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95.2/../../../../i586-
> cygwin32/bin/ld: cannot open -lXt: No such file or directory
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 4673 "configure"
> #include "confdefs.h"
> 
> int main() {
> XtMalloc()
> ; return 0; }
> 
> I was using the --x-includes to point to the X11 include directory in this
> example which seems to help but doesn't get me past this last problem. Any words
> of wisdom or is this just not possible to do without some major work?
> 
> Thanks,
> Brian
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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