Code Monkey home page Code Monkey logo

Comments (14)

GorgetGuilhem avatar GorgetGuilhem commented on July 19, 2024 2

@sigboe sorry for the typo in my previous message, I checked my history and I ran the proper command (without the typo), so it's not coming from here.

EDIT : There's no subject actually, my Firefox was just messed up. It works perfectly in a new window.

from archlinux-ipu6-webcam.

alba4k avatar alba4k commented on July 19, 2024

I know this issue isn't strictly related to this repository, but it affects it.

test.sh seems to fail after WARNING: erroneous pipeline: no element "icamerasrc"

from archlinux-ipu6-webcam.

GorgetGuilhem avatar GorgetGuilhem commented on July 19, 2024

Same issue here, compilation of icamerasrc-git fails !

from archlinux-ipu6-webcam.

clintlombard avatar clintlombard commented on July 19, 2024

Issue is with the package on AUR https://aur.archlinux.org/packages/icamerasrc-git. Workaround is to manually edit gstcamerasrc.cpp with

diff --git a/src/gstcamerasrc.cpp b/src/gstcamerasrc.cpp
--- a/src/gstcamerasrc.cpp
+++ b/src/gstcamerasrc.cpp
@@ -2839 +2839 @@
-   ret = camera_device_open(camerasrc->device_id, camerasrc->num_vc);
+  ret = camera_device_open(camerasrc->device_id);

from archlinux-ipu6-webcam.

alba4k avatar alba4k commented on July 19, 2024

Still getting errors tho..

