Error building wesnoth 1.6.2 on Linux

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
Ghotcom
Posts: 4
Joined: June 25th, 2009, 4:33 pm

Error building wesnoth 1.6.2 on Linux

Post by Ghotcom »

depbase=`echo version.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DHAVE_REVISION -I../intl -I../intl -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DWESNOTH_PATH=\"/usr/local/share/wesnoth\" -DLOCALEDIR=\"translations\" -DHAS_RELATIVE_LOCALEDIR=1 -DFIFODIR=\"/usr/local/var/run/wesnothd\" -DWESNOTH_PREFIX=\"/usr/local\" -O2 -W -Wall -ansi -Werror -Wno-unused -Wno-sign-compare -DDISABLE_POOL_ALLOC -D_X11 -I/usr/include/boost-1_39 -MT version.o -MD -MP -MF $depbase.Tpo -c -o version.o version.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo serialization/binary_or_text.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DHAVE_REVISION -I../intl -I../intl -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DWESNOTH_PATH=\"/usr/local/share/wesnoth\" -DLOCALEDIR=\"translations\" -DHAS_RELATIVE_LOCALEDIR=1 -DFIFODIR=\"/usr/local/var/run/wesnothd\" -DWESNOTH_PREFIX=\"/usr/local\" -O2 -W -Wall -ansi -Werror -Wno-unused -Wno-sign-compare -DDISABLE_POOL_ALLOC -D_X11 -I/usr/include/boost-1_39 -MT serialization/binary_or_text.o -MD -MP -MF $depbase.Tpo -c -o serialization/binary_or_text.o serialization/binary_or_text.cpp &&\
mv -f $depbase.Tpo $depbase.Po
cc1plus: warnings being treated as errors
/usr/include/boost-1_39/boost/iostreams/detail/streambuf/indirect_streambuf.hpp: In member function 'typename boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::int_type boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::overflow(typename Tr::int_type) [with T = boost::iostreams::basic_null_device<char, boost::iostreams::output>, Tr = std::char_traits<char>, Alloc = std::allocator<char>, Mode = boost::iostreams::output]':
serialization/binary_or_text.cpp:102: instantiated from here
/usr/include/boost-1_39/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:285: error: suggest parentheses around && within ||
/usr/include/boost-1_39/boost/iostreams/detail/streambuf/indirect_streambuf.hpp: In member function 'typename boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::int_type boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::overflow(typename Tr::int_type) [with T = boost::iostreams::detail::mode_adapter<boost::iostreams::output, std::basic_ostream<char, std::char_traits<char> > >, Tr = std::char_traits<char>, Alloc = std::allocator<char>, Mode = boost::iostreams::output]':
serialization/binary_or_text.cpp:102: instantiated from here
/usr/include/boost-1_39/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:285: error: suggest parentheses around && within ||
/usr/include/boost-1_39/boost/iostreams/detail/streambuf/indirect_streambuf.hpp: In member function 'typename boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::int_type boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::overflow(typename Tr::int_type) [with T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Tr = std::char_traits<char>, Alloc = std::allocator<char>, Mode = boost::iostreams::output]':
serialization/binary_or_text.cpp:102: instantiated from here
/usr/include/boost-1_39/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:285: error: suggest parentheses around && within ||
/usr/include/boost-1_39/boost/iostreams/filter/symmetric.hpp: In member function 'std::streamsize boost::iostreams::symmetric_filter<SymmetricFilter, Alloc>::read(Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >, SymmetricFilter = boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, Alloc = std::allocator<char>]':
/usr/include/boost-1_39/boost/iostreams/filter/gzip.hpp:199: instantiated from 'std::streamsize boost::iostreams::basic_gzip_compressor<Alloc>::read(Source&, char*, std::streamsize) [with Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >, Alloc = std::allocator<char>]'
/usr/include/boost-1_39/boost/iostreams/read.hpp:216: instantiated from 'static std::streamsize boost::iostreams::detail::read_filter_impl<boost::iostreams::multichar_tag>::read(T&, Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]'
/usr/include/boost-1_39/boost/iostreams/read.hpp:57: instantiated from 'std::streamsize boost::iostreams::read(T&, Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]'
/usr/include/boost-1_39/boost/iostreams/detail/adapter/concept_adapter.hpp:249: instantiated from 'static std::streamsize boost::iostreams::detail::flt_wrapper_impl<boost::iostreams::input>::read(Filter&, Source*, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Filter = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]'
/usr/include/boost-1_39/boost/iostreams/detail/adapter/concept_adapter.hpp:75: instantiated from 'std::streamsize boost::iostreams::detail::concept_adapter<T>::read(typename boost::iostreams::char_type_of<T>::type*, std::streamsize, Source*) [with Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >, T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >]'
/usr/include/boost-1_39/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:256: instantiated from 'typename boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::int_type boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::underflow() [with T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Tr = std::char_traits<char>, Alloc = std::allocator<char>, Mode = boost::iostreams::output]'
serialization/binary_or_text.cpp:102: instantiated from here
/usr/include/boost-1_39/boost/iostreams/filter/symmetric.hpp:126: error: suggest parentheses around && within ||
make[2]: *** [serialization/binary_or_text.o] Error 1
make[2]: Leaving directory `/home/ghotcom/Desktop/wesnoth-1.6.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ghotcom/Desktop/wesnoth-1.6.2'
make: *** [all] Error 2
I m already trying to investigate that but if any of you has some knowledge about it, your help is very welcome
User avatar
TofuOgre
Posts: 24
Joined: April 25th, 2009, 12:25 am

