"Boost headers" error while configuring (Ubuntu)

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderators: Forum Moderators, Developers

Raelifin
Posts: 21
Joined: May 7th, 2005, 7:54 am

"Boost headers" error while configuring (Ubuntu)

Post by Raelifin » January 3rd, 2008, 4:49 pm

Hey, this is my first time compiling the Wesnoth source, as I am tired of using 1.2.6 (the only version supported by the Ubuntu community at the time of writing). The wiki page was very helpful, and I downloaded and opened the tar just fine. Here is my error:

Code: Select all

wesnoth-1.3.13$ ./configure
... (Long readout, I can post the whole thing if needed) ...
configure: error: Could not find Boost headers version >= 1.33
wesnoth-1.3.13$ make
make: *** No targets specified and no makefile found.  Stop.
What is Boost? How do I get around this? etc.
I've looked around online and have found nothing.

Thanks!
- Max

P.S. Using Ubuntu 7.10 (Gutsy)

grrr
Posts: 252
Joined: May 25th, 2007, 9:49 pm

Post by grrr » January 3rd, 2008, 5:46 pm

try installing libboost-iostreams-dev before you compile (need to rerun the configure script once you have it). 1.3.13 introduced some new dependencies, as mentioned in the release notes.

Raelifin
Posts: 21
Joined: May 7th, 2005, 7:54 am

Post by Raelifin » January 3rd, 2008, 6:43 pm

Great! Thanks a ton. Someone should add the new requirement to the wiki (I don't know enough about it).

On a slightly more embarrassing note... How do you actually run it after installation?

grrr
Posts: 252
Joined: May 25th, 2007, 9:49 pm

Post by grrr » January 3rd, 2008, 7:10 pm

mkay, here is what i do once i extracted the tarball into a working dir:
$ ./configure --prefix=/path/to/my/home/dir/local/wesnoth-${version}
$ make
$ make install
$ cd /path/to/my/home/dir/local/wesnoth-${version}
$ bin/wesnoth

that way, i know i can remove the ~/local/wesnoth-${version} folder if a new version is released, and i always get clean builds (no reinstallations).

Raelifin
Posts: 21
Joined: May 7th, 2005, 7:54 am

Post by Raelifin » January 3rd, 2008, 9:06 pm

My bad, it seems it overwrote 1.2.6 and I can just run it the usual way.

Thanks so much grrrr.
And, as in uffish thought he stood,
The Jabberwock, with eyes of flame,
Came whiffling through the tulgey wood,
And burbled as it came!
-Lewis Carroll "Jabberwocky"

Frem
Posts: 4
Joined: January 4th, 2008, 2:33 pm

Post by Frem » January 4th, 2008, 3:03 pm

Hello,

i have got a similiar problem. I'm using Mandriva 2008. I'm getting the same error message.

I have got following package:
boost-jam 3.1.14-1
libboost1 1.33.1-6
libboost1-devel 1.33.1-6
libboost1-examples 1.33.1-6
libboost1-static-devel 1.33.1-6

The libraries are installed in "/usr/lib/".

If i try "./configure PREFIX=/home/my_home_dir/bin/ --with-boost=/usr/lib/", it will fail too.

I hope, that you can help me too.

grrr
Posts: 252
Joined: May 25th, 2007, 9:49 pm

Post by grrr » January 4th, 2008, 4:41 pm

uhm, sry - i have no mandriva box here to test myself.
but i guess you could ask the boost community directly: #boost on freenode.net

there's surely some1 who knows how to get iostreams from boost working for mandriva (be sure to ask nicely, as they get those kind of questions a lot probably).

EDIT: dont forget you need the headers from iostreams, so lookout for a *-dev or *-devel version of it.

User avatar
Herduk
Posts: 97
Joined: August 18th, 2005, 9:19 am
Location: Bergamo - Italy

Post by Herduk » January 6th, 2008, 9:40 am

Frem wrote:Hello,

i have got a similiar problem. I'm using Mandriva 2008. I'm getting the same error message.

I have got following package:
boost-jam 3.1.14-1
libboost1 1.33.1-6
libboost1-devel 1.33.1-6
libboost1-examples 1.33.1-6
libboost1-static-devel 1.33.1-6

The libraries are installed in "/usr/lib/".

If i try "./configure PREFIX=/home/my_home_dir/bin/ --with-boost=/usr/lib/", it will fail too.

I hope, that you can help me too.
I got the same configuration and libraries but i can configure and compile the game.
Don't bother a dwarf.. you can argue with his hammer!

Frem
Posts: 4
Joined: January 4th, 2008, 2:33 pm

Post by Frem » January 7th, 2008, 1:52 pm

Thank you for your answer.

I will try something (my supposition: that i did something wrong in last days). I hope, that helps.

---------
Now i have installed Mandriva 2008 again. I didn't any changes on system without using "rpmdrake".

I don't know, why it don't work on my system. Have you got ideas?

User avatar
Herduk
Posts: 97
Joined: August 18th, 2005, 9:19 am
Location: Bergamo - Italy

Post by Herduk » January 7th, 2008, 4:08 pm

Frem wrote:Thank you for your answer.

I will try something (my supposition: that i did something wrong in last days). I hope, that helps.

---------
Now i have installed Mandriva 2008 again. I didn't any changes on system without using "rpmdrake".

I don't know, why it don't work on my system. Have you got ideas?
What error message do you have while configure wesnoth?
Don't bother a dwarf.. you can argue with his hammer!

Frem
Posts: 4
Joined: January 4th, 2008, 2:33 pm

Post by Frem » January 8th, 2008, 3:01 pm

I'm getting this message (with using "./configure")

Code: Select all

checking for OGG support in SDL_mixer... yes
checking for Boost headers version >= 1.33... no
configure: error: Could not find Boost headers version >= 1.33
After the last message: "configure" quits working.

MarkP
Posts: 77
Joined: December 11th, 2006, 2:18 am
Location: Sydney, Australia

Post by MarkP » January 14th, 2008, 11:27 am

I have exactly the same problem as Frem. Mandriva 2008, all the Boost packages installed. /usr/lib/ contains (among other things):

libboost_iostreams.so
libboost_iostreams.so.1
libboost_iostreams.so.1.33.1

/usr/lib/ is definitely in my path (had to make sure of that for SDL).

Any suggestions are welcome. Maybe I should just install 1.3.12. ;)
This signature intentionally left blank.

torangan
Retired Developer
Posts: 1365
Joined: March 27th, 2004, 12:25 am
Location: Germany

Post by torangan » January 14th, 2008, 4:22 pm

Having the libs in /usr/lib is fine and well but how about the headers in /usr/include? They're usually in some -dev(el) package...
WesCamp-i18n - Translations for User Campaigns:
http://www.wesnoth.org/wiki/WesCamp

Translators for all languages required: contact me. No geek skills required!

MarkP
Posts: 77
Joined: December 11th, 2006, 2:18 am
Location: Sydney, Australia

Post by MarkP » January 15th, 2008, 1:06 am

/usr/include/boost/iostreams contains a whole pile of *.hpp files and a couple of folders. So I assume that's correct.

/usr/include wasn't in my $PATH though, so added it and.....still get the same message. :( Even tried adding /usr/include/boost/iostreams to the $PATH and still no joy.
This signature intentionally left blank.

shevegen
Posts: 238
Joined: June 3rd, 2004, 4:35 pm

Post by shevegen » January 16th, 2008, 11:33 am

yeah get a similar error... dunno why boost is needed, I only know boost gave me loads of headaches in the past so i kinda am not the best friend with boost ... ;)

Post Reply