Minimal run-time installation on Linux

From the CVB-zip:
codemeter_7.21.4611.501_amd64.deb
cvb-camerasuite-14.00.010-ubu2004-x86_64.deb
cvb-camerasuite-dev-14.00.010-ubu2004-x86_64.deb
cvb-foundation-14.00.010-ubu2004-x86_64.deb
cvb-foundation-dev-14.00.010-ubu2004-x86_64.deb
cvb-tools-14.00.010-ubu2004-x86_64.deb
cvb-tools-dev-14.00.010-ubu2004-x86_64.deb
install_cvb.sh
uninstall_cvb.sh

Which Debians needs to be installed on Linux to run an user CPP-application?
(No GUI-apps are needed…)

1 Like

Generally: It is recommended to execute the install_cvb.sh script.

The question, which package to install doesn’t relate to the programming language or whether gui applications are needed. It is related to the use case.

I guess my CPP-application will only need some of the so-lib:s from the debian(s) and will not need codemeter and dev etc…
I tried to install only the camerasuite (by force) but got problems with the cvmgtd?!
(In the end a small Docker-image with this would be nice…)

@IngFra
Among other things, this is why @s-woe recommended using the default setup.

If you really need a minimal setup, you could leave out the dev.deb files. These contain example applications and everything you need to compile a cvb application.

If you do not need foundation tools, you could leave out the cvb-foundation*.deb file. If you do not need other cvb tools, you could also leave out cvb-tools*.deb.

As the CVB Management Deamon (cvmgmtd) needs the codemeter setup, you need to install it.
The codemeter setup has some GUI related dependencies. Some people are looking for a setup without these dependencies, as they want to install it on an ubuntu server without a desktop environment. Then you need to have a version compatible “driver only” or “lite” deb package from the codemeter setup.

1 Like

So a minimal runtime installation (for a GUI-less Linux) may be:
codemeter_7.21.4611.501_amd64.deb
cvb-camerasuite-14.00.010-ubu2004-x86_64.deb

I guess a “home-made” install-script is needed for this? Or can it be a “flag” for the CVB-install?

Btw, does this include the CVB-deamon?
And how to get a compatible “lite” debian for the codemeter-setup (without the GUI-apps)?

The codemeter is not needed according to this post:
https://forum.commonvisionblox.com/t/install-cvb-on-a-ubuntu-20-04-server-without-an-internet-connection/

But I get this error when “forcing” the installation of cvb-camerasuite:

$ sudo dpkg -i --force-all cvb-camerasuite-14.00.010-ubu2004-x86_64.deb
...
Job for cvmgmtd.service failed because the control process exited with error code.
See "systemctl status cvmgmtd.service" and "journalctl -xe" for details.
dpkg: error processing package cvb-camerasuite (--install):
 installed cvb-camerasuite package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (245.4-4ubuntu3.23) ...
Processing triggers for libc-bin (2.31-0ubuntu9.15) ...
Errors were encountered while processing:
 cvb-camerasuite

$ systemctl status cvmgmtd.service
● cvmgmtd.service - Common Vision Blox Management Daemon.
     Loaded: loaded (/lib/systemd/system/cvmgmtd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2024-05-29 08:54:39 CEST; 33s ago

maj 29 08:54:39 writemmstestrig systemd[1]: Starting Common Vision Blox Management Daemon....
maj 29 08:54:39 writemmstestrig cvmgmtd[1089177]: /opt/cvb-14.00.010/bin/cvmgmtd: error while loading shared libraries: libwibucm.so: cannot open shared object file: No such file or directory
maj 29 08:54:39 writemmstestrig systemd[1]: cvmgmtd.service: Control process exited, code=exited, status=127/n/a
maj 29 08:54:39 writemmstestrig systemd[1]: cvmgmtd.service: Failed with result 'exit-code'.
maj 29 08:54:39 writemmstestrig systemd[1]: Failed to start Common Vision Blox Management Daemon..

Can this be ignored?

Tried codemeter-lite but cvb-camerasuite fails to install:

$ sudo dpkg -i codemeter-lite_8.10.6221.500_amd64.deb 
Selecting previously unselected package codemeter-lite.
(Reading database ... 249037 files and directories currently installed.)
Preparing to unpack .../codemeter-lite_8.10.6221.500_amd64.deb ...
Unpacking codemeter-lite (8.10.6221.500) ...
Setting up codemeter-lite (8.10.6221.500) ...
Processing triggers for systemd (245.4-4ubuntu3.23) ...
Processing triggers for man-db (2.9.1-1) ...

$ sudo dpkg -i cvb-camerasuite-14.00.010-ubu2004-x86_64.deb 
dpkg: regarding cvb-camerasuite-14.00.010-ubu2004-x86_64.deb containing cvb-camerasuite, pre-dependency problem:
 cvb-camerasuite pre-depends on codemeter (>= 5.22.1504.500)
  codemeter is not installed.

dpkg: error processing archive cvb-camerasuite-14.00.010-ubu2004-x86_64.deb (--install):
 pre-dependency problem - not installing cvb-camerasuite
Errors were encountered while processing:
 cvb-camerasuite-14.00.010-ubu2004-x86_64.deb

Hello @IngFra,

as you can see, our debians are not prepared for a customization. I - again - highly recommend to install the whole package with the delivered script. Especially the codemeter debian, we deliver.

Afterwards, we could think about slacking down the footprint of the installation by removing installed binaries and files you don’t need. But - of course - this is also not recommended and we can not guarantee a functional product any longer. Do this on your own risk.

Hi @IngFra,

what you try to do is technically possible but not with our standard installation package.
It will require a custom installation and potentially also an OEM license to get rid of CodeMeter altogether. We can offer assistance with that.

Please contact support and sales for details.