Re: Error building wesnoth 1.6.2 on Linux

Post by TofuOgre »

There should be a real error message in the form of a text file created somewhere nearby where you just ran make.

From eye-balling this, it is looking for stuff like /usr/include/boost-1_39/boost/iostreams/filter/symmetric.hpp and not finding it because you probably have/usr/include/boost/iostreams/filter

But we are only seeing a portion of the commentary. It probably did look for stuff under
/usr/include/boost/iostreams/filter.

Do you have Boost 1.33 or higher? I remember I had to install that and LUAC5.1 and not from from using apt-get (Kubuntu does not have either and I forget where in /etc it looks that stuff up. You must edit that file when you install something that needs constant up-dates).

If your system uses Debian packages like Ubuntu does, try

sudo aptitude show boost

then

sudo apt-get install boost

then

sudo aptitude install boost

if it says you are still missing boost packages. Same with lua5.1
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: Error building wesnoth 1.6.2 on Linux

Post by loonycyborg »

Pass --disable-strict-compilation to ./configure
"meh." - zookeeper
Ghotcom
Posts: 4
Joined: June 25th, 2009, 4:33 pm

Re: Error building wesnoth 1.6.2 on Linux

Post by Ghotcom »

Hi mates. I have boost 1.39, and I only see directory usr/include/boost-1_39

Ok loonycyborg ;) I m gonna try your switch
Ghotcom
Posts: 4
Joined: June 25th, 2009, 4:33 pm

Re: Error building wesnoth 1.6.2 on Linux

Post by Ghotcom »

Ok nice, that appears to work. thank you

so just to let you know, here is the full configuration line that I went with

Code: Select all

PKG_CONFIG_PATH=/usr/lib64/pkgconfig ./configure --with-boost=/usr/include/boost1_39 --disable-strict-compilation
@Tofuogre

By the way, I m running a complete custom Linux system. So, nice wesnoth got to build on it


AH at present when I just tried to launch wesnoth, it crashed with this error:
bash-4.0$ ./wesnoth
Battle for Wesnoth v1.6.2
Started on Fri Jun 26 13:19:32 2009


Data directory: /usr/local/share/wesnoth
User configuration directory: /home/ghotcom/.wesnoth1.6

20090626 13:19:32 error filesystem: Trying to open file with empty name.
20090626 13:19:32 error config: Could not open file
could not initialize fonts
Ghotcom
Posts: 4
Joined: June 25th, 2009, 4:33 pm

Re: Error building wesnoth 1.6.2 on Linux

Post by Ghotcom »

Ah nevermind, i wasn t passing it the proper data directory. Running now :mrgreen:
See you ingame
Post Reply