public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* problems with libX11.a
@ 2003-12-31 22:34 Mark Mussetter
  2003-12-31 23:14 ` Harold L Hunt II
  2003-12-31 23:23 ` Harold L Hunt II
  0 siblings, 2 replies; 6+ messages in thread
From: Mark Mussetter @ 2003-12-31 22:34 UTC (permalink / raw)
  To: cygwin-xfree

Hello Everyone,

I'm running Cygwin on a Windows 2000 machine and I'm trying to get 
MicroWindows going.  My problem is that I'm getting the following error:
***
make[1]: *** No rule to make target `/usr/X11R6/lib/libX11.a', needed by 
`/microwindows/microwindows-0.90/src/bin/nano-X'.  Stop.
***

I do have "libX11.dll" but can't find the "libX11.a" library 
anywhere.  We've updated our Cygwin this morning using the Cygwin setup 
utility so I think we are as current as we can be.  We've done a search on 
the entire Cygwin directory and "libX11.a" is nowhere to be found.

Can someone point me in the right direction to solving this problem?

Thanks in advance for any help,


Mark Mussetter
Link Communications, Inc.
email: <mailto:mark@link-comm.com>mark@link-comm.com
phone: (406) 245-5002 ext 105
Fax:    (406) 245-4889


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problems with libX11.a
  2003-12-31 22:34 problems with libX11.a Mark Mussetter
@ 2003-12-31 23:14 ` Harold L Hunt II
  2003-12-31 23:23 ` Harold L Hunt II
  1 sibling, 0 replies; 6+ messages in thread
From: Harold L Hunt II @ 2003-12-31 23:14 UTC (permalink / raw)
  To: cygwin-xfree

Mark,

Well you have one problem that is immediate:

You need the XFree86-prog package.

The XFree86-prog package is installed via Cygwin's setup.exe program.


You possibly have another problem that may be secondary:

If MicroWindows is trying to link against libX11.a explicitly, rather 
than the usual -lX11, then you will need to fix the build files for 
MicroWindows to tell it to just link against -lX11.  Our linker will 
figure out that -lX11 really means to link against libX11.dll.a.  But, 
you shouldn't look into this possible problem until you have 
XFree86-prog installed and have tried building again.

I hope that helps,

Harold

Mark Mussetter wrote:
> Hello Everyone,
> 
> I'm running Cygwin on a Windows 2000 machine and I'm trying to get 
> MicroWindows going.  My problem is that I'm getting the following error:
> ***
> make[1]: *** No rule to make target `/usr/X11R6/lib/libX11.a', needed by 
> `/microwindows/microwindows-0.90/src/bin/nano-X'.  Stop.
> ***
> 
> I do have "libX11.dll" but can't find the "libX11.a" library anywhere.  
> We've updated our Cygwin this morning using the Cygwin setup utility so 
> I think we are as current as we can be.  We've done a search on the 
> entire Cygwin directory and "libX11.a" is nowhere to be found.
> 
> Can someone point me in the right direction to solving this problem?
> 
> Thanks in advance for any help,
> 
> 
> Mark Mussetter
> Link Communications, Inc.
> email: <mailto:mark@link-comm.com>mark@link-comm.com
> phone: (406) 245-5002 ext 105
> Fax:    (406) 245-4889
> 
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problems with libX11.a
  2003-12-31 22:34 problems with libX11.a Mark Mussetter
  2003-12-31 23:14 ` Harold L Hunt II
@ 2003-12-31 23:23 ` Harold L Hunt II
  2004-01-01  0:07   ` Mark Mussetter
  1 sibling, 1 reply; 6+ messages in thread
From: Harold L Hunt II @ 2003-12-31 23:23 UTC (permalink / raw)
  To: cygwin-xfree

Mark,

Can you tell me your build steps and/or send me your build config file? 
  I would like to try building at least nanox and see if it would be 
useful to distribute via Cygwin's setup.exe.  Please send the config 
file to me privately if it is larger than 25 KiB.

Thanks,

Harold

Mark Mussetter wrote:
> Hello Everyone,
> 
> I'm running Cygwin on a Windows 2000 machine and I'm trying to get 
> MicroWindows going.  My problem is that I'm getting the following error:
> ***
> make[1]: *** No rule to make target `/usr/X11R6/lib/libX11.a', needed by 
> `/microwindows/microwindows-0.90/src/bin/nano-X'.  Stop.
> ***
> 
> I do have "libX11.dll" but can't find the "libX11.a" library anywhere.  
> We've updated our Cygwin this morning using the Cygwin setup utility so 
> I think we are as current as we can be.  We've done a search on the 
> entire Cygwin directory and "libX11.a" is nowhere to be found.
> 
> Can someone point me in the right direction to solving this problem?
> 
> Thanks in advance for any help,
> 
> 
> Mark Mussetter
> Link Communications, Inc.
> email: <mailto:mark@link-comm.com>mark@link-comm.com
> phone: (406) 245-5002 ext 105
> Fax:    (406) 245-4889
> 
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problems with libX11.a
  2003-12-31 23:23 ` Harold L Hunt II
