Cannoooooot build successfully!


1st trial:
using pip3.6 install to install pytorch1.0 and download libtorch zip file.
cannot use it with opencv, throwing error of undefined error imread


2nd trial
build from source! Always report this:


Install the project... 
-- Install configuration: "Release" 

-- Set runtime path of "/data/lvjc/pytorch/torch/lib/tmp_install/lib/libmkldnn.so.0.17.0" to "$ORIGIN:/data/lvjc/envs/anaconda2/lib" 

-- Set runtime path of "/data/lvjc/pytorch/torch/lib/tmp_install/lib/libc10.so" to "$ORIGIN" 

-- Set runtime path of "/data/lvjc/pytorch/torch/lib/tmp_install/lib/libc10_cuda.so" to "$ORIGIN" 

-- Set runtime path of "/data/lvjc/pytorch/torch/lib/tmp_install/lib/libcaffe2.so" to "$ORIGIN:/data/lvjc/envs/anaconda2/lib:/usr/local/cuda/lib64" 

-- Set runtime path of "/data/lvjc/pytorch/torch/lib/tmp_install/lib/libcaffe2_gpu.so" to "$ORIGIN:/data/lvjc/envs/anaconda2/lib:/usr/local/cuda/lib64" 

-- Set runtime path of "/data/lvjc/pytorch/torch/lib/tmp_install/lib/libtorch.so.1" to "$ORIGIN:/usr/local/cuda/lib64:/data/lvjc/envs/anaconda2/lib" 

-- Set runtime path of "/data/lvjc/pytorch/torch/lib/tmp_install/lib/libcaffe2_module_test_dynamic.so" to "$ORIGIN:/data/lvjc/envs/anaconda2/lib" 

ls: cannot access 'build.ninja': No such file or directory