Having trouble compiling on Linux Mint

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
Martenzo
New user
Posts: 2
Joined: 17 Nov 2019, 19:05

Having trouble compiling on Linux Mint

Post by Martenzo »

As the title suggests, I'm having trouble compiling.
System information:
OS: Linux Mint 19.2 Cinnamon
Kernel: 4.15.0-54-generic
CPU: Intel i7-4790 @ 3.60GHz x 4
Memory: 16 GB
GPU: Radeon RX 560

I downloaded the warzone2100-3.3.0_src tarball from sourceforge, then proceeded to follow the instructions of the Linux Compile Guide.

Code: Select all

$ sudo apt-get install -y autoconf automake build-essential qtscript5-dev libpng12-dev libtheora-dev libopenal-dev libvorbis-dev libglew-dev libphysfs-dev libfribidi-dev libfreetype6-dev libharfbuzz-dev libfontconfig1-dev libgl1-mesa-dev gdb docbook-xsl libxml2-utils xsltproc asciidoc wkhtmltopdf gettext
This told me libpng12-dev was not available, but was referenced by other packages. On further digging with synaptic, I discovered I have libpng16-dev, which I assumed was simply a more recent version. Might be the cause of my problems.

From there

Code: Select all

$ ./autogen.sh
$ ./configure --disable-debug
worked without apparent issue. However,

Code: Select all

$ make
resulted in the following error:

Code: Select all

Making all in doc
make[2]: Entering directory '/home/marten/Downloads/warzone2100/doc'
a2x -f manpage ./warzone2100.6.asciidoc
a2x: ERROR: "xsltproc"  --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0  "/etc/asciidoc/docbook-xsl/manpage.xsl" "/home/marten/Downloads/warzone2100/doc/warzone2100.6.xml" returned non-zero exit status 127
Makefile:681: recipe for target 'warzone2100.6' failed
make[2]: *** [warzone2100.6] Error 1
make[2]: Leaving directory '/home/marten/Downloads/warzone2100/doc'
Makefile:579: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/marten/Downloads/warzone2100'
Makefile:499: recipe for target 'all' failed
make: *** [all] Error 2
Any idea what the issue is here?
Martenzo
New user
Posts: 2
Joined: 17 Nov 2019, 19:05

Re: Having trouble compiling on Linux Mint

Post by Martenzo »

Figured out the issue some ten minutes after posting. I had mistakenly thought that the only message out of apt-get being about libpng12-dev meant that everything else on the list was already installed. After removing libpng12-dev from the command and running it again, it installed some libraries that were missing.
Post Reply