hi, everyone. I am a newbie. when I build the dcmtk3.6.3 on ubuntu 18.04 with cmake and make, it has an error. the content is:
[ 17%] Building CXX object dcmdata/apps/CMakeFiles/xml2dcm.dir/xml2dcm.cc.o
In file included from /usr/include/libxml2/libxml/parser.h:810:0,
from /home/ray/dcmtk-3.6.3/dcmdata/apps/xml2dcm.cc:55:
/usr/include/libxml2/libxml/encoding.h:31:10: fatal error: unicode/ucnv.h: No such file or directory
#include <unicode/ucnv.h>
^~~~~~~~~~~~~~~~
compilation terminated.
dcmdata/apps/CMakeFiles/xml2dcm.dir/build.make:62: recipe for target 'dcmdata/apps/CMakeFiles/xml2dcm.dir/xml2dcm.cc.o' failed
make[2]: *** [dcmdata/apps/CMakeFiles/xml2dcm.dir/xml2dcm.cc.o] Error 1
CMakeFiles/Makefile2:1242: recipe for target 'dcmdata/apps/CMakeFiles/xml2dcm.dir/all' failed
make[1]: *** [dcmdata/apps/CMakeFiles/xml2dcm.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
what can I do next? thanks very much!
build error on ubuntu
Moderator: Moderator Team
Re: build error on ubuntu
can anyone help me? is this unicode error? but why it present "No such file or directory"? Is it because there is no library file? thanks.
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: build error on ubuntu
I guess that your system's libxml2 library has been compiled with LIBXML_ICU_ENABLED defined. The following excerpt is from the listed libxml2 header file "/usr/include/libxml2/libxml/encoding.h":
Does the DCMTK compile if you disable the use of libxml2 (see INSTALL file)?
Code: Select all
#ifdef LIBXML_ICU_ENABLED
#include <unicode/ucnv.h>
#endif
Re: build error on ubuntu
I got it! Thanks so much!J. Riesmeier wrote:I guess that your system's libxml2 library has been compiled with LIBXML_ICU_ENABLED defined. The following excerpt is from the listed libxml2 header file "/usr/include/libxml2/libxml/encoding.h":
Does the DCMTK compile if you disable the use of libxml2 (see INSTALL file)?Code: Select all
#ifdef LIBXML_ICU_ENABLED #include <unicode/ucnv.h> #endif
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 1 guest