Comments (16)
For the record, despite the hotfix I mentioned above, I struggled like hell to make my webcam work after an upgrade (v4l2-relayd
crashing systematically on stream start). I eventually narrowed down the issue to icamera-src current version, and circumvented it by targeting the same version as the icamerasrc-git.old
still present in the repository. I plan to check whether this issue has been identified upstream, and if not, open the corresponding issue
EDIT: opened an issue in corresponding repository to discuss this
from archlinux-ipu6-webcam.
Hello. I stumbled upon this issue too, on both intel-ipu6ep-camera-hal-git
and icamerasrc
.
This kind of dirty hotfix allowed me to go through the install:
- for
intel-ipu6ep-camera-hal-git
, editintel-ipu6ep-camera-hal-git/PKGBUILD
and add the following method:
prepare() {
cd $_pkgname
sed -i "s|-D_FORTIFY_SOURCE=2| |" CMakeLists.txt
}
then replay install.sh
- for
imcamerasrc
, the trick is similar but on different files, and since the AUR package is directly used, you have to call your package manager with relevant options to allow editing the PKGBUILD during install. For me it was:yay -S --editmenu icamerasrc
- then add a similar method in PKGBUILD:
prepare() {
cd $_pkgname
sed -i "s|-D_FORTIFY_SOURCE=2| |" src/Makefile.am
sed -i "s|-D_FORTIFY_SOURCE=2| |" src/interfaces/Makefile.am
}
From there you can again replay install.sh
which should finish installing missing packages.
from archlinux-ipu6-webcam.
I have the same problem with the current main
branch and an up-to-date Arch Linux:
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:17 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- install prefix: /usr
INFOadd definition -DIPU_SYSVER_ipu6v5 for ipu6ep
Install camera configure files foripu6ep
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/tr/admin/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/src/build
[ 1%] Building C object CMakeFiles/camhal_static.dir/modules/ia_css/ipu6ep/src/ia_css_terminal.c.o
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<command-line>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/camhal_static.dir/build.make:76: CMakeFiles/camhal_static.dir/modules/ia_css/ipu6ep/src/ia_css_terminal.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:356: CMakeFiles/camhal_static.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
ERROR: Failed to build/install: intel-ipu6ep-camera-hal-git
from archlinux-ipu6-webcam.
Thank you! Switching to old fix for icamerasrc worked for me as well.
If anyone needs exact steps,
- Open
install.sh
and changeicamerasrc-git
toicamerasrc-git-fix.old
- Follow this instruction to get around compilation errors
- for intel-ipu6ep-camera-hal-git, edit intel-ipu6ep-camera-hal-git/PKGBUILD and add the following method:
prepare() { cd $_pkgname sed -i "s|-D_FORTIFY_SOURCE=2| |" CMakeLists.txt }
- for icamerasrc-git-fix.old, edit icamerasrc-git-fix.old/PKGBUILD and add the following method:
prepare() { cd $_pkgname sed -i "s|-D_FORTIFY_SOURCE=2| |" src/Makefile.am sed -i "s|-D_FORTIFY_SOURCE=2| |" src/interfaces/Makefile.am }
- for intel-ipu6ep-camera-hal-git, edit intel-ipu6ep-camera-hal-git/PKGBUILD and add the following method:
- Make sure to uninstall
icamerasrc-git
if you previously installed with workaround. Also, ensure clean build by manually deleting cache or using appropriate build arg like--rebuild=yes
(for paru)
from archlinux-ipu6-webcam.
@elhossary I ran into the same issue. It was introduced in a new release of the intel-ipu6ep-hal
package on 4/9.
I was able to make it compile by modifying the source to point to libdrm/i915_drm.h
instead of drm/i915_drm.h
- I suspect this might be a distro-specific issue; it could be fixed in the PKGBUILD.
HOWEVER, even though it compiled, that built version didn't work.
I resolved the problem by pointing the PKGBUILD to a specific commit as described in #79.
from archlinux-ipu6-webcam.
I have the same error but on the icamerasrc
installation.
from archlinux-ipu6-webcam.
Hope someone solves this quickly.
from archlinux-ipu6-webcam.
Same problem on Arch Linux
from archlinux-ipu6-webcam.
Thanks for the information!. Cleaning the repository and the package manager, then switching to the old fix for icamerasrc seems to work.
from archlinux-ipu6-webcam.
Thank you! Switching to old fix for icamerasrc worked for me as well.
If anyone needs exact steps,
* Open `install.sh` and change `icamerasrc-git` to `icamerasrc-git-fix.old` * Follow [this instruction](https://github.com/stefanpartheym/archlinux-ipu6-webcam/issues/77#issuecomment-2029508628) to get around compilation errors * for intel-ipu6ep-camera-hal-git, edit intel-ipu6ep-camera-hal-git/PKGBUILD and add the following method: ``` prepare() { cd $_pkgname sed -i "s|-D_FORTIFY_SOURCE=2| |" CMakeLists.txt } ``` * for icamerasrc-git-fix.old, edit icamerasrc-git-fix.old/PKGBUILD and add the following method: ``` prepare() { cd $_pkgname sed -i "s|-D_FORTIFY_SOURCE=2| |" src/Makefile.am sed -i "s|-D_FORTIFY_SOURCE=2| |" src/interfaces/Makefile.am } ``` * Make sure to uninstall `icamerasrc-git` if you previously installed with workaround. Also, ensure clean build by manually deleting cache or using appropriate build arg like `--rebuild=yes` (for paru)
Newbie here. Where should put the prepare() block in the PKGBUILD?
from archlinux-ipu6-webcam.
Newbie here. Where should put the prepare() block in the PKGBUILD?
prepare() {
cd $_pkgname
sed -i "s|-D_FORTIFY_SOURCE=2| |" src/Makefile.am
sed -i "s|-D_FORTIFY_SOURCE=2| |" src/interfaces/Makefile.am
}
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
export CHROME_SLIM_CAMHAL=ON
export STRIP_VIRTUAL_CHANNEL_CAMHAL=ON
./autogen.sh
make
}
from archlinux-ipu6-webcam.
I needed to pin some package versions, in addition to following the steps @kotturi-mahipal outlined. More details in #79.
from archlinux-ipu6-webcam.
@Tropicao
I did exactly as you mentioned, but the compilation fails in my case:
/home/muhoss/git_repos/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/src/ipu6-camera-hal/src/core/CameraBuffer.cpp:23:10: fatal error: drm/i915_drm.h: No such file or directory
23 | #include <drm/i915_drm.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/camhal_static.dir/build.make:580: CMakeFiles/camhal_static.dir/src/core/CameraBuffer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:356: CMakeFiles/camhal_static.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
ERROR: Failed to build/install: intel-ipu6ep-camera-hal-git
Any idea, what I can do?
from archlinux-ipu6-webcam.
@Tropicao I did exactly as you mentioned, but the compilation fails in my case:
/home/muhoss/git_repos/archlinux-ipu6-webcam/intel-ipu6ep-camera-hal-git/src/ipu6-camera-hal/src/core/CameraBuffer.cpp:23:10: fatal error: drm/i915_drm.h: No such file or directory 23 | #include <drm/i915_drm.h> | ^~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/camhal_static.dir/build.make:580: CMakeFiles/camhal_static.dir/src/core/CameraBuffer.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:356: CMakeFiles/camhal_static.dir/all] Error 2 make: *** [Makefile:156: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ERROR: Failed to build/install: intel-ipu6ep-camera-hal-git
Any idea, what I can do?
Could you be missing libdrm
on your system ?
from archlinux-ipu6-webcam.
No, It is installed already, I reinstalled it and still get that error
from archlinux-ipu6-webcam.
@danielksato, Thank you for the clarification
from archlinux-ipu6-webcam.
Related Issues (20)
- Missing Dependency HOT 4
- Pipeline could not be constructed: syntax error HOT 9
- Dell Precision 5470 - camera led is always on when the laptop is plugged HOT 2
- Camera does not work after upgrading to Kernel 6.7.1 HOT 49
- no output on dell xps (kernel v6.7.1) HOT 2
- CapabilityBoundingSet should not be empty
- Ubuntu v4l2loopback dkms will not build on kernel 6.8 HOT 1
- Would this work on fedora? HOT 1
- WARNING: erroneous pipeline: no element "icamerasrc" HOT 4
- Is it possible to modify the resolution HOT 4
- IDEA: Add pamac to default AUR package managers to make script work out-of-the-box on Manjaro HOT 1
- Dell XPS 13 plus (9320) on Manjaro 6.6.25-1: Success HOT 1
- New versions of upstream dependencies break the driver. HOT 8
- Reporting success on X1 Carbon Gen 11, 6.6.27-1-MANJARO HOT 1
- driver upstreamed HOT 1
- usage of mainline driver? HOT 11
- Uninstall script not working and installation is broken after manual cleanup HOT 2
- Dell XPS 13 plus 9340 on Manjaro 6.6.32-1 HOT 2
- Canonical team estimates 6.8-compatible fix by July 1?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archlinux-ipu6-webcam.