I want to compile DicomToMesh according to the instructions in this link.
> git clone https://github.com/AOT-AG/DicomToMesh.git
> cd DicomToMesh
> mkdir build
> cd build
> ccmake .. #opens ccmake window
By executing above instruction I supposed to get something similar to the following within the ccmake window,
BUILD_GUI OFF
CMAKE_BUILD_TYPE DEBUG
CMAKE_INSTALL_PREFIX /usr/local
USE_VTK_DICOM OFF
VTK_DIR /home/eidelen/Development/libs/vtk/build
But in my case I'm getting this result:
After pressing c
, it generates following error:
CMake Error at /usr/local/lib/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:115
(find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5" (requested
version 5.15) with any of the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
/usr/local/lib/cmake/vtk-9.0/vtk-config.cmake:131 (include)
CMakeLists.txt:5 (find_package)
Configuring incomplete, errors occurred!
See also "/Users/mrhs/DicomToMesh/build/CMakeFiles/CMakeOutput.log".
See also "/Users/mrhs/DicomToMesh/build/CMakeFiles/CMakeError.log".
I have installed QT5 5.15.2 using
brew install qt5
I tried to follow this solution using command
brew install qtbase5-dev
brew install qtdeclarative5-dev
But getting Warning: No available formula or cask with the name "qtbase5-dev".
and Error: No similarly named formulae found'
I have tried this solution by using the command
export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt@5/
cd build
but it is showing No such file or directory
I'm using this for the first time and my be i'm missing something which I could not figure out yet. I will be really very thankful and will appreciate it if anyone can help me. I badly need to solve this issue and has spend a lot of time but in vain.
N.B. This is my CMakeError.log and CMakeOutput.log