building from source on debian

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
tranquil
Posts: 2
Joined: October 5th, 2009, 3:08 pm

building from source on debian

Post by tranquil »

I downloaded the version 1.6.5 tarfile directly from sourceforge, but as for the various required libs mentioned in INSTALL, I tried to get them from the Debian package management.

Neither configure nor scons worked for me.

I thought I would try with conventional make tools first.
So when I run ./configure it says
configure: error: Could not find Boost headers version >= 1.33
However when I open /usr/include/boost/version.hpp it says
#define BOOST_VERSION 103401
which I think is version 1.34.
I'm not good enough with scripting to feel up to hacking on configure this morning, and I think I must have already taken a wrong turn anyway.

So I tried with scons. I tried 'scons' and it says ultimately
scons: Building targets ...
scons: Nothing to be done for `test'.
scons: Nothing to be done for `wesnoth'.
scons: Nothing to be done for `wesnothd'.
scons: done building targets.

However there is no executable file called "wesnoth" underneath the principal wesnoth source directory.

I tried with 'scons all' and it says
scons: Building targets ...
scons: `all' is up to date.
scons: done building targets.

But again, it seems like nothing was built. There are no executables "wesnoth" or "wesnothd" in that directory hierarchy. That is, both the following commands yield no results.
find . | xargs ls -lrt | grep '^-rwx' | grep 'wesnoth$'
find . | xargs ls -lrt | grep '^-rwx' | grep 'wesnothd$'


That is scons version 1.0.0-1 from the Debian respository.
mich
Translator
Posts: 134
Joined: November 11th, 2008, 8:54 am
Location: Italy

Re: building from source on debian

Post by mich »

Try

Code: Select all

apt-get build-dep wesnoth
as root before starting to compile. This command will download all the dependances, so you don't have to bother to download them manually. If you build the developement version you have to manually add some others dev packages (lua, pango and maybe some others), but for the 1.6.x branch probably you have all you need after that command.
tranquil
Posts: 2
Joined: October 5th, 2009, 3:08 pm

Re: building from source on debian

Post by tranquil »

That command installed a lot more packages. Afterward, It built ok with scons. Interestingly, /usr/include/boost/version.hpp is unchanged. Also, now ./configure finishes ok.

Thanks!
silene
Posts: 1109
Joined: August 28th, 2004, 10:02 pm

Re: building from source on debian

Post by silene »

tranquil wrote:Interestingly, /usr/include/boost/version.hpp is unchanged.
That's because you need a lot more headers than just version.hpp. As the INSTALL file explains, you also need headers for boost.iostreams and boost.regex; that's why neither configure nor scons were able to build Wesnoth.
Post Reply