Problem compiling Wesnoth with SVN

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
User avatar
sur.nhm
Posts: 630
Joined: September 4th, 2008, 12:10 pm
Location: in /dev/null...

Problem compiling Wesnoth with SVN

Post by sur.nhm »

(Xubuntu 11.04)
I have recently updated my OS from Xubuntu 10.10 to Xubuntu 11.04. I have then ran the following commands:
root@jon-laptop:/usr/local/share/wesnoth# svn up
root@jon-laptop:/usr/local/share/wesnoth# scons
And scons quit because it didn't identify Boost thread library. I have checked, and I have it installed. What should I do?
Terminal Output:

Code: Select all

scons: Reading SConscript files ...
Saved options: default_targets = 'wesnoth,wesnothd'
Building Wesnoth version 1.9.6+svn
Checking for C header file poll.h... (cached) yes
Checking for C header file sys/poll.h... (cached) yes
Checking for C header file sys/select.h... (cached) yes
Checking for C header file sys/sendfile.h... (cached) yes
Checking for C function sendfile()... (cached) yes
Checking for C library m... (cached) yes
Checking for C function round()... (cached) yes
Checking whether C++ compiler works (g++ version >= 3.3 required)... (cached) yes
Checking for Gettext's libintl... (cached) libc built-in
Checking for Boost iostreams library version >= 1.34.1... (cached) yes
Checking for gzip support in Boost Iostreams... (cached) yes
Checking for Boost smart_ptr library... (cached) yes
Checking for Simple DirectMedia Layer library version >= 1.2.7... (cached) yes
Checking for SDL_net library... (cached) yes
Checking for Boost system library... yes
Checking for Boost thread library... no
Base prerequisites are not met.
Client prerequisites are not met. wesnoth, cutter and exploder cannot be built.
Unit tests are disabled because their prerequisites are not met.
If any config checks fail, look in build/config.log for details
If a check fails spuriously due to caching, use --config=force to force its rerun
scons: done reading SConscript files.
scons: Building targets ...
error_action(["wesnoth"], [])
scons: *** [wesnoth] Target disabled because its prerequisites are not met
scons: building terminated because of errors.
Last edited by sur.nhm on May 31st, 2011, 5:20 pm, edited 1 time in total.
I'm not really around any more, but you can find me in TvTropes.
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: Problem compling Wesnoth with SVN

Post by loonycyborg »

Attach contents of the file build/config.log
"meh." - zookeeper
User avatar
sur.nhm
Posts: 630
Joined: September 4th, 2008, 12:10 pm
Location: in /dev/null...

Re: Problem compling Wesnoth with SVN

Post by sur.nhm »

Attached.
Attachments
config.log
/build/config.log
(7.52 KiB) Downloaded 163 times
I'm not really around any more, but you can find me in TvTropes.
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: Problem compling Wesnoth with SVN

Post by loonycyborg »

It looks like -lboost_system etc work while -lboost_thread doesn't so it appears you don't have boost.thread installed after all. Maybe you're just missing the -dev(libboost-thread-dev or libboost-thread1.42-dev) package for it. Plain boost_thread package is only for already compiled apps that use boost.thread.
"meh." - zookeeper
User avatar
sur.nhm
Posts: 630
Joined: September 4th, 2008, 12:10 pm
Location: in /dev/null...

Re: Problem running Wesnoth with SVN (Xubuntu 11.04)

Post by sur.nhm »

Well, downloading the package solved it, but now I get the following error when I try to run Wesnoth:

Code: Select all

wesnoth: error while loading shared libraries: libboost_iostreams.so.1.40.0: cannot open shared object file: No such file or directory
I'm not really around any more, but you can find me in TvTropes.
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: Problem compling Wesnoth with SVN

Post by loonycyborg »

My first idea would be to run sudo ldconfig but it already should be automatically run during sudo apt-get install. Maybe you should have installed libboost-thread1.42-dev instead of libboost-thread-dev or the other way around. In any case runtime linker can't find libboost_iostreams.so.1.40.0 and if that file actually exists then ldconfig will fix this. If it doesn't then you'll need to find whatever package that provides this particular .so file.
EDIT: Ubuntu 11.04 seems to provide only boost 1.42 so I have no idea where 1.40 comes from.
"meh." - zookeeper
User avatar
sur.nhm
Posts: 630
Joined: September 4th, 2008, 12:10 pm
Location: in /dev/null...

Re: Problem compling Wesnoth with SVN

Post by sur.nhm »

Well, apparently I have messed up, because running scons install fixed it. Thanks anyway.
I'm not really around any more, but you can find me in TvTropes.
User avatar
sur.nhm
Posts: 630
Joined: September 4th, 2008, 12:10 pm
Location: in /dev/null...

Re: Problem compiling Wesnoth with SVN

Post by sur.nhm »

(I hope this doublepost is OK)
Well, I have another problem compiling Wesnoth - now it apparently misses 'boost program options library' 1.3.5 or higher.
Here's the terminal output:

Code: Select all

root@jon-laptop:/usr/local/share/wesnoth# scons install
scons: Reading SConscript files ...
Saved options: default_targets = 'wesnoth,wesnothd'
Building Wesnoth version 1.9.6+svn
Checking for C header file poll.h... (cached) yes
Checking for C header file sys/poll.h... (cached) yes
Checking for C header file sys/select.h... (cached) yes
Checking for C header file sys/sendfile.h... (cached) yes
Checking for C function sendfile()... (cached) yes
Checking for C library m... (cached) yes
Checking for C function round()... (cached) yes
Checking whether C++ compiler works (g++ version >= 3.3 required)... (cached) yes
Checking for Gettext's libintl... (cached) libc built-in
Checking for Boost iostreams library version >= 1.34.1... (cached) yes
Checking for gzip support in Boost Iostreams... (cached) yes
Checking for Boost smart_ptr library... (cached) yes
Checking for Simple DirectMedia Layer library version >= 1.2.7... (cached) yes
Checking for SDL_net library... (cached) yes
Checking for Boost system library... (cached) yes
Checking for Boost thread library... (cached) yes
Checking for Boost asio library... (cached) yes
Checking for Pango with cairo backend... (cached) yes
Checking for fontconfig... (cached) yes
Checking for Boost program_options library version >= 1.35.0... (cached) no
Client prerequisites are not met. wesnoth, cutter and exploder cannot be built.
Unit tests are disabled because their prerequisites are not met.
If any config checks fail, look in build/config.log for details
If a check fails spuriously due to caching, use --config=force to force its rerun
scons: done reading SConscript files.
scons: Building targets ...
error_action(["wesnoth"], [])
scons: *** [wesnoth] Target disabled because its prerequisites are not met
scons: building terminated because of errors.
I'm not really around any more, but you can find me in TvTropes.
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: Problem compiling Wesnoth with SVN

Post by loonycyborg »

Recently wesnoth started using boost.program_options. You'll need to install packages for it too. libboost-program-options-dev or so.
"meh." - zookeeper
User avatar
sur.nhm
Posts: 630
Joined: September 4th, 2008, 12:10 pm
Location: in /dev/null...

Re: Problem compiling Wesnoth with SVN

Post by sur.nhm »

Installing that package solves the problem. Thanks.
I'm not really around any more, but you can find me in TvTropes.
Post Reply