Mercurial > hg > orthanc-book
annotate Sphinx/source/faq/compiling-old.rst @ 530:63d59fab98e2
webdav on windows server 2012
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 19 Oct 2020 18:17:34 +0200 |
parents | d217af5e6cb3 |
children | 1316bc62b5d5 |
rev | line source |
---|---|
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 | |
360 | 10 <https://hg.orthanc-server.com/orthanc/file/default/LinuxCompilation.txt>`_. |
0 | 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 | |
358
011b01ccf52d
fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
42
diff
changeset
|
64 <https://salsa.debian.org/med-team/orthanc/-/blob/master/debian/orthanc.init>`_. |
0 | 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 | |
358
011b01ccf52d
fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
42
diff
changeset
|
74 <https://src.fedoraproject.org/rpms/orthanc/blob/master/f/orthanc.spec>`_. |
0 | 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 | |
358
011b01ccf52d
fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
42
diff
changeset
|
80 <https://cmake.org/download/>`_, or you can use the cmake28 package |
011b01ccf52d
fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
42
diff
changeset
|
81 from `EPEL <https://src.fedoraproject.org/rpms/cmake28>`_. The |
0 | 82 ``STATIC_BUILD=ON`` option will then work:: |
83 | |
84 $ /usr/local/bin/cmake -DSTATIC_BUILD:BOOL=ON -DCMAKE_BUILD_TYPE=Debug | |
85 | |
86 *Thanks to Will Ryder.* |