@ 2004-01-01  0:07   ` Mark Mussetter
  2004-01-01  0:27     ` Harold L Hunt II
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Mussetter @ 2004-01-01  0:07 UTC (permalink / raw)
  To: cygwin-xfree

Hi Harold,

Thanks for your help.  We were able to get MicroWindows running after you 
pointed us in the right direction.  We already had the Xfree86-prog package 
but you comments about trying to link explicitly to libX11.a led us to the 
problem.  The following is a clip from Makefile.rules:

ifeq ($(X11), Y)
DEFINES += -DX11=1
ifneq ($(ARCH),CYGWIN)
# Cygwin can't use this - the -lX11 needs to be specified
# *after* the object files that use it, but this inserts
# it at the start.  For Cygwin, we will add libX11.a to the
# library list instead.
LDFLAGS += -L/usr/X11R6/lib -lX11
else
MW_CORE_LIBS += /usr/X11R6/lib/libX11.dll.a
endif
ifeq ($(ARCH),FREEBSD-X86)
INCLUDEDIRS += -I/usr/X11R6/include
endif
ifeq ($(ARCH),CYGWIN)
INCLUDEDIRS += -I/usr/X11R6/include
endif
endif

We changed the 10th line to its current state.  It used to say 
"MW_CORE_LIBS += /usr/X11R6/lib/libX11.a"

Once we made that change everything else fell into place and we were able 
to run the demos.

My steps were:
1. cd microwin/src

2. Typed "cp Configs/config.cygwin config" for the cygwin configuration.

    See CONTENTS and Configs/README for more information.

3. Typed "make"

4. Change the Makefile.rules file to link against libX11.dll.a instead of 
libX11.a

5. Typed "make"

4. Ran ./demo.sh


Thanks again for your help,


