[SOLVED] opencv
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)
Re: [SOLVED] opencv
https://github.com/opencv/opencv/issues/19358
It's also in the comments of the AUR,
https://aur.archlinux.org/packages/opencv2
Re: [SOLVED] opencv
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.