Subject: problems building rgXnetchess
To: None <netbsd-users@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-users
Date: 01/05/2001 23:55:20
Do you know of any network chess games which I can play under standard
Unix (X11 on my system) and play against my wife on her Windows 98's
machine (native Windows application on her system)? (I do not want to run
a X-server on the Windows platform.)
I have found a X11 network chess program based on Qt called rgXnetchess
(http://www.uni-jena.de/allgpsy/rg/chess.html) which appears to also have
a Windows 95 counter-part.
I have had many troubles trying to build the rgXnetchess application
(http://www.uni-jena.de/allgpsy/rg/rgXnetchess.tgz) under NetBSD. I do
have Qt versions 1.44 and 2.2.3. I am using egcs-1.1.2 and GNU make
version 3.78.1.
After editing the Makefile to point to my qt1 include headers and
libraries and set the correct path to moc, I received an "invalid
initializer" error in chess.cc in regards to:
BITMAPTYPE BITMAPS=BITMAPS64;
So I worked around this problem with:
BITMAPTYPE BITMAPS={
{p64s_bits, n64s_bits, b64s_bits, r64s_bits, q64s_bits, k64s_bits},
{p64o_bits, n64o_bits, b64o_bits, r64o_bits, q64o_bits, k64o_bits}};
(Which was how BITMAPS64 was defined.)
Then I received these errors:
/usr/X11R6/qt1/bin/moc -o chess.moc.cc chess.h
cc -O3 -I/usr/X11R6/qt1/include/ -c chess.moc.cc
In file included from connect.h:5,
from chess.h:11,
from chess.moc.cc:16:
/usr/include/netinet/in.h:124: syntax error before `;'
/usr/include/netinet/in.h:196: syntax error before `;'
/usr/include/netinet/in.h:200: syntax error before `['
/usr/include/netinet/in.h:214: syntax error before `['
...
Any ideas on what this means? Or what I can do to fix this?
(I don't know what "moc" is.)
If I comment out all the "moc"-related parts in the Makefile, I receive:
chess.o: In function `MyWidget::initboard(void)':
chess.o(.text+0x3c7): undefined reference to `QLCDNumber::value(void) const'
chess.o(.text+0x3e8): undefined reference to `QLCDNumber::value(void) const'
chess.o(.text+0x444): undefined reference to `QWidget::repaint(int, int,
int, int, bool)'
chess.o: In function `PromoWindow::PromoWindow(int, QWidget *, char const *)':
chess.o(.text+0x47c): undefined reference to `QDialog::QDialog(QWidget *,
char const *, bool, unsigned int)'
chess.o(.text+0x4cb): undefined reference to `PromoWindow::QPaintDevice
virtual table'
... and so on ...
Thanks for any assistance or ideas you can offer.
Jeremy C. Reed
http://bsd.reedmedia.net/