gameoverhack / ofxOpenNI

Wrapper for OpenNI, NITE and SensorKinect
gingold.com.au
Other
246 stars 121 forks source link

How to mesh ofxOpenNI with ofxFluid? #45

Open damia opened 10 years ago

damia commented 10 years ago

Hi,

First of all, I would like to appreciate your hard work writing this class and sharing for all the community.

I have some problems when I mesh your class with ofxFluid. I can add the ofxFluid addon but when I call the class:

ofApp.h

pragma once

include "ofMain.h"

include "ofxOpenNI.h"

include "ofxFluid.h"

class testApp : public ofBaseApp{ public: void setup(); void update(); void draw();

    void keyPressed(int key);
    void keyReleased(int key);
    void mouseMoved(int x, int y);
    void mouseDragged(int x, int y, int button);
    void mousePressed(int x, int y, int button);
    void mouseReleased(int x, int y, int button);
    void windowResized(int w, int h);
    void dragEvent(ofDragInfo dragInfo);
    void gotMessage(ofMessage msg);
            void exit();

    void userEvent(ofxOpenNIUserEvent & event);

    ofxOpenNI openNIDevice;

    ofTrueTypeFont verdana;
    ofxFluid fluid; 

Appears some errors:

Undefined symbols for architecture i386: "vtable for ofxFluid", referenced from: ofxFluid::~ofxFluid() in testApp.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "ofxFXObject::~ofxFXObject()", referenced from: ofxFluid::~ofxFluid() in testApp.o "ofxFluid::ofxFluid()", referenced from: Fluids::Fluids() in main.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any one know how to solve it? Thank you so much.