This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New Xconq Windows Executable


Eric McDonald writes:
 > On Wed, 27 Aug 2003, Jim Kingdon wrote:
 > > Hmm.  Anyone tried the tcl which comes with cygwin (
 > > http://www.cygwin.com/packages/tcltk/ )?
 > > 
 > > It would presumably be free of said licensing issue, but I don't know
 > > whether it has other issues (for example, maybe it depends on X, which
 > > would probably be more trouble than it is worth).
 > 
 > Yes, it does depend on the Cygwin XFree86 X libraries. We would 
 > then need to have people install the Cygwin XFree86 stuff (which, 
 > IMO, is much more stable than 2 years ago). And they would 
 > essentially be playing Unix Xconq in an X display on their Windows 
 > machine.

Actually no: the cygwin tk does not depend on X, but it doesn't
contain the right headers either. You have to download the source to
the tcl/tk package, extract the headers, and configure using

 --x-includes=<<tk's xlib header directory, e.g. /usr/include/tk/xlib>>

(Probably the same you are doing to compile with the AS package).
Otherwise configure will find the standard X11 headers which are
incompatible and the resulting application will crash on startup.

Also it seems there is still some tweaking of at least win/Makefile.in
neccessary. it would be nice if somebody could commit something along
the lines of (one still has to muck with TCLTKLIB, but I see no way to
autodetect this):

===================================================================
RCS file: /cvs/xconq/xconq/win/Makefile.in,v
retrieving revision 1.7
diff -b -B -d -u -I\$$ -r1.7 Makefile.in
--- win/Makefile.in	28 Aug 2003 04:04:00 -0000	1.7
+++ win/Makefile.in	28 Aug 2003 10:55:40 -0000
@@ -56,6 +55,8 @@
 
 TKIAPP_LIB = ../tcltk/libtkiapp.a
 
+MAIN = ../tcltk/tkwin32.o
+
 # Host and target-dependent makefile fragments come in here.
 ####
 # End of host and target-dependent makefile fragments.
@@ -94,20 +95,18 @@
 
 WIN_CFLAGS = -mwindows
 
-ALL_CFLAGS = $(CFLAGS) $(HFLAGS) $(REQD_CFLAGS) $(WIN_CFLAGS) -I$(srcdir) -I$(srcdir)/.. -I$(krnsrcdir) -I$(srcdir)/../tcl/generic -I$(srcdir)/../tk/generic
-
-.c.o:
-	$(CC) -c $(ALL_CFLAGS) $<
-
 # Do it all.
 
 all:	xconq
 
 # The game itself.
 
-xconq: wconq.o $(TKUI_LIB) $(TKIMF_LIB) $(KERNEL_LIB) $(LOW_LIB)
-	rm -f xconq
-	$(CC) -o xconq $(ALL_CFLAGS) $(LDFLAGS) wconq.o $(TKUI_LIB) $(TKIMF_LIB) $(KERNEL_LIB) $(LOW_LIB) $(WITH_LIBS) $(TCLTK_LIB) $(NET_EXTRA_LIBS)
+xconq: $(MAIN) $(TKUI_LIB) $(TKIMF_LIB) $(KERNEL_LIB) $(LOW_LIB)
+	rm -f xconq.exe
+	$(CC) -o xconq $(WIN_CFLAGS) $(LDFLAGS) $(MAIN) $(TKUI_LIB) $(TKIMF_LIB) $(KERNEL_LIB) $(LOW_LIB) $(WITH_LIBS) $(TCLTK_LIB) $(NET_EXTRA_LIBS)
+
+$(MAIN):
+	(cd ../tcltk; make tkwin32.o)
 
 $(KERNEL_LIB):
 	(cd ../kernel; make libconq.a)
@@ -134,7 +133,7 @@
 
 clean:
 	rm -f *.o lint.out core
-	rm -f xconq xconq.6 *.conq *.xconq
+	rm -f xconq.exe xconq.6 *.conq *.xconq
 
 distclean: clean
 	rm -f Makefile config.status
===================================================================


Regards,

	jr


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