Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on Ubuntu #86

Open
philippulus opened this issue May 28, 2024 · 5 comments
Open

Can't install on Ubuntu #86

philippulus opened this issue May 28, 2024 · 5 comments

Comments

@philippulus
Copy link

philippulus commented May 28, 2024

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
Copy link
Author

philippulus commented May 28, 2024

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

@hipersayanX
Copy link
Member

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 👈
    /usr/src/akvcam-1.2.6 👈
    /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 👈
$ 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 👈
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

@philippulus
Copy link
Author

philippulus commented Jun 2, 2024

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
Copy link
Author

philippulus commented Jun 7, 2024

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.

@hipersayanX
Copy link
Member

/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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants