Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCv 2.4.7 on iOS error background_segm.hpp #include <list> not found

Well I've been trying to figure this out for about an hour now and tried all the solutions I could find all over the web and they all failed.

It must be a common error but I can't seem to figure it out.

I am using opencv 2.4.8 on iOS platform and I am doing some human detection with their trained svm. All my code is happy, however i cannot build due to the error:

background_segm.hpp file list not found

ALso just to be clear I have tried to change all my files to .mm and that didn't work either. You can find the project on github: https://github.com/mbaptist23/open-fusion-iOS

Thanks for any help.

like image 645
m33k Avatar asked Nov 10 '22 13:11

m33k


1 Answers

I got this error when using opencv 2.4.9, compiling for Mac. In my case, this error was caused by including the opencv header files in a *.c file rather than in a .cpp file. See this discussion for more information.

like image 159
user2906021 Avatar answered Nov 14 '22 22:11

user2906021