CMake problem on Windows 10 32bit

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
konis
Posts: 28
Joined: Mon, 2015-11-23, 16:05

CMake problem on Windows 10 32bit

#1 Post by konis »

I am having problems trying to build dcmtk on Windows 10 32bit. Running both CMake 3.6.2 and 3.7.0-rc2 I get the following error:

Code: Select all

The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (PROJECT):
  No CMAKE_C_COMPILER could be found.
[/color]


[color=#FF0000]CMake Error at CMakeLists.txt:2 (PROJECT):
  No CMAKE_CXX_COMPILER could be found.


Configuring incomplete, errors occurred!
See also "C:/Users/admin/Desktop/dicom_dev/dcmtk/CMakeFiles/CMakeOutput.log".
See also "C:/Users/admin/Desktop/dicom_dev/dcmtk/CMakeFiles/CMakeError.log".
I am using the latest dcmtk-3.6.1_20161012_snapshot with Microsoft Visual Studio Community 2015 version 14.0.25425.01 Update 3.

I am not a CMake expert so any pointers on how to resolve this error will be greatly appreciated.

Thanks,

- Christos

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: CMake problem on Windows 10 32bit

#2 Post by Jan Schlamelcher »

It is most likely either a problem with your compiler setup or with the way that you are using CMake. Did you compile something else with your setup so far? Regarding CMake: are you using the GUI or do you launch it via Command line? In both cases, make sure you correctly selected Visual Studio 2015, either via the combo box or via specifying -G "Visual Studio 14 2015 [ARCH]". Have a look at these pages:
https://cmake.org/cmake/help/v3.1/manua ... ors.7.html
https://cmake.org/cmake/help/v3.1/gener ... 02015.html

konis
Posts: 28
Joined: Mon, 2015-11-23, 16:05

Re: CMake problem on Windows 10 32bit

#3 Post by konis »

Hi Jan,

I have found the relative articles about this error and created and run a default C++ project in Visual Studio, so the compilers are installed.
I also found an old issue with CMake being confused with the Windows 10 SDK and removed that too with no luck.

I am using the GUI version of CMake. Using CMake v3.7.0-rc2 allows me to select VS 2015 which I think is the correct item instead of VS 14 2015. Selecting VS14 2015 gives the same (error) result.

I am wondering whether people on the list are successfully using DCMTK in a similar setup or not, and if there are any extra steps necessary to support VS 15 under Windows 10. I'll try again with a clean installation of Windows 10 and let you know how it goes.

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: CMake problem on Windows 10 32bit

#4 Post by Michael Onken »

Hi,

I am compiling the latest snapshot version of DCMTK (20160630) on an up-to-date Windows 10 using Visual Studio 2015 and CMake 3.6.1. I did not find any problems so far.

Best regards,
Michael

konis
Posts: 28
Joined: Mon, 2015-11-23, 16:05

Re: CMake problem on Windows 10 32bit

#5 Post by konis »

Thanks for the info Michael. I guess there is something wrong with my VS setup.
I am already installing VS 15 on a clean Windows 10 and I'll see what happens. Do you have the Windows 10 SDK installed?

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: CMake problem on Windows 10 32bit

#6 Post by Michael Onken »

Hi,

I don't think so, if its not part of the Visual Studio Community version installer (at least I did not explicitly install it).

Best,
Michael

decuser
Posts: 9
Joined: Sat, 2009-07-11, 19:27

Re: CMake problem on Windows 10 32bit

#7 Post by decuser »

I am having issues in setting up the latest snapshot of dcmtk-3.6.1_20161102 with visual studio 2015 community edition.
Right now I am in need of dsr2xml.exe binary from the snapshot dcmtk-3.6.1_20161102

can anyone has this binary please share it..snapshot dsr2xml.exe has ignore parsing errors option.


Thanks
decuser

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: CMake problem on Windows 10 32bit

#8 Post by J. Riesmeier »

To "decuser": Please avoid double postings.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest