superxuang / caffe_3d_crf_rnn

Caffe with 3D CRF-RNN for medical image analysis
Other
7 stars 1 forks source link

fatal error: itkImage.h: No such file or directory #1

Open debinz opened 6 years ago

debinz commented 6 years ago

When I make the source code, I encountered this error, then I downloaded and built the itk, but the error still occur. Can you give me some advice to solve it? Thanks a lot!

CXX src/caffe/layers/cudnn_softmax_layer.cpp In file included from src/caffe/layers/mhd_data_with_dense_layer.cpp:9:0: ./include/caffe/layers/mhd_data_with_dense_layer.hpp:15:22: fatal error: itkImage.h: No such file or directory compilation terminated. Makefile:575: recipe for target '.build_release/src/caffe/layers/mhd_data_with_dense_layer.o' failed make: [.build_release/src/caffe/layers/mhd_data_with_dense_layer.o] Error 1 make: Waiting for unfinished jobs.... In file included from src/caffe/layers/multi_channel_data_layer.cpp:9:0: ./src/caffe/layers/multi_channel_data_layer.hpp:15:22: fatal error: itkImage.h: No such file or directory compilation terminated. Makefile:575: recipe for target '.build_release/src/caffe/layers/multi_channel_data_layer.o' failed make: [.build_release/src/caffe/layers/multi_channel_data_layer.o] Error 1 src/caffe/layers/meanfield_iteration.cpp:23:22: fatal error: itkImage.h: No such file or directory compilation terminated. Makefile:575: recipe for target '.build_release/src/caffe/layers/meanfield_iteration.o' failed make: [.build_release/src/caffe/layers/meanfield_iteration.o] Error 1 In file included from src/caffe/layers/mhd_data_layer.cpp:9:0: ./include/caffe/layers/mhd_data_layer.hpp:15:22: fatal error: itkImage.h: No such file or directory compilation terminated. Makefile:575: recipe for target '.build_release/src/caffe/layers/mhd_data_layer.o' failed make: [.build_release/src/caffe/layers/mhd_data_layer.o] Error 1 src/caffe/layers/multi_stage_meanfield.cpp:26:22: fatal error: itkImage.h: No such file or directory compilation terminated. Makefile:575: recipe for target '.build_release/src/caffe/layers/multi_stage_meanfield.o' failed make: [.build_release/src/caffe/layers/multi_stage_meanfield.o] Error 1

superxuang commented 6 years ago

I only build this project on Windows using Visual Studio 2013 and I don't know whether it works on other platforms (e.g. Ubuntu). ITK is only used in our data layers for data input and preprocessing. If you have your own data layer, you can add meanfield_iteration.hpp, meanfield_iteration.cpp, multi_stage_meanfield.hpp, multi_stage_meanfield.cpp to your own project and rebuild it. I think this can be worked since these files do not involve ITK.