Build error using boost :etonyek library, does not property

David Tardon dtardon at redhat.com
Wed Oct 15 01:49:48 PDT 2014


Hi,

On Mon, Oct 13, 2014 at 01:47:56PM -0430, PICCORO McKAY Lenz wrote:
> I have error building the etonyek library, i enabled on config script the
> --disable-weffc option at configure, and also i used the lasted 0.0.4 with
> compatibility patch for boost, or i have a missing library in my boost
> instalation?
> 
> how i can made built with glib 2.24, boost 1.42 and libc 2.7, here the
> build error here:

Noone has ever tried to build with boost that old. The oldest version
that is known to work is 1.47.

> 
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../inc
> -I/usr/include/libwpd-0.9 -I/usr/include/libxml2 -DNDEBUG -g -O2 -Wall
> -Wextra -Wshadow -pedantic -c KEYShape.cpp  -fPIC -DPIC -o .libs/KEYShape.o
> KEYShape.cpp: In function 'std::deque<libetonyek::<unnamed>::Point,
> std::allocator<libetonyek::<unnamed>::Point> >
> libetonyek::<unnamed>::rotatePoint(const libetonyek::<unnamed>::Point&,
> unsigned int)':
> KEYShape.cpp:140: error: 'two_pi' is not a member of 'm'

That is because the Math.Constants module in 1.42 does not contain that
constant yet. You need to update your boost. Alternatively, you can try
commit 26e7262646fa221c0aebfd47881ec34f063980e6 from master (but I have
no idea if it applies cleanly on libetonyek-0-0 branch). Or you can
patch the code to replace m::two_pi by 2 * m::pi.

D.


More information about the LibreOffice mailing list