leoliuf / MRiLab

A Numerical Magnetic Resonance Imaging (MRI) Simulation Platform
https://leoliuf.github.io/MRiLab/
BSD 2-Clause "Simplified" License
201 stars 63 forks source link

Issue with boost #9

Closed ksinghrao closed 7 years ago

ksinghrao commented 7 years ago

I am having issues with installing MRiLab. I have updated my cmake with the BOOST libraries and the compilation output states that Boost is detected. However, the output also says that the code failed to compile because boost could not be found. Is there a way to fix this?

Also I have downloaded ISMRMRD and it is also not being recognised.

Cheers,

-- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- MATLAB_ROOT: /usr/local/MATLAB/R2016b/ -- Matlab mex will be used -- IPP_ROOT (IPP 7): /opt/intel/compilers_and_libraries_2017.4.196/linux/ipp/ -- Found IPP: /opt/intel/compilers_and_libraries_2017.4.196/linux/ipp/lib/intel64/libipps.so;/opt/intel/compilers_and_libraries_2017.4.196/linux/ipp/lib/intel64/libippvm.so;/opt/intel/compilers_and_libraries_2017.4.196/linux/ipp/lib/intel64/libippcore.so
-- FRAMEWAVE_ROOT environment variable not set. -- In Linux this can be done in your user .bashrc file by appending the corresponding line, e.g: -- export FRAMEWAVE_ROOT=/usr/local/framewave/build -- In Windows this can be done by adding system variable, e.g: -- FRAMEWAVE_ROOT=C:\Program Files\FRAMEWAVE_1.3.1_SRC\Framewave\build -- Could NOT find Framewave (missing: FW_LIBRARIES FW_INCLUDE_DIR) -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp
CUDA_TOOLKIT_ROOT_DIR not found or specified -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) CMake Warning at CMakeLists.txt:18 (find_package): By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VTK", but CMake did not find one.

Could not find a package configuration file provided by "VTK" with any of the following names:

VTKConfig.cmake
vtk-config.cmake

Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR" to a directory containing one of the above files. If "VTK" provides a separate development package or SDK, be sure it has been installed.

-- Could NOT find Ismrmrd (missing: ISMRMRD_SCHEMA_DIR) -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Boost version: 1.58.0 -- Found the following Boost libraries: -- thread -- system -- chrono -- date_time -- atomic -- IPP and/or Framewave Found, CPU engine will be compiled -- IPP will be used CUDA not found. GPU engine will not be compiled CMake Error at renderer/CMakeLists.txt:2 (include): include called with wrong number of arguments. include() only takes one file.

VTK not found. MRiLab DoKSpaceTrajVTK will not be compiled. ISMRMRD and/or Boost not found. MRiLab to Gadgetron interface will not be compiled

ksinghrao commented 7 years ago

Hi, I realized that Boost was not the problem but there was a bug in renderer/CMakeLists.txt:2 (include).

In MRiLab/Lib/src/renderer/CMakeLists.txt

include(${VTK_USE_FILE}) should be include("${VTK_USE_FILE}")

Making that correction allowed the executable to be made.

Cheers