Compiling 1.10

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderators: Forum Moderators, Developers

Post Reply
Shiki
Developer
Posts: 255
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Compiling 1.10

Post by Shiki » December 25th, 2018, 1:33 pm

Dugi wrote:
December 24th, 2018, 8:53 pm
[…] and Installing Wesnoth 1.10 turned out to be quite hard too, the code was no longer compatible with newer compilers and libraries. When it kept refusing to run, I had to install the windows (32-bit only) version using wine on Linux... and that finally worked. Phew.
One can compile every series with the current libraries if one checks out the git branch, which contains additional patches, instead of using the latest release. Sometimes one must specify an option for compiling, best have a look at the last few commit messages.

In the case of 1.10: Use cmake, scons has only been patched from the 1.12 git branch version on. You can also build the latest 1.10 release if you disable strict compilation.

Edit: if you have already boost 1.69, you might need this workaround (also for compiling current wesnoth) https://github.com/wesnoth/wesnoth/issu ... -446898178
Introduction to WML filtering and WML variables.

User avatar
Dugi
Posts: 4914
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: Legend of the Invincibles

Post by Dugi » December 26th, 2018, 11:18 am

Shiki wrote:
December 25th, 2018, 1:33 pm
Dugi wrote:
December 24th, 2018, 8:53 pm
...
One can compile every series with the current libraries if one checks out the git branch, which contains additional patches, instead of using the latest release. Sometimes one must specify an option for compiling, best have a look at the last few commit messages.

In the case of 1.10: Use cmake, scons has only been patched from the 1.12 git branch version on. You can also build the latest 1.10 release if you disable strict compilation.

Edit: if you have already boost 1.69, you might need this workaround (also for compiling current wesnoth) https://github.com/wesnoth/wesnoth/issu ... -446898178
I know that scons was not very usable back then. I could get it to compile after removing all occurrences of -Werror. Without that, it was failing on errors like function anonymous_function_to_suppress_unused_variable_warning() defined but not used, which was completely ridiculous.

But when it compiled, it crashed with this exception:

Code: Select all

./wesnoth --data-dir '/lindata/Downloads/wesnoth-1.10' 
Battle for Wesnoth v1.10.0
Started on Wed Dec 26 12:16:02 2018

Overriding data directory with /lindata/Downloads/wesnoth-1.10

Data directory: /lindata/Downloads/wesnoth-1.10
User configuration directory: /home/dugi/.config/wesnoth
User data directory: /home/dugi/.local/share/wesnoth/1.1
Cache directory: /home/dugi/.cache/wesnoth
Checking video mode: 1366x724x32...
setting mode to 1366x724x32
terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_M_create
Aborted (core dumped)
I was too lazy to use gdb and try to fix it.

Please make a split topic, we're going off topic and this might actually turn out to be useful to someone looking for it.

User avatar
Ravana
Moderator
Posts: 2043
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Compiling 1.10

Post by Ravana » December 26th, 2018, 11:31 am

Done.

Shiki
Developer
Posts: 255
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Compiling 1.10

Post by Shiki » December 26th, 2018, 8:51 pm

Works for me, I managed to complete the first part of the tutorial.
Seems you did built 1.10.0, can you try to compile the latest checkout of the 1.10 branch, maybe it was fixed in the meanwhile.
You can use the commands and files from this buildscript: https://aur.archlinux.org/cgit/aur.git/ ... snoth-1.10

@Shivaa, do you refer to Legends of the Invincibles?
Introduction to WML filtering and WML variables.

User avatar
Dugi
Posts: 4914
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: Compiling 1.10

Post by Dugi » December 27th, 2018, 10:59 am

Shiki wrote:
December 26th, 2018, 8:51 pm
Seems you did built 1.10.0, can you try to compile the latest checkout of the 1.10 branch, maybe it was fixed in the meanwhile.
I think it was 1.10.0.

Shiki
Developer
Posts: 255
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Compiling 1.10

Post by Shiki » December 28th, 2018, 9:47 am

There's not really a point in compiling older releases of a series besides edge cases (e.g. the translation team went MIA)
Compared to the current situation, wesnoth 1.14.0 won't work with systems which got the boost update, while 1.14.6 will.
The promise of a stable series is that it remains compatible with it's first release.
Introduction to WML filtering and WML variables.

User avatar
Dugi
Posts: 4914
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: Compiling 1.10

Post by Dugi » December 28th, 2018, 4:36 pm

The problem lies in the iPhone port. It's still 1.10 and it's being used a lot as far as I know. In order to give my add-on there a slightest bit of support, I need to have 1.10 in order to test it (or buy an iPhone, buy the iPhone version of wesnoth and upload and download the add-on a dozen times until the problem is fixed).

User avatar
josteph
Developer
Posts: 448
Joined: August 19th, 2017, 6:58 pm

Re: Compiling 1.10

Post by josteph » December 28th, 2018, 5:00 pm

Shiki is right though, you should use latest 1.10, not 1.10.0. When I compiled 1.10 a few months ago I used the latest 1.10 release that was packaged for my distro (I didn't use wine).

User avatar
Dugi
Posts: 4914
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: Compiling 1.10

Post by Dugi » January 1st, 2019, 10:02 pm

My distro (Ubuntu 18.04) has no version of 1.10 packaged, only 1.12 and 1.14. I will check if the latest 1.10 works if I ever need it again.

User avatar
josteph
Developer
Posts: 448
Joined: August 19th, 2017, 6:58 pm

Re: Compiling 1.10

Post by josteph » January 2nd, 2019, 12:28 pm

In this case I'd use the latest wesnoth-1.10 package that ubuntu does have, https://packages.ubuntu.com/trusty/wesnoth-1.10.

Post Reply