Hi,
I’ve tried to get webcam working on Linux but I cannot build “CaptureBasic” sample, it throws
undefined reference to cinder::Capture::*
Have I missed installed some libraries or such?
If Capture in cinder doesn’t support Linux then is there any block which does the job? or any direction would be grateful!
Thanks in advance.
–
Ubuntu 16.04
Cinder 0.9.2dev
Here’s whole logs I’ve got
CMakeFiles/CaptureBasic.dir/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp.o: In function `CaptureBasicApp::setup()':
/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp:34: undefined reference to `cinder::Capture::start()'
CMakeFiles/CaptureBasic.dir/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp.o: In function `CaptureBasicApp::update()':
/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp:49: undefined reference to `cinder::Capture::checkNewFrame() const'
/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp:52: undefined reference to `cinder::Capture::getSurface() const'
/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp:55: undefined reference to `cinder::Capture::getSurface() const'
CMakeFiles/CaptureBasic.dir/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp.o: In function `CaptureBasicApp::printDevices()':
/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp:88: undefined reference to `cinder::Capture::getDevices(bool)'
CMakeFiles/CaptureBasic.dir/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp.o: In function `cinder::Capture::create(int, int, std::shared_ptr<cinder::Capture::Device>)':
/home/av/Documents/Cinder/include/cinder/Capture.h:67: undefined reference to `cinder::Capture::Capture(int, int, std::shared_ptr<cinder::Capture::Device>)'
CMakeFiles/CaptureBasic.dir/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp.o: In function `std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<cinder::Capture*>(cinder::Capture*)':
/usr/include/c++/5/bits/shared_ptr_base.h:578: undefined reference to `cinder::Capture::~Capture()'
CMakeFiles/CaptureBasic.dir/home/av/Documents/Cinder/samples/CaptureBasic/src/CaptureBasicApp.cpp.o: In function `std::_Sp_counted_ptr<cinder::Capture*, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
/usr/include/c++/5/bits/shared_ptr_base.h:374: undefined reference to `cinder::Capture::~Capture()'
collect2: error: ld returned 1 exit status
CMakeFiles/CaptureBasic.dir/build.make:114: recipe for target 'Debug/CaptureBasic/CaptureBasic' failed
make[2]: *** [Debug/CaptureBasic/CaptureBasic] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/CaptureBasic.dir/all' failed
make[1]: *** [CMakeFiles/CaptureBasic.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2