Michaelvilleneuve / react-native-perspective-image-cropper

Perform custom crop, resizing and perspective correction 📐🖼
MIT License
306 stars 127 forks source link

Could not build #10

Closed tskorupka closed 6 years ago

tskorupka commented 6 years ago

Hello,

I could not build RNCustomCrop.

What failed?

Failed: #1 line: #import <opencv2/opencv.hpp> for file CustomCropManager.mm. During build there was issue: Lexical or Preprocessor Issue. 'opencv2/opencv.hpp' file not found.

Done everything like was written in README.md on repository.

Michaelvilleneuve commented 6 years ago

Hi ! OpenCV can sometimes be a pain in the ass to install... Try this and tell me if it helps : https://www.youtube.com/watch?v=aZ8j_M_837Q&feature=youtu.be

tskorupka commented 6 years ago

I think I found how to resolve issue.

First by adding $(PROJECT_DIR)/../../../ios to Header Search Paths and Framework Search Paths. Secondary by reading library in Link Binary with Libraries under Build Phases.