building from source on debian
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
building from source on debian
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.
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.
Re: building from source on debian
Try 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.
Code: Select all
apt-get build-dep wesnoth
Re: building from source on debian
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!
Thanks!
Re: building from source on debian
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.tranquil wrote:Interestingly, /usr/include/boost/version.hpp is unchanged.