akvcam icon indicating copy to clipboard operation
akvcam copied to clipboard

Can't install on Ubuntu

Open philippulus opened this issue 1 year ago • 5 comments

Don't find how to install.

  • $ sudo apt-get install dkms
  • Downloaded akvcam installer gui for Linux, changed it to ‘executable as program’, then run it. After that there are several folders with 'akvcam' in the name, but no folder 'akvcam/src' as suggested in the wiki: /opt/akvcam /usr/src/akvcam-1.2.6 /var/lib/dkms/akvcam
  • $ cd akvcam/src bash: cd: akvcam/src: No such file or directory
  • $ ls /lib/modules/$(uname -r)/extra/akvcam.ko* ls: cannot access '/lib/modules/6.8.0-31-generic/extra/akvcam.ko*': No such file or directory
  • When downloading the code as zip file and unpacking, I get an /akvcam-master folder but don't know what to do with it.

It's really unclear to me about how to install the driver, if it is now actually installed, and how to use it.

philippulus avatar May 28 '24 13:05 philippulus

Now trying to follow this procedure but get stuck as well:

  • $ git clone https://github.com/webcamoid/akvcam.git
  • $ cd akvcam
  • $ git checkout refs/tags/1.2.6
  • $ cd akvcam/src
  • $ make
  • $ make clean
  • $ make -p /usr/src/akvcam-1.2.6
  • $ cp -ar src/* /usr/src/akvcam-1.2.6 cp: cannot stat 'src/*': No such file or directory

philippulus avatar May 28 '24 13:05 philippulus

The wiki instructions are for the raw source code, not the installer, the installer does already all the install steps.

  • $ cd akvcam/src bash: cd: akvcam/src: No such file or directory

Because your changing to the wrong directory, in the previous line is clearly marked were the source files where installed.

  • Downloaded akvcam installer gui for Linux, changed it to ‘executable as program’, then run it. After that there are several folders with 'akvcam' in the name, but no folder 'akvcam/src' as suggested in the wiki: /opt/akvcam :point_left: /usr/src/akvcam-1.2.6 :point_left: /var/lib/dkms/akvcam

It's really unclear to me about how to install the driver, if it is now actually installed, and how to use it.

The module was already installed with the installer. On how to use it:

https://github.com/webcamoid/akvcam/wiki/Configure-the-cameras https://github.com/webcamoid/akvcam/wiki/Usage-and-examples https://github.com/webcamoid/akvcam/wiki/Video-output-example-in-C

Now trying to follow this procedure but get stuck as well

You have already changed to the src directory

$ cd akvcam/src :point_left: $ make $ make clean $ mkdir -p /usr/src/akvcam-1.2.6 Also, in this line is 'mkdir', not 'make' $ cp -ar src/* /usr/src/akvcam-1.2.6 :point_left: cp: cannot stat 'src/*': No such file or directory

Just install the files with * But again all these steps are not necessary because the installer already did all that. Also an advice in good terms, learn to use the command line before jumping into this level of complexity.

https://web.njit.edu/~alexg/courses/cs332/OLD/F2020/hand3f20/Linux-Tutorial.pdf https://bjpcjp.github.io/pdfs/devops/linux-commands-handbook.pdf https://cbw.sh/static/class/linuxbasics/learning_linux.pdf

hipersayanX avatar May 29 '24 16:05 hipersayanX

Thank you @hipersayanX However, I am not coming any further. I have now started from scratch after uninstalling the module, purging the system of any akvcam files or directories, rebooted the PC and taken it up against by installing via the installer. Setting up the camera seems to be OK with the series of command lines:

$ sudo mkdir -p /etc/akvcam
$ sudo touch /etc/akvcam/config.ini
$ sudo chmod -vf 644 /etc/akvcam/config.ini

Then copying the config.ini files proposed by Linux Fake Background Camera. .

Screenshot from 2024-06-02 11-24-09

The issue is encountered with the next stage of using the camera:

/akvcam/src$ sudo modprobe videodev
[sudo] password for 'user': 
/akvcam/src$ sudo insmod akvcam.ko
insmod: ERROR: could not load module akvcam.ko: No such file or directory

image

What please am I missing here?

philippulus avatar Jun 02 '24 09:06 philippulus

Please kindly help on how to complete the installation with the installer. I have completed all the steps as indicated but cannot get to a usable camera.

philippulus avatar Jun 07 '24 05:06 philippulus

/akvcam/src$ sudo modprobe videodev [sudo] password for 'user': /akvcam/src$ sudo insmod akvcam.ko :point_left: insmod: ERROR: could not load module akvcam.ko: No such file or directory

insmod is for loading a file module, and the module must be in the same directory where insmod is executed, dkms doesn't install the compiled modules there. After installing the modules with the installer, you can check that the module was installed with:

cat /lib/modules/$(uname -r)/modules.dep | grep akvcam

and then load the module with:

sudo modprobe akvcam

then check that the module was loaded with:

lsmod | grep akvcam

hipersayanX avatar Jun 07 '24 15:06 hipersayanX