ofxVideoRecorder on Ubuntu

I’m trying to get https://github.com/timscaffidi/ofxVideoRecorder working on ofx 0.11 and running into issues with poco.

I’m getting compile errors like those below; I saw related issues in this post:

…So I also tried my app with the nightly build but still have the same issues.

Anyone aware of a workaround?

Error log below:

/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::ofxVideoDataWriterThread(): error: undefined reference to 'Poco::Condition::Condition()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::ofxAudioDataWriterThread(): error: undefined reference to 'Poco::Condition::Condition()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoRecorder::addFrame(ofPixels_<unsigned char> const&): error: undefined reference to 'Poco::Condition::signal()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoRecorder::addAudioSamples(float*, int, int): error: undefined reference to 'Poco::Condition::signal()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Event::Event(bool)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Condition::enqueue(Poco::Event&)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::EventImpl::waitImpl()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Event::~Event()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Bugcheck::unexpected(char const*, int)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::SystemException::~SystemException()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'typeinfo for Poco::SystemException'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Bugcheck::unexpected(char const*, int)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::SystemException::~SystemException()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'typeinfo for Poco::SystemException'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Event::~Event()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Event::Event(bool)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Condition::enqueue(Poco::Event&)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::EventImpl::waitImpl()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Event::~Event()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Event::~Event()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::SystemException::~SystemException()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'typeinfo for Poco::SystemException'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::SystemException::~SystemException()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'typeinfo for Poco::SystemException'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Bugcheck::unexpected(char const*, int)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxAudioDataWriterThread::threadedFunction(): error: undefined reference to 'Poco::Bugcheck::unexpected(char const*, int)'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoRecorder::ofxVideoRecorder(): error: undefined reference to 'Poco::Condition::Condition()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoRecorder::ofxVideoRecorder(): error: undefined reference to 'Poco::Condition::Condition()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoRecorder::outputFileComplete(): error: undefined reference to 'Poco::Condition::signal()'
/home/ali/Downloads/of_v20200216_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o:ofxVideoRecorder.cpp:function ofxVideoRecorder::outputFileComplete(): error: undefined reference to 'Poco::Condition::signal()'

I have also attempted to use the fork of Tim’s repo, from

Not sure which is the best to use, but the one from Entropy has some recent changes from @arturo and @Jhovarie_Guiang tried to use it on ubuntu recently and (perhaps) succeeded:

In my attempt, I used the ProjectGenerator to make a new project, and brought in the code from the ofxVideoRecorder example. I had to comment out some code:

  • ofApp::audioIn function
  • ofApp::exit function
  • vidRecorder.getVideoQueueSize()
  • vidRecorder.getAudioQueueSize()

No I get a linker error:

Linking bin/ofxVideoRecorder_test for linux64
g++ -o bin/ofxVideoRecorder_test  obj/linux64/Release/src/main.o obj/linux64/Release/src/ofApp.o  /home/ali/Downloads/of_v0.11.0_linux64gcc6_release/addons/obj/linux64/Release/ofxVideoRecorder/src/ofxVideoRecorder.o  /home/ali/Downloads/of_v0.11.0_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a   -Wl,-rpath=./libs:./bin/libs -Wl,--as-needed -Wl,--gc-sections -fuse-ld=gold -L/home/ali/Downloads/of_v0.11.0_linux64gcc6_release/libs/fmodex/lib/linux64/ -lfmodex /home/ali/Downloads/of_v0.11.0_linux64gcc6_release/libs/kiss/lib/linux64/libkiss.a /home/ali/Downloads/of_v0.11.0_linux64gcc6_release/libs/tess2/lib/linux64/libtess2.a   -lz -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype -lsndfile -lopenal -lcurl -lglfw -lrtaudio -lpulse-simple -lpulse -lasound -lGLEW -lGLU -lGL -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lmpg123 -lglut -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -ldl -lpthread -lfreeimage -lboost_filesystem -lboost_system -lpugixml -luriparser -lXinerama
obj/linux64/Release/src/ofApp.o:ofApp.cpp:vtable for ofApp: error: undefined reference to 'ofApp::mouseEntered(int, int)'
obj/linux64/Release/src/ofApp.o:ofApp.cpp:vtable for ofApp: error: undefined reference to 'ofApp::mouseExited(int, int)'
collect2: error: ld returned 1 exit status
/home/ali/Downloads/of_v0.11.0_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:403: recipe for target 'bin/ofxVideoRecorder_test' failed
make[1]: *** [bin/ofxVideoRecorder_test] Error 1
make[1]: Leaving directory '/home/ali/Downloads/of_v0.11.0_linux64gcc6_release/apps/myApps/ofxVideoRecorder_test'
/home/ali/Downloads/of_v0.11.0_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed
make: *** [Release] Error 2

I guess that was working with v0.98 and Osx. I will try to compile it again for newer Of’s and linux, I remember many issues too.

1 Like

Thank you @charli_e, much appreciated.
Happy to test on 18.04 laptop + jetson.

-ali