Code Monkey home page Code Monkey logo

Comments (6)

alvinpeters avatar alvinpeters commented on July 1, 2024 2

Er that took more than 5 hours, was a bit distracted lol.

I'm kinda tired, I'm gonna take a break and play some CoD then either submit the PR if I can stay awake long enough or sleep and do it later. For now, here is the fix PKGBUILD, with workaround stolen from your comment and @hftsai256 at intel/ipu6-camera-hal#67 (comment) :

# Fixed PKGBUILD from https://github.com/stefanpartheym/archlinux-ipu6-webcam
# Fixed paths and added symlinks to fix the build
# Original PKGBUILD: https://aur.archlinux.org/packages/intel-ipu6ep-camera-bin
pkgbase=ipu6-camera-bin
pkgname=intel-ipu6ep-camera-bin-fix
_pkgname=ipu6-camera-bins
pkgver=r70.c4f9e52
pkgrel=1
pkgdesc="Intel IPU6 camera binaries (Alder Lake)"
arch=('x86_64')
url="https://github.com/intel/ipu6-camera-bins"
license=('unknown')
depends=('intel-ipu6-dkms-git' 'glibc')
makedepends=('git')
provides=(ipu6-camera-bin intel-ipu6ep-camera-bin)
conflicts=(intel-ipu6-camera-bin intel-ipu6ep-camera-bin)
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd $_pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    install -dm755 "$pkgdir/usr"
    cp -rT "$_pkgname/lib" "$pkgdir/usr/lib"
    cp -rT "$_pkgname/lib/ipu_adl/pkgconfig" "$pkgdir/usr/lib/pkgconfig"
    cp -rT "$_pkgname/include" "$pkgdir/usr/include"
    # A hack, need to be removed when Intel fixes this shit
    ln -s /usr/lib/ipu_adl/{libia_cca.so,libia_log.so,libgcss.so.0} $pkgdir/usr/lib/
}

Also figured out that the latest icamerasrc-git now works and therefore we can use the PKGBUILD from the AUR direct.

@stefanpartheym @sigboe should we make a single PKGBUILD putting together all Intel sourced packages into a single neat packages? Intel packages breaking arbitrarily due to incomplete commits and then somehow got fixed later only to break again is no longer funny.

from archlinux-ipu6-webcam.

alvinpeters avatar alvinpeters commented on July 1, 2024

Ouch.

I'm making a PKGBUILD that builds up to this commit: intel/ipu6-camera-hal@ea976df when I wake up

from archlinux-ipu6-webcam.

alvinpeters avatar alvinpeters commented on July 1, 2024

no need to use older builds, but need to make a PKDBUILD that implements the fixes mentioned in the issue. doing that

sorry was sleepy when I first read lel

from archlinux-ipu6-webcam.

lukemarsden avatar lukemarsden commented on July 1, 2024

thank you for working on this! πŸ™Œ

from archlinux-ipu6-webcam.

sigboe avatar sigboe commented on July 1, 2024

@striczkof I tried this PKGBUILD file, and updated the install.sh file to use it, and it works good!
Are you going to post a Pull Request?

from archlinux-ipu6-webcam.

alvinpeters avatar alvinpeters commented on July 1, 2024

I forgor πŸ’€

Doing this after going back from uni in 5h. I want to do some cleanup on the script too.

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.