Go to /usr/include/opencv2/ or wherever your opencv library is installed.
cd usr/lib/include/opencv2/Open and edit the file core/core.hpp
gedit core/core.hppAt row 54 starts this block:
#ifndef SKIP_INCLUDESAdd #include <cstddef> to the list.
#include <limits.h>
#include <algorithm>
#include <cmath>
#include <complex>
#include <map>
#include <new>
#include <string>
#include <vector>
#endif // SKIP_INCLUDES
#ifndef SKIP_INCLUDESDone :)
#include <limits.h>
#include <algorithm>
#include <cmath>
#include <complex>
#include <map>
#include <new>
#include <string>
#include <vector>
#include <cstddef>
#endif // SKIP_INCLUDES
Nessun commento:
Posta un commento