Page 2 of 3

Re: 3.1.3 has been released!

Posted: 07 Feb 2016, 22:20
by gypakk
stiv wrote:In it, you could include more information. Something like:
Hi stiv, thanks for quick reply!
You are right, I could have included some more information. The "compile guide" I was referring to is located here:
http://developer.wz2100.net/wiki/CompileGuideLinux

It seems to be outdated...

What I tried:
Installed a fresh Ubuntu 15.10 Desktop (64 bit). Then got all necessary packages mentioned in the compile guide. After that, I downloaded Warzone 3.1.3 from here:
https://github.com/Warzone2100/warzone2 ... /3.1.3.zip
unpacked it and entered "./autogen.sh && ./configure && make".

This does not work (see error message above). It seems that you need to download the sources via git commands.

--> So I installed git package (not mentioned in compile guide). Then used this commend for download:
git clone https://github.com/Warzone2100/warzone2100 -b 3.1.3 --single-branch
(Not sure if this is right but seems to work somehow...)

Then went into the WZ directory and started "./autogen.sh && ./configure && make". -> no Error now! :-)

Meanwhile I've realized that user Staff wrote something about "git fetch origin --tags; git checkout 3.1.3" in his initial post. That I had already tried. But it did not work of course, because there wasn't any git configuration.
Still not certainly sure if this was the reason for the whole problem...

Re: 3.1.3 has been released!

Posted: 07 Feb 2016, 22:33
by cybersphinx
gypakk wrote:unpacked it and entered "./autogen.sh && ./configure && make".
The tarball should work without running "./autogen.sh".

Re: 3.1.3 has been released!

Posted: 08 Feb 2016, 05:11
by vexed
gypakk wrote: What I tried:
Installed a fresh Ubuntu 15.10 Desktop (64 bit). Then got all necessary packages mentioned in the compile guide. After that, I downloaded Warzone 3.1.3 from here:
https://github.com/Warzone2100/warzone2 ... /3.1.3.zip
unpacked it and entered "./autogen.sh && ./configure && make".
No, that won't work, we generate some things when we create the tarball. That is why we specify that you get files from SourceForge.
This does not work (see error message above). It seems that you need to download the sources via git commands.

--> So I installed git package (not mentioned in compile guide). Then used this commend for download:
git clone https://github.com/Warzone2100/warzone2100 -b 3.1.3 --single-branch
(Not sure if this is right but seems to work somehow...)
Well, you could do that, a bit ugly IMO, but, hey, if that works for you... fine. :)
Meanwhile I've realized that user Staff wrote something about "git fetch origin --tags; git checkout 3.1.3" in his initial post. That I had already tried. But it did not work of course, because there wasn't any git configuration.
Still not certainly sure if this was the reason for the whole problem...
Once you clone the repo, there isn't any extra git specific configuration needed.
In this case, you just downloaded the wrong thing from the wrong place.

Re: 3.1.3 has been released!

Posted: 08 Feb 2016, 15:17
by gypakk
Hi vexed, thank you for this elaborate explanation!
vexed wrote:No, that won't work, we generate some things when we create the tarball. That is why we specify that you get files from SourceForge.
(...)
In this case, you just downloaded the wrong thing from the wrong place.
Yes, that was my mistake. The Linux Compile Guide offers two options:
- Getting The Source From A Tarball
- Getting The Source From Git
I decided to do the latter, and did it in a wrong way.

Thanks for all your help!!

Maybe next Ubuntu Version (April 2016) could have Warzone 3.1.3 in Debian repository? It still seems to be 3.1.1 at Debian.
What would be necessary to update Debian repository?

Re: 3.1.3 has been released!

Posted: 08 Feb 2016, 22:46
by Berg
Don't hold your breath on Ubuntu repo's catching up to warzone2100 release.

Its been behind since forever!

Re: 3.1.3 has been released!

Posted: 09 Feb 2016, 06:21
by vexed
gypakk wrote:...
Maybe next Ubuntu Version (April 2016) could have Warzone 3.1.3 in Debian repository? It still seems to be 3.1.1 at Debian.
What would be necessary to update Debian repository?
We have 0 control over distros & maintainers.
You would have to e-mail them and ask them to update it, or however that works on each distro.

I added this note:

