@Gallo wrote:
Hello,
I created a new project using Qtcreator template and i can't compile it.
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_QTCaptureDevice", referenced from: objc-class-ref in libopenFrameworks.a(ofQTKitGrabber.o) "_OBJC_CLASS_$_QTCaptureDeviceInput", referenced from: objc-class-ref in libopenFrameworks.a(ofQTKitGrabber.o) "_OBJC_CLASS_$_QTCaptureMovieFileOutput", referenced from: objc-class-ref in libopenFrameworks.a(ofQTKitGrabber.o) "_OBJC_CLASS_$_QTCaptureSession", referenced from: objc-class-ref in libopenFrameworks.a(ofQTKitGrabber.o) "_OBJC_CLASS_$_QTCaptureVideoPreviewOutput", referenced from: _OBJC_CLASS_$_QTKitVideoGrabber in libopenFrameworks.a(ofQTKitGrabber.o) "_OBJC_CLASS_$_QTCompressionOptions", referenced from: objc-class-ref in libopenFrameworks.a(ofQTKitGrabber.o) "_OBJC_METACLASS_$_QTCaptureVideoPreviewOutput", referenced from: _OBJC_METACLASS_$_QTKitVideoGrabber in libopenFrameworks.a(ofQTKitGrabber.o) "_QTMediaTypeMuxed", referenced from: +[QTKitVideoGrabber listVideoDevices] in libopenFrameworks.a(ofQTKitGrabber.o) -[QTKitVideoGrabber setVideoDeviceID:] in libopenFrameworks.a(ofQTKitGrabber.o) ofQTKitGrabber::setVideoDeviceID(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in libopenFrameworks.a(ofQTKitGrabber.o) "_QTMediaTypeSound", referenced from: +[QTKitVideoGrabber listAudioDevices] in libopenFrameworks.a(ofQTKitGrabber.o) -[QTKitVideoGrabber setAudioDeviceID:] in libopenFrameworks.a(ofQTKitGrabber.o) +[QTKitVideoGrabber listAudioCodecs] in libopenFrameworks.a(ofQTKitGrabber.o) -[QTKitVideoGrabber setAudioCodec:] in libopenFrameworks.a(ofQTKitGrabber.o) ofQTKitGrabber::setAudioDeviceID(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in libopenFrameworks.a(ofQTKitGrabber.o) "_QTMediaTypeVideo", referenced from: +[QTKitVideoGrabber listVideoDevices] in libopenFrameworks.a(ofQTKitGrabber.o) -[QTKitVideoGrabber setVideoDeviceID:] in libopenFrameworks.a(ofQTKitGrabber.o) +[QTKitVideoGrabber listVideoCodecs] in libopenFrameworks.a(ofQTKitGrabber.o) -[QTKitVideoGrabber setVideoCodec:] in libopenFrameworks.a(ofQTKitGrabber.o) ofQTKitGrabber::setVideoDeviceID(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) in libopenFrameworks.a(ofQTKitGrabber.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
The project is really straight forward : i just added an ofVideoGrabber object and set it up in
ofApp::setup()
Using OSX El Capitan with oF0.9.3 and Qtcreator 3.6.1
Everything works fine under XCode but i would like to switch to Qtcreator as i am working with both OSX and Linux.
thanks a lot
Posts: 6
Participants: 3