0
|
1 .. highlight:: bash
|
|
2 .. _compiling-old:
|
|
3
|
42
|
4 Old build instructions for GNU/Linux
|
|
5 ====================================
|
0
|
6
|
42
|
7 This page summarizes the GNU/Linux build instructions that were used
|
|
8 **up to Orthanc 0.7.0 (inclusive)**. Instructions for Orthanc above
|
|
9 0.7.0 can be found directly `inside the source package
|
0
|
10 <https://bitbucket.org/sjodogne/orthanc/src/default/LinuxCompilation.txt>`_.
|
|
11
|
|
12 Static linking
|
|
13 --------------
|
|
14
|
42
|
15 In general, the static linking should work on any GNU/Linux
|
|
16 distribution (in particular, this works on Debian Squeeze)::
|
0
|
17
|
|
18 $ cmake -DSTATIC_BUILD:BOOL=ON -DCMAKE_BUILD_TYPE=Debug
|
|
19
|
|
20 Peter Somlo provides `detailed instructions
|
|
21 <https://groups.google.com/d/msg/orthanc-users/hQYulBBvJvs/S1Pm125o59gJ>`_
|
|
22 to statically build Orthanc on a minimal Ubuntu installation.
|
|
23
|
|
24 Dynamic linking against system-wide libraries
|
|
25 ---------------------------------------------
|
|
26
|
|
27 If you want to dynamically link against the system libraries, the
|
|
28 following CMake configurations have been reported to work.
|
|
29
|
|
30 Dynamic Linking on Ubuntu 11.10
|
|
31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
32
|
|
33 ::
|
|
34
|
|
35 $ cmake "-DDCMTK_LIBRARIES=wrap;oflog" -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=Debug
|
|
36
|
|
37 *Explanation:* You have to manually link against the ``wrap`` and
|
|
38 ``oflog`` shared libraries because of a packaging error in
|
|
39 ``libdcmtk``.
|
|
40
|
|
41 Dynamic Linking on Ubuntu 12.04 LTS
|
|
42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
43
|
|
44 ::
|
|
45
|
|
46 $ cmake "-DDCMTK_LIBRARIES=wrap;oflog" -DSTATIC_BUILD=OFF -DUSE_DYNAMIC_GOOGLE_LOG:BOOL=OFF -DDEBIAN_USE_GTEST_SOURCE_PACKAGE:BOOL=ON -DCMAKE_BUILD_TYPE=Debug
|
|
47
|
|
48
|
|
49 Dynamic Linking on Ubuntu 12.10
|
|
50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
51
|
|
52 ::
|
|
53
|
|
54 $ cmake "-DDCMTK_LIBRARIES=wrap;oflog" -DSTATIC_BUILD=OFF -DDEBIAN_USE_GTEST_SOURCE_PACKAGE:BOOL=ON -DCMAKE_BUILD_TYPE=Debug ..
|
|
55
|
|
56 Dynamic Linking on Debian Sid
|
|
57 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
58
|
|
59 ::
|
|
60
|
|
61 $ cmake -DSTATIC_BUILD:BOOL=OFF -DSTANDALONE_BUILD:BOOL=ON -DUSE_DYNAMIC_JSONCPP:BOOL=ON -DDEBIAN_USE_GTEST_SOURCE_PACKAGE:BOOL=ON -DCMAKE_BUILD_TYPE=Debug -DDCMTK_LIBRARIES="wrap;oflog"
|
|
62
|
|
63 This is the configuration from the `official Debian package
|
|
64 <http://anonscm.debian.org/cgit/debian-med/orthanc.git/tree/debian/orthanc.init>`_.
|
|
65
|
|
66 Dynamic Linking on Fedora 18 and 19
|
|
67 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
68
|
|
69 ::
|
|
70
|
|
71 $ cmake -DSTATIC_BUILD:BOOL=OFF -DSTANDALONE_BUILD:BOOL=ON -DUSE_DYNAMIC_GOOGLE_LOG:BOOL=ON -DUSE_DYNAMIC_JSONCPP:BOOL=ON -DCMAKE_BUILD_TYPE=Debug
|
|
72
|
|
73 This is the configuration from the `official Fedora package
|
|
74 <http://pkgs.fedoraproject.org/cgit/orthanc.git/tree/orthanc.spec?h=f18>`_.
|
|
75
|
|
76 Static Linking on CentOS 6.3 and 6.4
|
|
77 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
78
|
|
79 You have to build and install `CMake 2.8 from source
|
25
|
80 <https://cmake.org/download/>`_, or you can use
|
0
|
81 the cmake28 package from `EPEL
|
25
|
82 <https://admin.fedoraproject.org/pkgdb/package/rpms/cmake28/>`_. The
|
0
|
83 ``STATIC_BUILD=ON`` option will then work::
|
|
84
|
|
85 $ /usr/local/bin/cmake -DSTATIC_BUILD:BOOL=ON -DCMAKE_BUILD_TYPE=Debug
|
|
86
|
|
87 *Thanks to Will Ryder.*
|