You are not logged in.

#1 2023-05-26 08:32:22

dauriac
Member
Registered: 2019-01-29
Posts: 45

[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)

Offline

#2 2023-05-26 08:42:09

seth
Member
Registered: 2012-09-03
Posts: 57,256

Offline

#3 2023-05-26 10:11:00

dauriac
Member
Registered: 2019-01-29
Posts: 45

Re: [SOLVED] opencv

Thank you  seth !

Offline

#4 2023-05-26 11:15:22

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] opencv

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

#5 2023-05-26 17:11:54

dauriac
Member
Registered: 2019-01-29
Posts: 45

Re: [SOLVED] opencv

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

#6 2023-05-26 19:12:38

seth
Member
Registered: 2012-09-03
Posts: 57,256

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.

Offline

#7 2023-05-27 08:55:57

dauriac
Member
Registered: 2019-01-29
Posts: 45

Re: [SOLVED] opencv

thank you again. It seems I have many things to learn !

Offline

Board footer

Powered by FluxBB