For LINUX people (that don't want to compile it themselves) use http://www.playdeb.net/app/Warzone2100 since that usually has the latest version available, and maintainers & distros are very slow on updating the game!

Re: 3.1.3 has been released!

Posted: 15 Feb 2016, 19:47
by gypakk
vexed wrote:You would have to e-mail them and ask them to update it, or however that works on each distro.
Good idea, will do that!
vexed wrote:For LINUX people (that don't want to compile it themselves) use http://www.playdeb.net/app/Warzone2100 since that usually has the latest version available, and maintainers & distros are very slow on updating the game!
Excellent!!
Downloaded the game from PlayDeb. It works fine.
The only thing is, that the interface is in German. When I try switching to English_UK or en_US it promptly returns to German. Seems to be a German-only version at PlayDeb.

EDIT

Found a work-around: starting wz from command line.

LANG=en_US warzone2100

However... seems to be a bug somehow... I think.

Re: 3.1.3 has been released!

Posted: 17 Feb 2016, 06:13
by vexed
It uses system locale AFAIK.
You can also change it in the config file for language.

I didn't have the time to check PlayDeb, can someone else verify if it is stuck to German?

Re: 3.1.3 has been released!

Posted: 17 Feb 2016, 12:03
by gypakk
vexed wrote:It uses system locale AFAIK.
You can also change it in the config file for language.
I didn't have the time to check PlayDeb, can someone else verify if it is stuck to German?
Hello vexed, I stand corrected. It is not stuck in German. You are right, it is stuck in System Language -- which is German in my case.

My work-around is this:
I opened the file /usr/share/applications/warzone2100.desktop in an editor and changed the "Exec=" line to:

Code: Select all

Exec=bash -c "LANG=en_US warzone2100"
Works fine but it's just a work-around.

Re: 3.1.3 has been released!

Posted: 19 Feb 2016, 05:06
by vexed
Ahh, OK, but, you should still be able to set that in the config file, then you wouldn't have to start WZ with that all the time.

Re: 3.1.3 has been released!

Posted: 22 Feb 2016, 20:22
by gypakk
vexed wrote:Ahh, OK, but, you should still be able to set that in the config file, then you wouldn't have to start WZ with that all the time.
Right, I can change that language line in config file, but this does not have any effect on the game. And... each program run resets this language entry in the config file.

Re: 3.1.3 has been released!

Posted: 04 Apr 2016, 03:46
by Tzeentch
odd I seem to be having a problem... I'm experimenting with compiling options ( I know what they are doing ) even when I follow exactly as the guide states I get a core dump on process launch.

Code: Select all

uname -a
Linux ss-laptop 4.2.0-27-generic #32-Ubuntu SMP Fri Jan 22 04:48:15 UTC 2016 i686 i686 i686 GNU/Linux
sudo apt-get install --yes build-essential automake xz-utils g++ libqt4-dev libsdl-dev libtheora-dev libfribidi-dev libopenal-dev libvorbis-dev libxrandr-dev libfontconfig-dev wget cmake wkhtmltopdf libglew-dev libphysfs-dev 
sudo apt-get build-dep warzone2100 
./autogen.sh
./configure --disable-debug CFLAGS="-O2 -gstabs -g -g3" CXXFLAGS="-O2 -gstabs -g -g3"
make -j8
./src/warzone2100 
info    |02:30:07: [realmain:1167] Using /home/ss/.warzone2100-3.1/3.1.3/logs/WZlog-0404_023007.txt debug file
No function contains program counter for selected frame.
No function contains program counter for selected frame.
Saved dump file to '/home/ss/.warzone2100-3.1/3.1.3/logs/warzone2100.gdmp-8FHtK2'
If you create a bugreport regarding this crash, please include this file.
Segmentation fault (core dumped)
I wanted to compare tests on compile flags... I wanted to observe how this will work for example. See attached file

Code: Select all

./configure --enable-debug=no CFLAGS="-fomit-frame-pointer -Os" CXXFLAGS="-fomit-frame-pointer -Os"
warzone2100-all-dumps.zip
all dumps, please look at
(26.75 KiB) Downloaded 316 times

Re: 3.1.3 has been released!

Posted: 04 Apr 2016, 09:39
by NoQ
Zip, as far as i remember.

Re: 3.1.3 has been released!

Posted: 05 Apr 2016, 00:53
by Tzeentch
edited and uploaded to previous comment, of any use?

Re: 3.1.3 has been released!

Posted: 05 Apr 2016, 03:28
by vexed
Those crash dumps point to sdl & your 945 drivers.