google / liquidfun

2D physics engine for games

Home Page:http://google.github.io/liquidfun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to build on Debian SID

CuZnDragon opened this issue · comments

I applied the patch from issue 110 but now get the below error...

[ 21%] Building CXX object Box2D/CMakeFiles/Box2D.dir/Collision/b2DynamicTree.cpp.o
/home/rcook/data/downloads/debian/liquidfun-1.1.0/liquidfun/Box2D/Box2D/Collision/b2DynamicTree.cpp: In constructor ‘b2DynamicTree::b2DynamicTree()’:
/home/rcook/data/downloads/debian/liquidfun-1.1.0/liquidfun/Box2D/Box2D/Collision/b2DynamicTree.cpp:31:15: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct b2TreeNode’; use assignment or value-initialization instead [-Werror=class-memaccess]
31 | memset(m_nodes, 0, m_nodeCapacity * sizeof(b2TreeNode));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/rcook/data/downloads/debian/liquidfun-1.1.0/liquidfun/Box2D/Box2D/Collision/b2DynamicTree.cpp:20:
/home/rcook/data/downloads/debian/liquidfun-1.1.0/liquidfun/Box2D/Box2D/../Box2D/Collision/b2DynamicTree.h:28:8: note: ‘struct b2TreeNode’ declared here
28 | struct b2TreeNode
| ^~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Box2D/CMakeFiles/Box2D.dir/build.make:720: Box2D/CMakeFiles/Box2D.dir/Collision/b2DynamicTree.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:234: Box2D/CMakeFiles/Box2D.dir/all] Error 2
make: *** [Makefile:136: all] Error 2