Hi,
I need to built dcmtk utilities (mainly dcmdump) statically on Ubuntu Linux. Since there is static build officially available for 3.6.0 ( ftp://dicom.offis.de/pub/dicom/offis/so ... ic.tar.bz2 ), I assume that there is simple trick to do it. I tried to set up CXXFLAGS="-static" but did not work. Reason why I dont use static binaries that are available is that I need some latest features that are available in git version.
Also I have not found trick how to include dicom.dic statically to dcmdump.. this would be very useful as well.
Thank you very much for any hints!
Jarda
dcmtk nighly, static build
Moderator: Moderator Team
-
- Posts: 18
- Joined: Tue, 2007-12-18, 14:25
Re: dcmtk nighly, static build
For the built-in datadictionary see:
http://support.dcmtk.org/docs/file_datadict.html
http://support.dcmtk.org/docs/file_datadict.html
-- Using a built-in data dictionary
By default the data dictionary is loaded from a text file as described
above. However, it is possible to use a built-in data dictionary and
avoid loading the text file at each application start. You can even have
the best of both worlds and have the main data dictionary built-in with
additions loaded from text files (via the DCMDICTPATH environment variable).
The default built-in data dictionary code (dcmdata/libsrc/dcdictbi.cc)
currently does nothing. The code for a useful built-in data dictionary can
be regenerated at any time by the mkdictbi program (dcmdata/libsrc/mkdictbi)
and the dcmdata library makefile (dcmdata/libsrc/Makefile.in) includes a
target (builtindict) for this purpose. The makefile also includes a target
(nobuiltindict) to reset back to an empty built-in data dictionary. By
making the built-in data dictionary, rebuilding the libdcmdata.a library
and relinking all your applications will ensure that the built-in data
dictionary is used.
Also included in the sources is a pre-created built-in data dictionary
which can be used instead (dcmdata/libsrc/dcdictzz.cc). For example, the
project files for the Windows platform use this file instead of the default
(empty) built-in data dictionary. Under Unix environments it should also
be possible to selectively use a built-in data dictionary for specific
applications by including dcdictzz.o earlier in the link path than
libdcmdata.a (if your linker allows this).
NOTE: Using a built-in data dictionary together with a default data
dictionary installed (e.g. in /usr/local/share/dcmtk/dicom.dic) will actually
make your programs start up slower. The data dictionary will be loaded
twice. Once from the built-in version and again from file. The same is
true of the DCMDICTPATH environment variable. However, this can be a
useful technique if you want to override built-in data dictionary values.
-
- Posts: 18
- Joined: Tue, 2007-12-18, 14:25
Re: dcmtk nighly, static build
Did you tryathli wrote: I tried to set up CXXFLAGS="-static" but did not work.
Code: Select all
make CXXFLAGS=-static
Who is online
Users browsing this forum: No registered users and 1 guest