ofnode/of

error when building ofExample on OS X 10.12

Closed this issue · 1 comments

here is the log :

[12/361] Building CXX object CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o
FAILED: CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++   -DDISABLE_PERF_MEASUREMENT -DFREEIMAGE_LIB -DLIBRAW_NODLL -DNO_LCMS -DOF_SOUNDSTREAM_RTAUDIO -DOF_SOUND_PLAYER_OPENAL -DOF_USING_MPG123 -DOPJ_STATIC -DPOCO_STATIC -D__MACOSX_CORE__ -I/Users/antoinevilleret/dev/of/src/openframeworks -I/Users/antoinevilleret/dev/of/src/openframeworks/3d -I/Users/antoinevilleret/dev/of/src/openframeworks/app -I/Users/antoinevilleret/dev/of/src/openframeworks/communication -I/Users/antoinevilleret/dev/of/src/openframeworks/events -I/Users/antoinevilleret/dev/of/src/openframeworks/gl -I/Users/antoinevilleret/dev/of/src/openframeworks/graphics -I/Users/antoinevilleret/dev/of/src/openframeworks/math -I/Users/antoinevilleret/dev/of/src/openframeworks/sound -I/Users/antoinevilleret/dev/of/src/openframeworks/types -I/Users/antoinevilleret/dev/of/src/openframeworks/utils -I/Users/antoinevilleret/dev/of/src/openframeworks/video -I/Users/antoinevilleret/dev/of/src/freeimage/Source -I/Users/antoinevilleret/dev/of/src/freeimage/Source/DeprecationManager -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibJPEG -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibOpenJPEG -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibPNG -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibRawLite -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibTIFF4 -I/Users/antoinevilleret/dev/of/src/freeimage/Source/LibWebP -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/Half -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/Iex -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/IexMath -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/IlmImf -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/IlmThread -I/Users/antoinevilleret/dev/of/src/freeimage/Source/OpenEXR/Imath -I/Users/antoinevilleret/dev/of/src/glew -I/Users/antoinevilleret/dev/of/src/glew/include -I/Users/antoinevilleret/dev/of/src/glfw -I/Users/antoinevilleret/dev/of/src/glfw/include -I/Users/antoinevilleret/dev/of/src/glfw/include/GLFW -I/Users/antoinevilleret/dev/of/src/kissfft -I/Users/antoinevilleret/dev/of/src/kissfft/tools -I/Users/antoinevilleret/dev/of/src/libtess2 -I/Users/antoinevilleret/dev/of/src/libtess2/Include -I/Users/antoinevilleret/dev/of/src/libtess2/Source -I/Users/antoinevilleret/dev/of/src/poco -I/Users/antoinevilleret/dev/of/src/poco/Crypto/include -I/Users/antoinevilleret/dev/of/src/poco/Foundation/include -I/Users/antoinevilleret/dev/of/src/poco/Net/include -I/Users/antoinevilleret/dev/of/src/poco/NetSSL_OpenSSL/include -I/Users/antoinevilleret/dev/of/src/poco/Util/include -I/Users/antoinevilleret/dev/of/src/poco/XML/include -I/Users/antoinevilleret/dev/of/src/poco/Zip/include -I/Users/antoinevilleret/dev/of/src/rtaudio -I/Users/antoinevilleret/dev/of/src/rtaudio/include -I/Users/antoinevilleret/dev/of/src/utf8cpp -I/Users/antoinevilleret/dev/of/src/utf8cpp/include -I/usr/local/include/freetype2 -I/usr/local/Cellar/cairo/1.14.8/include/cairo -I/usr/local/Cellar/glib/2.50.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.50.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include -I/usr/local/Cellar/pixman/0.34.0/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.12.1_2/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.26/include/libpng16 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/Cellar/mpg123/1.23.8/include -I/Users/antoinevilleret/dev/of/addons/ofxAssimpModelLoader/src -I/usr/local/Cellar/assimp/3.3.1/include/assimp -I/Users/antoinevilleret/dev/of/addons/ofxGui/src -I/Users/antoinevilleret/dev/of/addons/ofxKinect/src -I/Users/antoinevilleret/dev/of/addons/ofxKinect/src/extra -I/Users/antoinevilleret/dev/of/addons/ofxKinect/libs/libfreenect/src -I/Users/antoinevilleret/dev/of/addons/ofxKinect/libs/libfreenect/include -I/usr/local/include/libusb-1.0 -I/Users/antoinevilleret/dev/of/addons/ofxNetwork/src -I/Users/antoinevilleret/dev/of/addons/ofxOpenCv/src -I/usr/local/Cellar/opencv/2.4.13.1/include/opencv -I/usr/local/Cellar/opencv/2.4.13.1/include -I/Users/antoinevilleret/dev/of/addons/ofxOsc/src -I/Users/antoinevilleret/dev/of/addons/ofxOsc/libs/oscpack/src -I/Users/antoinevilleret/dev/of/addons/ofxOsc/libs/oscpack/src/ip -I/Users/antoinevilleret/dev/of/addons/ofxOsc/libs/oscpack/src/osc -I/Users/antoinevilleret/dev/of/addons/ofxSvg/src -I/Users/antoinevilleret/dev/of/addons/ofxSvg/libs/svgTiny/src -I/Users/antoinevilleret/dev/of/addons/ofxThreadedImageLoader/src -I/Users/antoinevilleret/dev/of/addons/ofxVectorGraphics/src -I/Users/antoinevilleret/dev/of/addons/ofxVectorGraphics/libs -I/Users/antoinevilleret/dev/of/addons/ofxXmlSettings/src -I/Users/antoinevilleret/dev/of/addons/ofxXmlSettings/libs -fcolor-diagnostics -std=c++1y -O3 -DNDEBUG -g1 -Wno-switch -Wno-c++11-narrowing -Wno-ignored-attributes -Wno-deprecated-register    -w -MD -MT CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o -MF CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o.d -o CMakeFiles/osxVideoRecorderExample.dir/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp.o -c /Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp
In file included from /Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:1:
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.h:26:9: error: use of undeclared identifier 'ofQTKitGrabber'
                ofPtr<ofQTKitGrabber>   vidRecorder;
                      ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.h:30:19: error: unknown type name 'ofVideoSavedEventArgs'
                void videoSaved(ofVideoSavedEventArgs& e);
                                ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:4:6: error: This example requires OF_VIDEO_PLAYER_QTKIT to be defined.  
    #error This example requires OF_VIDEO_PLAYER_QTKIT to be defined.
     ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:5:6: error: For OS X versions > 10.6 and < 10.12 #define OF_VIDEO_PLAYER_QTKIT before including ofMain.h in main.cpp
    #error For OS X versions > 10.6 and < 10.12 #define OF_VIDEO_PLAYER_QTKIT before including ofMain.h in main.cpp
     ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:24:25: error: use of undeclared identifier 'ofQTKitGrabber'
    vidRecorder = ofPtr<ofQTKitGrabber>( new ofQTKitGrabber() );
                        ^
/Users/antoinevilleret/dev/of/examples/ofExamples/video/osxVideoRecorderExample/src/ofApp.cpp:210:24: error: unknown type name 'ofVideoSavedEventArgs'
void ofApp::videoSaved(ofVideoSavedEventArgs& e){
                       ^
6 errors generated.
[16/361] Building CXX object CMakeFiles/conversionExample.dir/ofExamples/utils/conversionExample/src/ofApp.cpp.o
ninja: build stopped: subcommand failed.

fixed with bca8840

and this is an OpenFrameworks issue since this example requires QtKit which is no more available on OS X 10.12