OpenViBE on Ubuntu 22.04 (x86_64): success anyone?

Post Reply
edwaldt20
Posts: 2
Joined: Mon Dec 06, 2021 2:47 pm

OpenViBE on Ubuntu 22.04 (x86_64): success anyone?

Post by edwaldt20 »

Is there any expectation to build OpenViBE on Ubuntu 22.04?

Following the instructions, ie. downloading version 3-3-1 as source from Git.

The install_dependencies.sh step, I get a syntax error in file:
./external_projects/arch/boost/src/boost/libs/thread/include/boost/thread/pthread/thread_data.hpp
An "#if" directive causes a hiccup, but commenting that line out (and its companion), the process completes.

The next step, "build.sh" fails however, with
ninja: build stopped: subcommand failed.
Error while building OpenViBE

... apparently at :
[437/855] Linking CXX executable designer/libraries/lib-advanced-visualization/test/renderer/openvibe-lib-adv-viz-test-renderer-3.3.1
FAILED: designer/libraries/lib-advanced-visualization/test/renderer/openvibe-lib-adv-viz-test-renderer-3.3.1
: && /usr/bin/c++ -Wall -O3 -DNDEBUG designer/libraries/lib-advanced-visualization/test/renderer/CMakeFiles/openvibe-lib-adv-viz-test-renderer.dir/main_test_renderer.cpp.o -o designer/libraries/lib-advanced-visualization/test/renderer/openvibe-lib-adv-viz-test-renderer-3.3.1 -L/usr/lib/x86_64-linux-gnu/mesa -Wl,-rpath,/usr/lib/x86_64-linux-gnu/mesa: designer/libraries/lib-advanced-visualization/libmensia-advanced-visualization-static.a /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libz.so && :
/usr/bin/ld: designer/libraries/lib-advanced-visualization/libmensia-advanced-visualization-static.a(mCRendererLoreta.cpp.o): undefined reference to symbol 'glDrawElements'
/usr/bin/ld: /lib/x86_64-linux-gnu/libOpenGL.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Perhaps it is a matter of environment - There is a flood of "ISO C++17 does not allow .." warnings, maybe there are other parameters to be set in the default gcc of Ubuntu 22.04.

The INRIA documents suggest that Ubuntu 18.04 is the most recent Ubuntu to be known to work. Higher-numbered Ubuntus are not listed as "known not to work", so this may be an obsolete document.


Addendum (1): it may be relevant that the machine has an NVIDIA card installed, using the NVIDIA drivers. The parameter -DTARGET_HAS_ThirdPartyOpenGL is defined.

Addendum (2): The exact same procedure works beautifully on Ubuntu 20.04, (x86_64), without either of the above-mentioned problems. Limited testing of the output indicates the binaries work as expected. For such a complex product, the installation procedure is incredibly easy.
(For Ubuntu 20.04)

Thomas
Posts: 210
Joined: Wed Mar 04, 2020 3:38 pm

Re: OpenViBE on Ubuntu 22.04 (x86_64): success anyone?

Post by Thomas »

Hi,

Thanks for your feedback on Ubuntu 22.04 compilation.
Indeed we haven't put efforts in the support on 22.04 yet, so it's a shame but not quite a surprise that it doesn't work.
If you could share the build logs, I could have a look and see if I can give you pointers.

I'm glad to read your feedback about Ubuntu 20.04. We have indeed added the support recently and actually need to update the website. Thanks for the reminder. ;)

Cheers,
Thomas

Post Reply