Search found 4 matches

by y.caspi
Thu, 2017-07-13, 13:26
Forum: DCMTK - General
Topic: Static linking an c++ application with DCMTK
Replies: 11
Views: 13558

Re: Static linking an c++ application with DCMTK

The solution was in fact simple. It turned out that on Ubuntu, the way ICU is built make it necessary to use the dynamically linked library libld. So it was impossible to link everything statically. However, by deactivating the ICU support in during the compilation of DCMTK, one can just add the fla...
by y.caspi
Wed, 2017-07-05, 17:59
Forum: DCMTK - General
Topic: Static linking an c++ application with DCMTK
Replies: 11
Views: 13558

Re: Static linking an c++ application with DCMTK

I configured the DCMTK library with DCMTK_WITH_ICU and DCMTK_FORCE_FPIC_ON_UNIX Then I run: make and make install Next, I followed your advice. The output is: Building CXX object dcmnet/apps/CMakeFiles/storescu.dir/storescu.cc.o cd /usr/lib/dcmtk/dcmnet/apps && /usr/bin/c++ -DDCMTK_BUILD_IN_...
by y.caspi
Tue, 2017-07-04, 18:25
Forum: DCMTK - General
Topic: Static linking an c++ application with DCMTK
Replies: 11
Views: 13558

Re: Static linking an c++ application with DCMTK

After trying to follow the advice below, I still experience problems. Thus, as an exercise, I tried to statically compile the example that you give on your website: http://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_LoadMetaHeader And also to this example, the same problem occurs. I called t...
by y.caspi
Tue, 2017-07-04, 12:33
Forum: DCMTK - General
Topic: Static linking an c++ application with DCMTK
Replies: 11
Views: 13558

Static linking an c++ application with DCMTK

I have a short application that I wrote in c++ that makes use of some of the DCMTK tools. The application is written on Ubuntu 16.04. I included in my .h file the following: #include "dcmtk/config/osconfig.h" #include "dcmtk/dcmdata/dctk.h" When I compile it and link it to the dy...