Need Help Compiling on Ubuntu

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
howwitty
Posts: 74
Joined: May 29th, 2006, 5:05 am
Location: U.S.

Need Help Compiling on Ubuntu

Post by howwitty »

Hello, I am compiling Wesnoth 1.18.5 for Ubuntu and ran into some problems. I have very little experience, so I first attempted to follow this tutorial from 2013, but all of the dependencies were outdated. I searched how to do all of the things, got a concise summary from AI, and installed all of the dependencies twice. I think I installed the dependencies I needed for compiling because now I am compiling with cmake.

Apparently there was an easier way to do this with flatpak, but I could not figure out how to get 1.18.5 for Ubuntu there. Should I share the binary on github when it is done?

One of the problems I ran into was the location of the source and decompression. The wget syntax was bad enough that I could not find it and had to use Firefox to download instead and then untar with the instructions in the readme. If you know what is wrong with this code the AI gave me, please let me know. I think the asterisk is replaced with the version number, but couldn't run wget properly.

Code: Select all

wget www.wesnoth.org # Replace x with latest minor version
tar -xf wesnoth-*.tar.bz2
I'm tired.
User avatar
Pentarctagon
Project Manager
Posts: 5780
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Need Help Compiling on Ubuntu

Post by Pentarctagon »

Rather than AI, see https://github.com/wesnoth/wesnoth/blob ... INSTALL.md. For Ubuntu specifically, you can just copy/paste the apt install commands from https://github.com/wesnoth/wesnoth/blob ... 404-master.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Wedge009
Developer
Posts: 33
Joined: June 24th, 2009, 11:17 am
Location: Sydney, Australia

Re: Need Help Compiling on Ubuntu

Post by Wedge009 »

I just run

Code: Select all

scons -j (number of concurrent jobs)
If there are errors, it's just a matter of installing the dependencies (and perhaps forcing a refresh of the cache).
Soli Deo Gloria
Post Reply