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

Getting error: ‘IplImage’ does not name a type when building with latest opencv #2177

Closed
nyierr opened this issue Jun 4, 2020 · 3 comments

Comments

@nyierr
Copy link

nyierr commented Jun 4, 2020

I am getting this error when building darknet with opencv enabled:

./src/image_opencv.cpp:12:1: error: ‘IplImage’ does not name a type
 IplImage *image_to_ipl(image im)
 ^~~~~~~~
compilation terminated due to -Wfatal-errors.
Makefile:86: recipe for target 'obj/image_opencv.o' failed
make: *** [obj/image_opencv.o] Error 1

Any idea how to fix it?

@nyierr
Copy link
Author

nyierr commented Jun 5, 2020

A change by tiagoshibata resolved this problem and I have built darknet successfully.

However, when ran the following to confirm all is good, I got an error:

$ ./darknet imtest data/eagle.jpg
./darknet: error while loading shared libraries: libopencv_highgui.so.4.3: cannot open shared object file: No such file or directory

This was resolved by running:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

@nyierr nyierr closed this as completed Jun 5, 2020
@ghost
Copy link

ghost commented Oct 15, 2020

it is not work

@hcl7
Copy link

hcl7 commented Jun 15, 2021

./src/image_opencv.cpp:12:1: error: ‘IplImage’ does not name a type
IplImage *image_to_ipl(image im)
^~~~~~~~
compilation terminated due to -Wfatal-errors.
Makefile:86: recipe for target 'obj/image_opencv.o' failed
make: *** [obj/image_opencv.o] Error 1

I have the same problem, why you guys do not correct the project once for all?

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

2 participants