Linux 1.12

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

Moderator: Forum Moderators

PaperWall_
Posts: 10
Joined: November 28th, 2014, 12:50 am

Re: Linux 1.12

Post by PaperWall_ »

you guys are great ill try it now. if i get any errors ill troubleshoot but if i cant do it ill come back to this thread. Thanks again!!!
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Linux 1.12

Post by Pentarctagon »

Moved, since the thread is about compiling Wesnoth.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
fabi
Inactive Developer
Posts: 1260
Joined: March 21st, 2004, 2:42 pm
Location: Germany

Re: Linux 1.12

Post by fabi »

http://www.ubuntuupdates.org/package/ge ... snoth-1.12
There we have one easy possibility to get binary packages.
shishkin
Posts: 2
Joined: March 29th, 2014, 8:36 pm

Re: Linux 1.12

Post by shishkin »

for Debian/Ubuntu (terminal):

wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo add-apt-repository "deb http://archive.getdeb.net/ubuntu/ trusty-getdeb games"
sudo apt-get update
sudo apt-get install wesnoth-1.12
User avatar
iceiceice
Posts: 1056
Joined: August 23rd, 2013, 2:10 am

Re: Linux 1.12

Post by iceiceice »

Nobun wrote:To devs:
how can I forse scons to use -m32 flag? I wanted to try to build also the 32bit version
I would first try

Code: Select all

 scons CXXFLAGS="-m32" 
and see if that works for you.
PaperWall_
Posts: 10
Joined: November 28th, 2014, 12:50 am

Re: Linux 1.12

Post by PaperWall_ »

Nobun for you and all linux users I can recommend an interesting way to do stuff. Use Vbox (Virtual Box) and you can create linux, windows, and mac computers in that program and store them on your hard drive. Then you can plug them in and boot them up and you can use them for many thing linux is incapable of doing.
User avatar
zelaz
Posts: 7
Joined: December 2nd, 2014, 9:22 pm
Location: Canada

Re: Linux 1.12

Post by zelaz »

Crow_T wrote:
iceiceice wrote:Okay, the official page is here, but since you said you are on Ubuntu here is a simplified version which is basically what I would suggest:
  • Download the source code and extract it. Then navigate your terminal to the place where you extracted it.
  • Execute the following commands to get the wesnoth 1.12 library dependencies:

    Code: Select all

    sudo apt-get build-dep wesnoth
    sudo apt-get install libboost-all-dev
    
  • Try to compile the source code using scons. You just have to type

    Code: Select all

    scons
    
    If you don't have scons, you might need to do

    Code: Select all

    sudo apt-get install scons
    
    first.
  • Launch the game by typing "wesnoth" or "./wesnoth"
If that doesn't work then I would look at the error messages and try to corroborate it with the official instructions page.
If you are very new to using the terminal, I will give some extra instructions:
"Download the source code and extract it. Then navigate your terminal to the place where you extracted it."
First part is easy, download the source and extract it. Next, open up the terminal, type cd and a space, then drag the extracted wesnoth source folder into the terminal window and hit enter. Now the commands you type will affect the wesnoth source folder.

"Launch the game by typing "wesnoth" or "./wesnoth" "

./wesnoth will only work once you have navigated to the wesnoth folder, after it has been compiled by scons, as I have mentioned above.

Good Luck! Building is easy once you've done it a couple of times! :geek:
Hey Crow_T! Thank you! I followed your noob guide and was successful. I can now play the latest version of Wesnoth on my Crunchbang laptop.

I had neverd compiled any source before, but I have now thanks to you!
User avatar
Crow_T
Posts: 851
Joined: February 24th, 2011, 4:20 am

Re: Linux 1.12

Post by Crow_T »

Awesome, iceiceice did most of the heavy lifting in the guide though 8)

Hopefully this knowledge will allow you to try out more programs in the future!
User avatar
zelaz
Posts: 7
Joined: December 2nd, 2014, 9:22 pm
Location: Canada

Re: Linux 1.12

Post by zelaz »

high 5
User avatar
Crow_T
Posts: 851
Joined: February 24th, 2011, 4:20 am

Re: Linux 1.12

Post by Crow_T »

Ironically, I can't build 1.12 on Ubuntu 12.04- I keep getting this:

Code: Select all

Checking for Boost locale library... (cached) no
I installed the Boost Locale lib 1.48 via synaptic, still no luck. any ideas?
User avatar
iceiceice
Posts: 1056
Joined: August 23rd, 2013, 2:10 am

Re: Linux 1.12

Post by iceiceice »

If scons for some reason caches the wrong value, you can make it redo all the caches with

Code: Select all

scons --config=force
There should be some comment in the terminal along these lines when you use scons, but it's easy to overlook it.
Write back if that doesn't fix it though.
User avatar
Crow_T
Posts: 851
Joined: February 24th, 2011, 4:20 am

Re: Linux 1.12

Post by Crow_T »

Thanks for the quick reply. It says "Checking for Boost locale library... no" very strange. Are the prerequisite packages the same since 1.10?

Code: Select all

$ sudo apt-get build-dep wesnoth
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Picking 'wesnoth-1.10' as source package instead of 'wesnoth'
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
I've been building 1.10 and 1.11 on this machine for the past couple of years now. :hmm:
User avatar
iceiceice
Posts: 1056
Joined: August 23rd, 2013, 2:10 am

Re: Linux 1.12

Post by iceiceice »

Hmm... Well I wrote part of the scons check for boost locale, it's possible that I made a mistake. I thought that I tested it with boost locale 1.48 though.

You could try going to scons/boost.py to this line: https://github.com/wesnoth/wesnoth/blob ... ost.py#L63
and deleting the entire line "locale" : "locale/info.hpp",

This line speeds up the check by only looking for a specific header file, but if in your version of boost locale that header doesn't exist then the check will fail when it shouldn't. (I *think* this header should be there but I did mess this up once before: https://github.com/wesnoth/wesnoth/comm ... 1ef3848d31)
User avatar
Crow_T
Posts: 851
Joined: February 24th, 2011, 4:20 am

Re: Linux 1.12

Post by Crow_T »

oddly enough, I don't even have that line, this is what I have:

Code: Select all

 boost_headers = { "regex" : "regex/config.hpp",
                      "iostreams" : "iostreams/constants.hpp",
                      "unit_test_framework" : "test/unit_test.hpp",
                      "filesystem" : "filesystem/operations.hpp",
                      "system" : "system/error_code.hpp"}
looks like random and locale are both gone. I downloaded it yesterday. Adding those into my file fails also. I wonder If I should just upgrade my OS...
User avatar
iceiceice
Posts: 1056
Joined: August 23rd, 2013, 2:10 am

Re: Linux 1.12

Post by iceiceice »

:doh: it looks like I didn't fully backport this part about locale to 1.12 anyways. I think that shouldn't cause any problems though...

https://github.com/wesnoth/wesnoth/blob ... s/boost.py

You could try *adding* the line instead I guess?

Anyways your file looks correct. If it's not working for you, I think most likely it's either a more general bug in our scons script of some kind, or a bug in your system. I don't have any good ideas about how to fix right now...
Post Reply