ofxBox2d
ofxBox2d copied to clipboard
compilation error in Qtcreator
When I import the ComplexPolygon example into QtCreator, a few errors come up, like:
ofApp.cpp:56:3: error: cannot initialize object parameter of type 'ofxBox2dBaseShape' with an expression of type 'std::__shared_ptr_access<ofxBox2dCircle, __gnu_cxx::_S_atomic, false, false>::element_type' (aka 'ofxBox2dCircle')
on line 56 of ofApp.cpp
circle->setPhysics(0.3, 0.5, 0.1);
If I try to compile with Make (just using make from the command line at the root folder of the example), it works. Any ideas?
I'm using Ubuntu 20.04 Of 0.11.0 with ofxBox2d branch master. Could that be the problem? There is no branch for 0.11.