At 05:32 PM 12/31/2003 -0500, you wrote:
>Mark,
>
>Can you tell me your build steps and/or send me your build config file?  I 
>would like to try building at least nanox and see if it would be useful to 
>distribute via Cygwin's setup.exe.  Please send the config file to me 
>privately if it is larger than 25 KiB.
>
>Thanks,
>
>Harold
>
>Mark Mussetter wrote:
>>Hello Everyone,
>>I'm running Cygwin on a Windows 2000 machine and I'm trying to get 
>>MicroWindows going.  My problem is that I'm getting the following error:
>>***
>>make[1]: *** No rule to make target `/usr/X11R6/lib/libX11.a', needed by 
>>`/microwindows/microwindows-0.90/src/bin/nano-X'.  Stop.
>>***
>>I do have "libX11.dll" but can't find the "libX11.a" library anywhere.
>>We've updated our Cygwin this morning using the Cygwin setup utility so I 
>>think we are as current as we can be.  We've done a search on the entire 
>>Cygwin directory and "libX11.a" is nowhere to be found.
>>Can someone point me in the right direction to solving this problem?
>>Thanks in advance for any help,
>>
>>Mark Mussetter
>>Link Communications, Inc.
>>email: <mailto:mark@link-comm.com>mark@link-comm.com
>>phone: (406) 245-5002 ext 105
>>Fax:    (406) 245-4889
>
>Mark Mussetter
>Link Communications, Inc.
>email: <mailto:mark@link-comm.com>mark@link-comm.com
>phone: (406) 245-5002 ext 105
>Fax:    (406) 245-4889


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problems with libX11.a
  2004-01-01  0:07   ` Mark Mussetter
@ 2004-01-01  0:27     ` Harold L Hunt II
  2004-01-02 15:42       ` Mark Mussetter
  0 siblings, 1 reply; 6+ messages in thread
From: Harold L Hunt II @ 2004-01-01  0:27 UTC (permalink / raw)
  To: cygwin-xfree

Mark,

Thanks, those instructions work until it gets to the 'nbreaker' demo:

Linking /home/harold/x-devel/ports/MicroWindows/build/src/bin/launcher ...
Updating dependencies in 
/home/harold/x-devel/ports/MicroWindows/build/src/demos
/nbreaker ...
Compiling animate.c ...
In file included from animate.c:41:
nbreaker.h:160: error: syntax error before "GR_PIXMAP_ID"
nbreaker.h:160: warning: no semicolon at end of struct or union
nbreaker.h:161: warning: type defaults to `int' in declaration of `a'
nbreaker.h:161: warning: data definition has no type or storage class
nbreaker.h:171: error: syntax error before '}' token


Seems that GR_PIXMAP_ID is not defined in the included headers.  Can you 
describe how you worked through this?

Harold

Mark Mussetter wrote:

> Hi Harold,
> 
> Thanks for your help.  We were able to get MicroWindows running after 
> you pointed us in the right direction.  We already had the Xfree86-prog 
> package but you comments about trying to link explicitly to libX11.a led 
> us to the problem.  The following is a clip from Makefile.rules:
> 
> ifeq ($(X11), Y)
> DEFINES += -DX11=1
> ifneq ($(ARCH),CYGWIN)
> # Cygwin can't use this - the -lX11 needs to be specified
> # *after* the object files that use it, but this inserts
> # it at the start.  For Cygwin, we will add libX11.a to the
> # library list instead.
> LDFLAGS += -L/usr/X11R6/lib -lX11
> else
> MW_CORE_LIBS += /usr/X11R6/lib/libX11.dll.a
> endif
> ifeq ($(ARCH),FREEBSD-X86)
> INCLUDEDIRS += -I/usr/X11R6/include
> endif
> ifeq ($(ARCH),CYGWIN)
> INCLUDEDIRS += -I/usr/X11R6/include
> endif
> endif
> 
> We changed the 10th line to its current state.  It used to say 
> "MW_CORE_LIBS += /usr/X11R6/lib/libX11.a"
> 
> Once we made that change everything else fell into place and we were 
> able to run the demos.
> 
> My steps were:
> 1. cd microwin/src
> 
> 2. Typed "cp Configs/config.cygwin config" for the cygwin configuration.
> 
>    See CONTENTS and Configs/README for more information.
> 
> 3. Typed "make"
> 
> 4. Change the Makefile.rules file to link against libX11.dll.a instead 
> of libX11.a
> 
> 5. Typed "make"
> 
> 4. Ran ./demo.sh
> 
> 
> Thanks again for your help,


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problems with libX11.a
  2004-01-01  0:27     ` Harold L Hunt II
@ 2004-01-02 15:42       ` Mark Mussetter
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Mussetter @ 2004-01-02 15:42 UTC (permalink / raw)
  To: cygwin-xfree

Harold,

