I&#39;m attempting to make a completely static compile of ParaView (servers only, no QT/Gui) for deployment across various Linux machines.&nbsp; I&#39;ve gotten it down to the following:<br><br><div style="margin-left: 40px; font-family: courier new,monospace;">
[rhand@amethyst2 bin]$ ldd pvserver<br>&nbsp;libhistory.so.4 =&gt; /usr/lib64/libhistory.so.4 (0x0000003792500000)<br>&nbsp;libXt.so.6 =&gt; /usr/X11R6/lib64/libXt.so.6 (0x0000003796800000)<br>&nbsp;libSM.so.6 =&gt; /usr/X11R6/lib64/libSM.so.6 (0x0000003793300000)<br>
&nbsp;libICE.so.6 =&gt; /usr/X11R6/lib64/libICE.so.6 (0x0000003793100000)<br>&nbsp;libpthread.so.0 =&gt; /lib64/tls/libpthread.so.0 (0x0000003792f00000)<br>&nbsp;libm.so.6 =&gt; /lib64/tls/libm.so.6 (0x0000002a9557b000)<br>&nbsp;libdl.so.2 =&gt; /lib64/libdl.so.2 (0x0000003792700000)<br>
&nbsp;libstdc++.so.6 =&gt; /usr/lib64/libstdc++.so.6 (0x0000003796600000)<br>&nbsp;libgcc_s.so.1 =&gt; /lib64/libgcc_s.so.1 (0x0000003796400000)<br>&nbsp;libc.so.6 =&gt; /lib64/tls/libc.so.6 (0x0000003792200000)<br>&nbsp;libX11.so.6 =&gt; /usr/X11R6/lib64/libX11.so.6 (0x0000003792900000)<br>
&nbsp;/lib64/ld-linux-x86-64.so.2 (0x0000003792000000)<br>[rhand@amethyst2 bin]$<br></div><br>I have .a versions of the X &amp; std Clibraries, and I&#39;m linking against a &quot;linux-x64-static&quot; Mesa build I made.&nbsp; I have BUILD_SHARED_LIBS off. &nbsp; I set the CMAKE_X_LIBS to reference the .a libraries, rather than the .so, as well as X11_X11_LIB and X11_Xext_LIB.&nbsp; But it seems it&#39;s still referencing the .so&#39;s.<br>
<br>I&#39;ve tried adding &quot;-static&quot; to the CFLAGS options, but then I get errors related to kwProcessXML attempting to reference ld64.so (which doesn&#39;t exist).&nbsp; From reading around Google, it seems that error usually indicates attempting to static-ly link to a dynamic library.&nbsp; Is there some trick to getting a fully-static version?&nbsp; Is it even possible?<br clear="all">
&nbsp;<br>-- <br>----------------------------------------<br>Randall Hand <br>Visualization Scientist<br>ERDC MSRC-ITL