You are not logged in.
I can't install opencv2. I get a compilation error
[ 9%] Building CXX object modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o
In file included from /mnt/diskc/1/dauriac/.cache/pikaur/build/opencv2/src/opencv-2.4.13.6/modules/core/src/precomp.hpp:50,
from /mnt/diskc/1/dauriac/.cache/pikaur/build/opencv2/src/build/modules/core/opencv_core_pch_dephelp.cxx:1:
/mnt/diskc/1/dauriac/.cache/pikaur/build/opencv2/src/opencv-2.4.13.6/modules/core/include/opencv2/core/internal.hpp:195:12: fatal error: tbb/tbb_stddef.h: No such file or directory
195 | # include "tbb/tbb_stddef.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
Thank you for any help !
Last edited by dauriac (2023-05-26 17:19:41)
Offline
https://github.com/opencv/opencv/issues/19358
It's also in the comments of the AUR, https://aur.archlinux.org/packages/opencv2
Offline
Thank you seth !
Offline
Moving to AUR issues.
dauriac, if seth's post solved your problem, please remember to mark your thread [SOLVED] (edit the title of your first post).
Offline
installing opencv with pip is an easier way to have it running with python. However I am not sure the two ways, pikaur and pip, are equivalent
Offline
nb. that you're trying to build opencv2, https://archlinux.org/packages/extra/x86_64/opencv/ is in the repos.
For PIP see https://wiki.archlinux.org/title/Python … management
When installing packages using pip, it is recommended to use a virtual environment to prevent conflicts with system packages in /usr. Alternatively, pip install --user can be used to install packages into the user scheme instead of /usr.
Offline
thank you again. It seems I have many things to learn !
Offline