Sorry I forgot about that part.  The 'nbreaker' demo seemed to be the only 
demo causing problems and we were under some pressure to get the project 
built, so we moved the 'nbreaker' demo out of the demo directory so it 
wouldn't try to be built with the rest of the project.

I did some looking before removing the demo and found that 'GR_PIXMAP_ID' 
is NOT defined in any header.  I found a reference to 'GR_PIXMAP_ID' in the 
file 'original_mini-x.txt' which discussed all of the TYPEDEFS in the 
project.  This led me to the 'nano-X.h' header, which defines all of the 
other defines listed in 'oringal_mini-x.txt.'  I noticed that the comment 
on the typedef for 'GR_WINDOW_ID' mentioned that it was a "window or pixmap 
id."  I am assuming that if you were to define 'GR_PIXMAP_ID' in the same 
fashion as 'GR_WINDOW_ID' that you might be able to get the project to 
build...we just didn't have time to explore that option.

Mark


At 07:26 PM 12/31/2003 -0500, you wrote:
>Mark,
>
>Thanks, those instructions work until it gets to the 'nbreaker' demo:
>
>Linking /home/harold/x-devel/ports/MicroWindows/build/src/bin/launcher ...
>Updating dependencies in 
>/home/harold/x-devel/ports/MicroWindows/build/src/demos
>/nbreaker ...
>Compiling animate.c ...
>In file included from animate.c:41:
>nbreaker.h:160: error: syntax error before "GR_PIXMAP_ID"
>nbreaker.h:160: warning: no semicolon at end of struct or union
>nbreaker.h:161: warning: type defaults to `int' in declaration of `a'
>nbreaker.h:161: warning: data definition has no type or storage class
>nbreaker.h:171: error: syntax error before '}' token
>
>
>Seems that GR_PIXMAP_ID is not defined in the included headers.  Can you 
>describe how you worked through this?
>
>Harold
>
>Mark Mussetter wrote:
>
>>Hi Harold,
>>Thanks for your help.  We were able to get MicroWindows running after you 
>>pointed us in the right direction.  We already had the Xfree86-prog 
>>package but you comments about trying to link explicitly to libX11.a led 
>>us to the problem.  The following is a clip from Makefile.rules:
>>ifeq ($(X11), Y)
>>DEFINES += -DX11=1
>>ifneq ($(ARCH),CYGWIN)
>># Cygwin can't use this - the -lX11 needs to be specified
>># *after* the object files that use it, but this inserts
>># it at the start.  For Cygwin, we will add libX11.a to the
>># library list instead.
>>LDFLAGS += -L/usr/X11R6/lib -lX11
>>else
>>MW_CORE_LIBS += /usr/X11R6/lib/libX11.dll.a
>>endif
>>ifeq ($(ARCH),FREEBSD-X86)
>>INCLUDEDIRS += -I/usr/X11R6/include
>>endif
>>ifeq ($(ARCH),CYGWIN)
>>INCLUDEDIRS += -I/usr/X11R6/include
>>endif
>>endif
>>We changed the 10th line to its current state.  It used to say 
>>"MW_CORE_LIBS += /usr/X11R6/lib/libX11.a"
>>Once we made that change everything else fell into place and we were able 
>>to run the demos.
>>My steps were:
>>1. cd microwin/src
>>2. Typed "cp Configs/config.cygwin config" for the cygwin configuration.
>>    See CONTENTS and Configs/README for more information.
>>3. Typed "make"
>>4. Change the Makefile.rules file to link against libX11.dll.a instead of 
>>libX11.a
>>5. Typed "make"
>>4. Ran ./demo.sh
>>
>>Thanks again for your help,


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-01-02 15:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-31 22:34 problems with libX11.a Mark Mussetter
2003-12-31 23:14 ` Harold L Hunt II
2003-12-31 23:23 ` Harold L Hunt II
2004-01-01  0:07   ` Mark Mussetter
2004-01-01  0:27     ` Harold L Hunt II
2004-01-02 15:42       ` Mark Mussetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).