Open akirazhao opened 5 years ago
my issue looks similar to https://github.com/facebookresearch/Detectron/issues/595 & https://github.com/facebookresearch/Detectron/issues/612, it's the same problem with my environment variable, I tried a lot of methods including moving files to the target folder or add environment variable into CMakelists, but the issue still there.
-- Caffe2 include path : /home/akirazhao/pytorch/torch/include
This include path may be wrong. Check if this directory contains core/context.h If it is not there, the right folder should be in the pytorch build directory if you built pytorch from source or in Python site-packages if you have used pip or conda install
-- Caffe2 include path : /home/akirazhao/pytorch/torch/include
This include path may be wrong. Check if this directory contains core/context.h If it is not there, the right folder should be in the pytorch build directory if you built pytorch from source or in Python site-packages if you have used pip or conda install
Sorry, I checked that if pytorch/torch have no include directory then you just have to build pytorch succesfully to make it appear:
cd pytorch
python setup.py install
Expected results
make ops
successfully.Actual results
make ops
fails to build with the following errorSystem information
PYTHONPATH=/usr/local:/usr/local:/usr/local:/usr/local:/usr/local:/usr/local:/usr/local:/home/akirazhao/pytorch/build:/home/akirazhao/pytorch/build:/home/akirazhao/pytorch/torch/include/caffe2/:/home/akirazhao/pytorch/build:/home/akirazhao/pytorch/build:/home/akirazhao/pytorch/build:/home/akirazhao/pytorch/build:/home/akirazhao/pytorch/build:/home/akirazhao/pytorch/build