Boost logo

Boost Users :

Subject: [Boost-users] Help with compiling boost for Debian (receiving file not found error when compiling boost-dependant program)
From: Jónatan Nilsson (jonatan_at_[hidden])
Date: 2009-08-21 09:03:02


Hi all.

I am trying to compile Ghost++, a Warcraft 3 dedicated server program
and one of it's dependency is Boost. The following is the instruction
on how to compile Boost from the Ghost++ documentation (a.k.a. the
readme file):

--------------------------------
You'll need Boost version 1.38.0 (or potentially any newer versions).
If your package manager has this version available please use it
instead of installing it manually.
To install Boost manually:

7. Download and extract Boost 1.38.0 from http://www.boost.org/
8. su to root.
9. ./configure --prefix=/usr
--with-libraries=date_time,thread,system,filesystem,regex
10. Edit the newly created Makefile with your favourite text editor.
The second line should be "BJAM_CONFIG=". Replace it with
"BJAM_CONFIG= --layout=system".
11. make install
--------------------------------

Unfortunately you have removed the ./confiigure and make and replaced
them with new commands: bootstrap & bjam.
I tried running the following commands:

--------------------------------
./bootstrap.sh --with-libraries=date_time,thread,system,filesystem,regex
./bjam install
--------------------------------

But when I try to 'make' Ghost++ I get the following error:

--------------------------------
# make
...
bnet.cpp:38:32: error: boost/filesystem.hpp: No such file or directory
bnet.cpp:39:27: error: boost/regex.hpp: No such file or directory
...
--------------------------------

What am I doing wrong :S
I am using debian linux and I tried to apt-get install boost but the
newest version there was 1.35 and when I tried running 'make' on
Ghost++ after installing those packages I received a new set of
errors:

--------------------------------
bnet.cpp:1739: error: âclass
boost::filesystem::basic_directory_entry<boost::filesystem::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem::path_traits> >â has no member named âfilenameâ
bnet.cpp:1741: error: âclass
boost::filesystem::basic_directory_entry<boost::filesystem::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem::path_traits> >â has no member named âfilenameâ
bnet.cpp:1757: error: âstruct boost::filesystem::pathâ has no member
named âfilenameâ
make: *** [bnet.o] Error 1
--------------------------------

Now I am stuck with no idea on what could be wrong with the boost
installation...
Much help appreciated :)

Sincerely:
Jonatan Nilsson
Iceland


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net