vanderlin / ofxBox2d

Openframework wrapper for box2d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compilation error in Qtcreator

brunovianna opened this issue · comments

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.