Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The problem of opencv path in xf_headers.hpp file. #1

Open
ecoyukino opened this issue Apr 19, 2023 · 0 comments
Open

The problem of opencv path in xf_headers.hpp file. #1

ecoyukino opened this issue Apr 19, 2023 · 0 comments

Comments

@ecoyukino
Copy link

ecoyukino commented Apr 19, 2023

Hi, this is 陳揚哲 and 周子翔.
We are conducting Vision isppipeline_hdr topic in Lab-C.
There's a problem of opencv directory.
In testbench, we need to include the xf_headers.hpp file, while the original code include the incorrect directory of opencv module.
Therefore, we modify the xf_headers.hpp file to the absolute directory.
We change the code from:

#include "opencv2/opencv.hpp"

#include "opencv2/imgproc/imgproc.hpp"

#include "opencv2/highgui/highgui.hpp"

#include "opencv2/imgcodecs/imgcodecs.hpp"

#include "opencv2/video/video.hpp"

to:

#include "/usr/local/include/opencv4/opencv2/opencv.hpp"

#include "/usr/local/include/opencv4/opencv2/imgproc/imgproc.hpp"

#include "/usr/local/include/opencv4/opencv2/highgui/highgui.hpp"

#include "/usr/local/include/opencv4/opencv2/imgcodecs/imgcodecs.hpp"

#include "/usr/local/include/opencv4/opencv2/video/video.hpp"

However, it turns out the .hpp file above also include the module with the incorrect directory.
The error message is shown below:

/usr/local/include/opencv4/opencv2/opencv.hpp:48:10: fatal error: opencv2/opencv_modules.hpp: No such file or directory #include "opencv2/opencv_modules.hpp"

Furthermore, these .hpp file is under /usr folder which can't be modified since we didn't have the permission.
We wonder that if we can get the permission to modify the file under the /usr folder, or is there any method to deal with this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant