2020-04-20

supertux - undefined reference



undefined reference to 'boost::locale:

 

undefined reference to 'boost::locale::generator::generate(std::__cx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

The problem seems to be boost-related:

add the line:

-DCMAKE_EXE_LINKER_FLAGS:STRING="-lboost_locale" \

into the cmake configuration options.


 

libboost_locale.so: undefined reference to 'boost::system::detail::generic_category_instance'


> locale is part of libboost-dev. I didnt need 1.68 boost-locale from next.

No.

You need boost-*-1.68.0 from next.

1. edit a list of packages - boost-dep.lst
tux@slitaz:~$ cat boost-dep.lst
libicu-60.2-i486.tazpkg
icu-60.2-i486.tazpkg
libicu-full-60.2-i486.tazpkg
icu-full-60.2-i486.tazpkg
boost-system-1.68.0-i486.tazpkg
boost-date-time-1.68.0-i486.tazpkg
boost-iostreams-1.68.0-i486.tazpkg
boost-regex-1.68.0-i486.tazpkg
boost-serialization-1.68.0-i486.tazpkg
boost-thread-1.68.0-i486.tazpkg
boost-1.68.0-any.tazpkg
boost-chrono-1.68.0-i486.tazpkg
boost-filesystem-1.68.0-i486.tazpkg
boost-locale-1.68.0-i486.tazpkg
boost-math-1.68.0-i486.tazpkg
boost-dev-1.68.0-i486.tazpkg

2. download the packages
http://cook.slitaz.org/next/icu/download
http://cook.slitaz.org/next/boost/download

3.
install-list    Install all packages from a list of packages

# tazpkg install-list bootst-dep.lst

4. recompile supertux