Connect X is a scallable Connect 4 application. You can choose how many players can play, the game board dimensions and how many adjacent discs are needed for a win.
Basically, g++
is used for building Connect X. However, other programs (such as
make
or doxygen
are used in a complete build. This section will help you
understand the build process for Connect X and guide you through the build steps.
Only Ubuntu is officially supported. The program may work under other OSes, but as of now, no OS other than Ubuntu has been officially used for testing. The following steps assume that you work on a machine running a relatively up-to-date version of Ubuntu.
The following softwares are needed to perform a complete build:
g++
make
cmake
doxygen
LaTeX
latexmk
(available inTeXLive
)Google Tests
bash
python
Gtkmm
(C++ wrapper forGtk
)
In cxinit
, a bash script named setup.sh
can be run to install everything that
is nedded plus some extra goodies (Ubuntu only).
Once everything is installed copy the init.mk
file to the project's root directory.
To do so, open a terminal and enter:
cp cxinit/init.mk .
Using your favorite text editor, open the file init.mk
and populate the SRC_ROOT
and BIN_ROOT
variables. The SRC_ROOT
variable should hold the path to the root
directory of your copy of the Connect X repository. The BIN_ROOT
variable should
hold the path to the directory that is going to contain all the executables produded
by the build. Once this is done, save the file. You should now be able to build the
project:
make
Note that you can build any module of the project by feeding make
the desired
module name. For example, if I only want to build the cxbase
library, I can
invoke:
make cxbase
and if I only want the documentation for that library, I can invoke:
make cxbasedoc
Refer to the repository's main Makefile
to know all the module names.
See the help manual.