Problems compiling 1.9.4 with boost library

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
stupac
Posts: 29
Joined: September 25th, 2005, 10:08 pm
Location: I stay in this place called 'rooms', there's a whole chain of 'em.

Problems compiling 1.9.4 with boost library

Post by stupac »

Greetings, I've compiled wesnoth-devel versions on several dozen different systems and distros, but this time I'm stumped I'm afraid. This is what I get on my archbang netbook (basically Arch linux). I've installed all the prerequisites, anyone have any idea what to try next?

Code: Select all

[root@archbang wesnoth-1.9.4]# scons
scons: Reading SConscript files ...
Saved options: default_targets = 'wesnoth,wesnothd'
Building Wesnoth version 1.9.4
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... yes
Checking for SDL_net library... yes
Checking for Boost system library... yes
Checking for Boost thread library... yes
Checking for Boost asio library... yes
Checking for Pango with cairo backend... (cached) yes
Checking for fontconfig... (cached) yes
Checking for Boost regex library version >= 1.35.0... yes
Checking for SDL_ttf library version >= 2.0.8... yes
Checking for SDL_mixer library version >= 1.2.0... yes
Checking for SDL_image library version >= 1.2.0... yes
build/sconf_temp/conftest_21: error while loading shared libraries: libboost_thread.so.1.45.0: cannot open shared object file: No such file or directory
Checking for Ogg Vorbis support in SDL... 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.
Thanks!
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: Problems compiling 1.9.4 with boost library

Post by loonycyborg »

It looks like the dynamic linker can't find libboost_thread.so.1.45.0 when running a test program. Maybe try running 'sudo ldconfig' followed by 'scons --config=force'.
"meh." - zookeeper
stupac
Posts: 29
Joined: September 25th, 2005, 10:08 pm
Location: I stay in this place called 'rooms', there's a whole chain of 'em.

Re: Problems compiling 1.9.4 with boost library

Post by stupac »

Thanks for the reply loonycyborg. ldconfig ran ok, no output. But scons --config=force resulted in identical output as before. I compiled and installed the latest version of boost off their website, seemed to go in just fine so I'm not sure what is going on. Is there a binary package of boost maybe available for Arch that I'm not aware of? I couldn't find anything in the AUR or with pacman for that matter.
stupac
Posts: 29
Joined: September 25th, 2005, 10:08 pm
Location: I stay in this place called 'rooms', there's a whole chain of 'em.

Re: Problems compiling 1.9.4 with boost library

Post by stupac »

Also I checked the build/config.log and didn't see anything strange, but here it is just in case:

http://pastebin.com/LtHqqg8u
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: Problems compiling 1.9.4 with boost library

Post by loonycyborg »

Does build/sconf_temp/conftest_21 work if you run it directly?
"meh." - zookeeper
stupac
Posts: 29
Joined: September 25th, 2005, 10:08 pm
Location: I stay in this place called 'rooms', there's a whole chain of 'em.

Re: Problems compiling 1.9.4 with boost library

Post by stupac »

I'm afraid not:

Code: Select all

[root@archbang sconf_temp]# ./conftest_21
./conftest_21: error while loading shared libraries: libboost_thread.so.1.45.0: cannot open shared object file: No such file or directory
Same thing. I wish I knew where it was searching for the library so maybe I could link them?

Just thought I'd add this:

Code: Select all

[root@archbang sconf_temp]# whereis libboost_thread.so.1.45.0
libboost_thread.so.1.45: /usr/local/lib/libboost_thread.so.1.45.0
Thanks again for the help!
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: Problems compiling 1.9.4 with boost library

Post by loonycyborg »

Distros generally don't install libs into /usr/local/lib. It seems to be a custom install of boost. In order for runtime linker to find the library in /usr/local/lib this entry should be in /etc/ld.so.conf, naturally changes in this file take effect after a ldconfig run.
"meh." - zookeeper
stupac
Posts: 29
Joined: September 25th, 2005, 10:08 pm
Location: I stay in this place called 'rooms', there's a whole chain of 'em.

Re: Problems compiling 1.9.4 with boost library

Post by stupac »

Good thinking. I added the line /usr/local/lib to a file and included it in the /etc/ld.so.conf, ran ldconfig and then scons and I got further but it is still hung up somewhere.

Code: Select all

[root@archbang wesnoth-1.9.4]# scons
scons: Reading SConscript files ...
Saved options: default_targets = 'wesnoth,wesnothd'
Building Wesnoth version 1.9.4
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 regex library version >= 1.35.0... (cached) yes
Checking for SDL_ttf library version >= 2.0.8... (cached) yes
Checking for SDL_mixer library version >= 1.2.0... (cached) yes
Checking for SDL_image library version >= 1.2.0... (cached) yes
Checking for Ogg Vorbis support in SDL... (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.
Is Ogg support in SDL required? If so, I suppose that means I'll need to uninstall and recompile SDL with flags for Ogg support?
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: Problems compiling 1.9.4 with boost library

Post by loonycyborg »

Probably you just need to run scons --config=force because it didn't rerun that test program. If it still fails paste build/config.log
"meh." - zookeeper
stupac
Posts: 29
Joined: September 25th, 2005, 10:08 pm
Location: I stay in this place called 'rooms', there's a whole chain of 'em.

Re: Problems compiling 1.9.4 with boost library

Post by stupac »

Perfect, worked like a charm! Thanks for all the help loonycyborg! It is greatly appreciated. Thought I'd go crazy if not for one my favorite time killers!

Cheers!
Post Reply