How to compile DCMTK with OpenJpeg

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Posts: 5
Joined: Tue, 2019-11-19, 10:11

How to compile DCMTK with OpenJpeg

#1 Post by samnaction » Thu, 2019-11-21, 04:55

Hi, I am new to DCMTK. I am planning to compile DCMTK with OpenJpeg support in windows. I am using latest DCMTK. But I am not seeing DCMTK_WITH_OPENJPEG option in CMAKE. I tried to manually add DCMTK_WITH_OPENJPEG flag in cmake, but still I am not seeing any project referring to openjp2.lib

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

Re: How to compile DCMTK with OpenJpeg

#2 Post by J. Riesmeier » Thu, 2019-11-21, 18:02

In fact, there is a CMake option "DCMTK_WITH_OPENJPEG" but this is only shown when the advanced variables are enabled:

Code: Select all

mark_as_advanced(DCMTK_WITH_OPENJPEG) # only needed by DCMJP2K module
However, as the comment shows, this option is currently only used by DCMJP2K.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest