brentjohnson / xconq

Xconq is a general strategy game system. It is a complete system that includes all the components: a portable engine, graphical interfaces for Unix/Linux/X11, Macintosh, and Windows, multiple AIs, networking for multi-player games, and an extensive games library.
GNU General Public License v2.0
31 stars 11 forks source link

compiling on ubuntu 23.10 #10

Open nohkumado opened 10 months ago

nohkumado commented 10 months ago

Hello!

a pity that xconq isn't packaged anymore....
so i tried to compile it myself but failed :( well my knowledge of C++ is very limited, so when i hit stuff like

''' make[1]: Verzeichnis „/home/bboett/projects/xconq/tcltk“ wird betreten g++ -c -g -O2 -fpermissive -Wno-write-strings -g -DHAVE_ACDEFS_H -I. -I./.. -I./../kernel -I/usr/include/tcl8.6 -I/usr/include/tcl8.6 tkmain.c In file included from /usr/include/c++/13/bits/specfun.h:43, from /usr/include/c++/13/cmath:3699, from /usr/include/c++/13/math.h:36, from tkconq.h:29, from tkmain.c:13: /usr/include/c++/13/bits/stl_algobase.h:281:56: error: macro "min" passed 3 arguments, but takes just 2 281 min(const _Tp& a, const _Tp& __b, _Compare comp) ^ In file included from ./../kernel/conq.h:50, from tkmain.c:11: ./../kernel/misc.h:52: note: macro "min" defined here 52 #define min(x,y) (((x) < (y)) ? (x) : (y))

/usr/include/c++/13/bits/stl_algobase.h:303:56: error: macro "max" passed 3 arguments, but takes just 2 303 | max(const _Tp& a, const _Tp& __b, _Compare comp) | ^ ./../kernel/misc.h:64: note: macro "max" defined here 64 | #define max(x,y) (((x) > (y)) ? (x) : (y)) '''

well :D that looks like chinese for me :D does anyone still mantain some binary packages for debian/ubuntu or is there a way to still compile this on recent systems?