Skip to content

compilation error in Qtcreator #134

@brunovianna

Description

@brunovianna

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions