Mercurial > hg > orthanc-book
comparison Sphinx/source/faq/compiling-old.rst @ 0:901e8961f46e
initial commit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 Apr 2016 12:57:38 +0200 |
parents | |
children | 669ea65ba7fb |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:901e8961f46e |
---|---|
1 .. highlight:: bash | |
2 .. _compiling-old: | |
3 | |
4 Old build instructions for Linux | |
5 ================================ | |
6 | |
7 This page summarizes the Linux build instructions that were used **up | |
8 to Orthanc 0.7.0 (inclusive)**. Instructions for Orthanc above 0.7.0 | |
9 can be found directly `inside the source package | |
10 <https://bitbucket.org/sjodogne/orthanc/src/default/LinuxCompilation.txt>`_. | |
11 | |
12 Static linking | |
13 -------------- | |
14 | |
15 In general, the static linking should work on any Linux distribution | |
16 (in particular, this works on Debian Squeeze):: | |
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 | |
80 <http://www.cmake.org/cmake/resources/software.html>`_, or you can use | |
81 the cmake28 package from `EPEL | |
82 <https://admin.fedoraproject.org/pkgdb/acls/name/cmake28>`_. The | |
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.* |