Hi,
I am trying to compile DCMTK (most recent version - 3.6.1_20170228) with CMake 3.8.2.
More specifically I am trying to compile Dcmsr folder.
In CMake i am selecting option "Generator for Visual Studio 14 2015"
I get an error during the "Configure" process in CMake, saying the following :
CMake error at library libsrc/CMakeLists.txt:2 (DCMTK_ADD_LIBRARY)
Unknown CMake command "DCMTK_ADD_LIBRARY"
Can anyone help me?
Thanks
Compile dcmsr folder with CMake for VisualStudio 2015
Moderator: Moderator Team
-
- Posts: 15
- Joined: Mon, 2015-07-20, 14:25
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Compile dcmsr folder with CMake for VisualStudio 2015
Did you select the CMakeLists.txt file within the "dcmsr" subfolder? This will not work, of course. You have to select the main CMakeLists.txt file in the "dcmtk" root directory. See INSTALL file for detailed instructions on how to compile the toolkit.
-
- OFFIS DICOM Team
- Posts: 318
- Joined: Mon, 2014-03-03, 09:51
- Location: Oldenburg, Germany
Re: Compile dcmsr folder with CMake for VisualStudio 2015
Adding to that: you can still compile dcmsr and its requirements only if you use the top level CMakeLists.txt, by right clicking on dcmsr -> build in Visuals Studio.
Who is online
Users browsing this forum: Amazon [Bot] and 1 guest