Ask Your Question

Revision history [back]

Include OpenCV 4 installed via brew into OSX application

I've installed opencv via brew

brew install opencv3 --with-ffmpeg --with-tbb --with-contrib

add to search path in Xcode project for osx

/usr/local/include/**

/usr/local/lib/**

imported in to *.mm file

#import <opencv4/opencv2/opencv.hpp>

and now I have bunch of errors:

Unknown type name 'uint32_t' Unknown type name 'int64_t' Unknown type name 'uint64_t' No member named 'lldiv_t' in namespace 'std' No member named 'llabs' in namespace 'std' No member named 'lldiv' in namespace 'std' No member named 'atoll' in namespace 'std' No member named 'strtoll' in namespace 'std' No member named 'strtoull' in namespace 'std' No member named 'strtof' in namespace 'std'