can not find libxml in CMake

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
yuantonghao
Posts: 1
Joined: Tue, 2021-05-25, 13:43

can not find libxml in CMake

#1 Post by yuantonghao » Wed, 2021-05-26, 05:53

When configure CMake with

Code: Select all

-DDCMTK_SUPPORT_LIBRARIES_DIR=/path/to/dcmtk-3.6.6-win64-support-MD-iconv-msvc-15.8
libxml can not be find.

I think the problem is in line 203 in CMake/3rdparty.cmake

Code: Select all

find_path(WITH_LIBXMLINC "${DCMTK_SUPPORT_LIBRARIES_DIR}/include/libxml/parser.h" "${LIBXML_DIR}" NO_DEFAULT_PATH)
This line should be

Code: Select all

find_path(WITH_LIBXMLINC "include/libxml/parser.h" "${LIBXML_DIR}" NO_DEFAULT_PATH)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest