Skip to content

opencv build issues #631

Answered by pattacini
patrickshas asked this question in Q&A
May 27, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Judging from the log1, the installation simply failed because of the missing sudo.
I don't know honestly why it's also failing from the start when you specified sudo. There's no log for that.

At any rate, you probably ought to check for the coexistence of multiple installations of OpenCV on the same machine, i.e., the standard and the custom versions. To accommodate that, one possibility is to rely on the OpenCV_DIR environment variable.

Just append the following line to your .bashrc:

export OpenCV_DIR=/usr/local/src/robot/opencv/build

The env var OpenCV_DIR will be used by the CMake machinery to locate the opencv package.
Don't install this time, just run make.

It should be sufficient.
B…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@paliasgh
Comment options

@paliasgh
Comment options

@pattacini
Comment options

Answer selected by patrickshas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants