Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on Debian SID #117

Open
CuZnDragon opened this issue Oct 24, 2022 · 0 comments
Open

Unable to build on Debian SID #117

CuZnDragon opened this issue Oct 24, 2022 · 0 comments

Comments

@CuZnDragon
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant