I’m trying to compile a c++ file using g++ in manjaro linux .
I installed opencv from official manjaro repos but i’m getting warning from vscode
i have also tried adding
`pkg-config --cflags --libs opencv`
to as an argument to g++ but it still fails.
I tried to compile from source and the build but it failed
i tried installing opencv2 from aur and it failed
/home/thenujan/opencv2-opt/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.
make[2]: *** [modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/build.make:85: modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1817: modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().