gstcamerasrc.cpp: In function 'void gst_camerasrc_class_init(GstcamerasrcClass*)':
gstcamerasrc.cpp:980:67: error: expected primary-expression before ',' token
  980 |         gst_camerasrc_device_id_get_type(), DEFAULT_PROP_DEVICE_ID, (GParamFlags)(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
      |                                                                   ^
gstcamerasrc.cpp: In function 'void gst_camerasrc_init(Gstcamerasrc*)':
gstcamerasrc.cpp:1258:30: error: expected primary-expression before '<' token
 1258 |   if (DEFAULT_PROP_DEVICE_ID < camerasrc->number_of_cameras) {
      |                              ^
gstcamerasrc.cpp:1259:50: error: expected primary-expression before ';' token
 1259 |     camerasrc->device_id = DEFAULT_PROP_DEVICE_ID;
      |                                                  ^
make[3]: *** [Makefile:624: libgsticamerasrc_la-gstcamerasrc.lo] Error 1
make[2]: *** [Makefile:685: all-recursive] Error 1
make[1]: *** [Makefile:520: all-recursive] Error 1
make: *** [Makefile:429: all] Error 2

from archlinux-ipu6-webcam.

clintlombard avatar clintlombard commented on July 19, 2024

Strange. No idea why it worked for me. Errors look like missing ; somewhere. Alternatively change the PKGBUILD to point to this commit 2d36adecf1af9b44df591482aec27a32d8627999 instead of the icamerasrc_slim_api branch.

from archlinux-ipu6-webcam.

sigboe avatar sigboe commented on July 19, 2024

Hello, I also noticed this issue, since the ipu6 driver was updated to compile on Linux 6.3 and I made a merge request to update the driver I came across this issue. An older commit works to compile. I wrote my workaround in the merge request #19

from archlinux-ipu6-webcam.

sigboe avatar sigboe commented on July 19, 2024

Hello as I have said before there are 3 main issues getting this to compile and run today.

  1. Linux 6.3 support (PR to fix this is here #19 )
  2. Error handling in the install script. If you already have icamerasrc-git or any other dependency, don't fail if a newer commit can't compile. (PR to fix this is here #20 )
  3. Compiling icamerasrc-git for new users, they should not have to do manual work to get icamerasrc-git working.

@stefanpartheym I am open to discussion how we proceed with icamerasrc-git intel has introduced a bug at this line in this file that breaks compiling. The compiler says the function is passing too many arguments, removing the second (newly added argument) fixes compiling. I have not tested if any functionality is lost by doing this. This bug was introduced in commit fe733e7 at April 3. And has issue intel/icamerasrc#32 opened at April 6. Our issue #18 was opened at April 18. Do you want us to roll our own PKGBUILD file or something? 17841ab compiles successfully and can be compiled by replacing the source array in the PKGBUILD to fetch "git+${url}.git#commit=17841ab6249aaa69bd9b3959262bf182dee74111" instead.

If someone is reading this and just want it to work right now. the steps are

cd ~ #or wherever you want to clone a repo
git clone [email protected]:stefanpartheym/archlinux-ipu6-webcam.git  #need to do this on a clean repo
cd archlinux-ipu6-webcam
git fetch origin pull/19/head:refs/heads/pr19
git merge pr19
git fetch origin pull/20/head:refs/heads/pr20
git merge pr20
#save and exit the file because a text editor will open, in vim this is done by hittin `:wq<enter>` if vim is what opened up
./install.sh

This will fail but some of the steps in install.sh is needed to have dependencies to compile icamerasrc-git. So lets do that now

cd ~ #or wherever you want to clone a repo
git clone https://aur.archlinux.org/icamerasrc-git.git
cd icamerasrc-git
sed -i 's/branch=icamerasrc_slim_api/commit=17841ab6249aaa69bd9b3959262bf182dee74111/' PKGBUILD
makepkg -sic

Now this will compile and install the correct older icamerasrc-git, then go back to the folder where you checked out the repo in the previous step. And run ./install.sh again

And then either Stefan has accepted my two pull requests, in case just install like normal on the newest git pull. And I am sorry I spread that out over two pull requests makes it harder for people to follow at home

When these are merge, just delete the repo you cloned and clone it again to "clean up" your local changes (you merged the two PRs locally including making a commit to merge the second PR)

EDIT: order of the steps changed

from archlinux-ipu6-webcam.

GorgetGuilhem avatar GorgetGuilhem commented on July 19, 2024

Thanks for your work @sigboe !

Following your steps, I still encounter issues.

First, icamerasrc-git complains about missing ipu6-camera-hal dependencies.

makepkg -sic
==> Création du paquet icamerasrc-git r59.17841ab-1 (mar. 23 mai 2023 09:52:38)
==> Vérification des dépendances pour l’exécution…
==> Installation des dépendances manquantes…
erreur : impossible de trouver la cible : ipu6-camera-hal
==> ERREUR : « pacman » n’a pas pu installer les dépendances manquantes.
==> Dépendances manquantes :
  -> ipu6-camera-hal
==> Vérification des dépendances pour la compilation…
==> ERREUR : Échec de résolution des dépendances.

After installing intel-ipu6ep-camera-hal-git with yay -S intel-ipu6ep-camera-hal-git (I'm on Alder Lake) it compiles and installs properly. I'm not sure this is really an issue, but it would be great to integrate it to your steps.

Following your steps, I clone the archlinux-ipu6-webcam repo and locally merge your two PRs, and then the problems begins. Pacman starts complaining about packages conflicts.

recherche des conflits entre paquets…
:: intel-ipu6-dkms-git-fix et intel-ipu6-dkms-git sont en conflit. Supprimer intel-ipu6-dkms-git ? [o/N] 
erreur : un conflit de paquets impossible à résoudre a été détecté
erreur : la préparation de la transaction a échoué (conflit de dépendances )
:: intel-ipu6-dkms-git-fix et intel-ipu6-dkms-git sont en conflit
==> ATTENTION : Échec à l’installation des paquets.
~/Documents/VisualStudioCodeProjects/archlinux-ipu6-webcam
ERROR: Failed to install: intel-ipu6-dkms-git

I can't remove intel-ipu6-dkms-git cause it's needed by intel-ipu6ep-camera-bin and intel-ipu6ep-camera-hal-git.

sudo pacman -Rs intel-ipu6-dkms-git
vérification des dépendances…
erreur : la préparation de la transaction a échoué (la satisfaction des dépendances a échoué)
:: la suppression de intel-ipu6-dkms-git casse la dépendance « intel-ipu6-dkms-git » requise par intel-ipu6ep-camera-bin
:: la suppression de intel-ipu6-dkms-git casse la dépendance « intel-ipu6-dkms-git » requise par intel-ipu6ep-camera-hal-git

Do you have any clue for solving this ?

PS : sorry for the French outputs, can't motivate myself to translate it all !

from archlinux-ipu6-webcam.

sigboe avatar sigboe commented on July 19, 2024

@GorgetGuilhem Okay, try to remove all the related packages,

Then run the install.sh script, it will fail, but it will set up the correct dependencies first

then install the icamerasrc-git with the modified PKGBUILD,

then run the install.sh again

if this works I'll update the steps!

from archlinux-ipu6-webcam.

GorgetGuilhem avatar GorgetGuilhem commented on July 19, 2024

@sigboe thanks, it worked ! However the --workarround flag does not seem to work anymore, camera doesn't start on Firefox. But that's a start ! I'll try investigate this point when I have time.

from archlinux-ipu6-webcam.

sigboe avatar sigboe commented on July 19, 2024

@GorgetGuilhem Maybe because it is spelled --workaround?

if [[ "${1}" == "--workaround" ]]; then

Anyway, I will try to remember to make a PR to handle command line options in a different way.

from archlinux-ipu6-webcam.

sigboe avatar sigboe commented on July 19, 2024

@GorgetGuilhem I updated the previous commit with the fixes we discussed when I noticed more people saying it works for them

#18 (comment)

from archlinux-ipu6-webcam.

GorgetGuilhem avatar GorgetGuilhem commented on July 19, 2024

@sigboe perfect, thanks for your work :)

from archlinux-ipu6-webcam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.