msracver / FCIS

Fully Convolutional Instance-aware Semantic Segmentation
MIT License
1.57k stars 414 forks source link

Cannot install, fatal error: opencv2/opencv.hpp: No such file or directory #117

Closed ChrisJ857 closed 6 years ago

ChrisJ857 commented 6 years ago

I tried to follow the installation instructions precisely, but I keep running into this error when try to compile MXNet.

In file included from src/io/image_det_aug_default.cc:12:0:
src/io/./image_augmenter.h:12:30: fatal error: opencv2/opencv.hpp: No such file or directory
compilation terminated.

I believe the issue is that it is not importing my opencv2 correctly in lines like this in src/io/./image_augmenter.h:

`#if MXNET_USE_OPENCV

include <opencv2/opencv.hpp>

` How can I get it to properly import this? Any help would be appreciated, thanks.

ChrisJ857 commented 6 years ago

I was able to solve this issue by completing uninstalling mxnet and deleting all of its directories in /usr/local/lib/python2.7/dist-packages/* and then following the instructions on this page to reinstall

https://mxnet.incubator.apache.org/get_started/install.html