Kinect Example + ofVideoPlayer

Hello, i’m using of_v0072_osx_release xcode 4.4.1
i’m trying to load some .mov videos on ofxKinect Example but when ofVideoPlayer is declared in testApp.h i’m having a bunch of opencv errors like:

Undefined symbols for architecture i386:
“_CVOpenGLTextureCacheRelease”, referenced from:
-[QTKitMovieRenderer dealloc] in openFrameworksDebug.a(ofQTKitMovieRenderer.o)
“_CVPixelBufferGetPixelFormatType”, referenced from:
-[QTKitMovieRenderer pixels:] in openFrameworksDebug.a(ofQTKitMovieRenderer.o)
“_QTMakeTime”, referenced from:
-[QTKitMovieRenderer loadMovie:pathIsURL:allowTexture:allowPixels:allowAlpha:]

CODE IN testApp.h:

#pragma once

#include “ofMain.h”
#include “ofxOpenCv.h”
#include “ofxKinect.h”

// uncomment this to read from two kinects simultaneously
//#define USE_TWO_KINECTS

class testApp : public ofBaseApp {
public:

void setup();
void update();
void draw();
void exit();

void drawPointCloud();

void keyPressed(int key);
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);

ofxKinect kinect;

ofVideoPlayer vid;

#ifdef USE_TWO_KINECTS
ofxKinect kinect2;
#endif

ofxCvColorImage colorImg;

ofxCvGrayscaleImage grayImage; // grayscale depth image
ofxCvGrayscaleImage grayThreshNear; // the near thresholded image
ofxCvGrayscaleImage grayThreshFar; // the far thresholded image

ofxCvContourFinder contourFinder;

bool bThreshWithOpenCV;
bool bDrawPointCloud;

int nearThreshold;
int farThreshold;

int angle;

// used for viewing the point cloud
ofEasyCam easyCam;
};

ofxKinect Example is working without ofVideoPlayer, i read the opencv library to try to understand the errors but i dont know what is happening ¿any suggestions?

Thanks

Your problem is Quick time library linkage

Make sure your Base SDK is 10.6
10.8 does not have QT support

1 Like

Hey fishkingsin thanks for answering

Yes the base SDK is 10.6 i tried with 10.7 and 10.8 SDK and
didn’t works

¿maybe because i’m on mountain lion 10.8.2?

![](http://forum.openframeworks.cc/uploads/default/2603/Captura de pantalla 2012-10-28 a la(s) 22.40.05.png)

try to make openFrameworksLib.xcodeproj as 10.6 also

![](http://forum.openframeworks.cc/uploads/default/2605/Screen Shot 2012-10-29 at 1.17.56 PM.png)

Hey fishkingsin thanks for the reply,now kinectExample works changing openFrameworksLib.xcodeproj to 10.6, but now the problem is playing .mov alpha videos in the same project using setPixelFormat(OF_PIXELS_RGBA), i think is not supported in 10.6.

have you try to set both openFrameworksLib.xcodeproj and kinectExample.xcodeproj as 10.7 SDK

Yes, when are on 10.7 openFrameworks Lib.xcodeproj and kinect Example.xcodeproj, The kinect’s errors are back.

could you try to link CoreVideo.frameworks and QTKit.frameworks

![](http://forum.openframeworks.cc/uploads/default/2613/Screen Shot 2012-11-05 at 1.41.23 PM.png)

Hey fishkingsin now works including CoreVideo.frameworks and QTKit.frameworks and openFrameworksLib.xcodeproj and kinectExample.xcodeproj as 10.7 SDK

Thanks a lot.