ofxOpenNI icon indicating copy to clipboard operation
ofxOpenNI copied to clipboard

How to mesh ofxOpenNI with ofxFluid?

Open damia opened this issue 11 years ago • 0 comments

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.

damia avatar Feb 11 '14 14:02 damia