Page 1 of 1

Install instruction

Posted: 31 Aug 2019, 17:16
by kdmiller45
I looked quickly around the site and did not see a Install manual , I will be installing this onto Ubuntu

Thanks Keith

Re: Install instruction

Posted: 31 Aug 2019, 19:24
by andrvaut
http://developer.wz2100.net/wiki/CompileGuideLinux

Code: Select all

git clone --single-branch --branch 3.3.0-beta1 https://github.com/Warzone2100/warzone2100
git checkout 3.3.0
git submodule update --init --recursive

sudo apt-get install -y autoconf automake build-essential qtscript5-dev libpng-dev libsdl2-dev libtheora-dev libopenal-dev libvorbis-dev libglew-dev libphysfs-dev libfribidi-dev libfreetype6-dev libharfbuzz-dev libfontconfig1-dev gdb docbook-xsl libxml2-utils xsltproc asciidoc wkhtmltopdf gettext

cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:PATH=~/wz/install -GNinja
cmake --build build --target install 

Re: Install instruction

Posted: 31 Aug 2019, 21:07
by kdmiller45
git checkout 3.3.0 gives an error not a git repository (or any of the parent directories): .git

Edit:
I have downloaded and am installing WarZone this is on a Ubuntu current version

after following these instructions:
open a terminal
do this command
sudo apt-get install build-essential automake flex bison libpng12-dev libsdl1.2-dev libopenal-dev libphysfs-dev libvorbis-dev libtheora-dev libglc-dev libglew1.5-dev libxrandr-dev zip unzip libqt4-opengl-dev libqt4-network libqjson-dev
type in your password
then you need to move your terminal to the folder you have warzone in
cd /path/to/warzone/folder
for me i put it in my home folder so I just need to cd warzone2100-3.1.0
then when your terminal show that it is in the correct folder
do these commands
./autogen.sh
./configure && make
wait for it to finish compiling lets hope with no errors!
then run the command
./src/warzone2100

when performing ./configure && make
it says error: QT5.4 not found it is install version 5.12.4 (GCC 4.3.1.20160406 (Red Hat 5.3.1-6), 64bit)

Re: Install instruction

Posted: 31 Aug 2019, 23:32
by andrvaut

Code: Select all

 ./configure && make
You are compiled with the gcc -O0 switch, this will have a very bad effect on performance.
If we collect through autotools then this:

Code: Select all

./configure --enable-debug=optimised && make -j4
Now the current version is 3.3.0, not 3.1.0 ....

Re: Install instruction

Posted: 02 Sep 2019, 18:38
by kdmiller45
WOW, after two days of trying to follow install instructions and failures. I FOUND THE WARZONE2100 IN THE UBUNTU SOFTWARE STORE, HIT INSTALL IT DONE
Thanks for trying, but

Re: Install instruction

Posted: 02 Sep 2019, 21:12
by Berg
What Version is it?