From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10478 invoked by alias); 1 Jan 2004 00:27:18 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Reply-To: cygwin-xfree@cygwin.com Received: (qmail 10464 invoked from network); 1 Jan 2004 00:27:17 -0000 Received: from unknown (HELO central.ixn.com) (65.19.132.2) by sources.redhat.com with SMTP; 1 Jan 2004 00:27:17 -0000 Received: from msu.edu (mce185e42.tmodns.net [66.94.24.206]) (authenticated bits=0) by central.ixn.com (8.12.10/8.12.10) with ESMTP id i010QxMN007245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 31 Dec 2003 19:27:12 -0500 (EST) Message-ID: <3FF36948.1020002@msu.edu> Date: Thu, 01 Jan 2004 00:27:00 -0000 From: Harold L Hunt II User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: problems with libX11.a References: <5.1.0.14.0.20031231132335.00a8ee90@link-comm.com> <5.1.0.14.0.20031231132335.00a8ee90@link-comm.com> <5.1.0.14.0.20031231164636.01eee008@link-comm.com> In-Reply-To: <5.1.0.14.0.20031231164636.01eee008@link-comm.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=5.5 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) X-SW-Source: 2004-01/txt/msg00002.txt.bz2 List-Id: 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,