]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Comment on shadowed libraries
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Sep 2013 16:38:49 +0000 (16:38 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Sep 2013 16:38:49 +0000 (16:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@30570 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/development/cmake.html

index 2683cc1d7ed7f17eb55a0c3ce65a85e0d68edbb3..86c663bfb975e0bb64feab3957e4399dc6753451 100644 (file)
       <code>-NOTFOUND</code> and may be set by hand.
     </p>
 
+    <h4>Library conflicts</h4>
+    <p>Caveat: if you have a set of standard libraries in the default
+    location, say <code>/usr/lib</code> and a set of
+    private versions of the same libraries, for instance because you
+    need different revisions sometimes, in your own library directory,
+    you may receive an error message of the form:</p>
+
+<pre>
+CMake Warning at source/CMakeLists.txt:65 (ADD_LIBRARY):
+  Cannot generate a safe runtime search path for target deal_II.g because
+  files in some directories may conflict with libraries in implicit
+  directories:
+
+    runtime library [libtbb.so.2] in /usr/lib may be hidden by files in:
+      /my/private/lib
+
+  Some of these libraries may not be found correctly.
+</pre>
+
+<p>This is not a problem of CMake or deal.II, but rather a general
+  Linux problem. In order to fix this, you have two options:</p>
+<ol>
+<li>Choose all libraries either from your private directory or from
+  the standard one.</li>
+<li>Install all your private library versions in different directories.</li>
+</ol>
+
     <a name="configureoverride"></a>
     <h3> Manual override </h3>
     <p><b>Warning:</b> Do not do this unless absolutely necessary!</p>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.