Hi Rich,<div><br></div><div>Because you&#39;re building static you need to tell CMake what your Silo/Mili/HDF5 dependencies are because it has no way of knowing. To do this, in ccmake/cmake-gui you can list them in the same variables where you specified SILO_LIBRARY,MILI_LIBRARY, HDF5_LIBRARY/HDF5_LIBRARIES. This should give CMake enough information to compute the correct link line.</div>

<div><br></div><div>For example, you should be able to set these in ccmake/cmake-gui like so:</div><div><br></div><div>SILO_LIBRARY <span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">/usr/gapps/visit/silo/4.8/linux-x86_64_gcc-4.1/lib/libsiloh5.a;</span><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">/usr/gapps/visit/szip/2.1/linux-x86_64_gcc-4.1/lib/libsz.a</span></div>

<div><br><div class="gmail_quote">On Thu, Apr 7, 2011 at 7:19 PM, Cook, Rich <span dir="ltr">&lt;<a href="mailto:cook47@llnl.gov">cook47@llnl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

OK, I just solved this by hacking into all the link.txt files I found laying around.  This has been one ugly build process!<br>
<font color="#888888">-- Rich<br>
</font><div><div></div><div class="h5"><br>
On Apr 7, 2011, at 4:00 PM, Cook, Rich wrote:<br>
<br>
&gt; So, our libmili.a, libsiloh5.a and libhdf5.a libraries have dependencies on another library, libsz.  I&#39;ve tried adding  -lz  /usr/gapps/visit/szip/2.1/linux-x86_64_gcc-4.1/lib/libsz.a  to every STRING I can in the CMakeCache.txt file, but I&#39;m stuck on this error.  How can I append linker flags to what cmake is doing here?  You can see that the -lz and libsz.a are being inserted here, but it needs to come at the end of the link line to resolve the symbols.  I might resort to sed and grep if this keeps up, but I hope I don&#39;t have to.<br>


&gt;<br>
&gt;<br>
&gt; Linking CXX executable ../../../../bin/ServerManagerStateLoader<br>
&gt; cd /nfs/tmp2/rcook/Paraview/3.10/build/ParaView-3.10.0/build/Servers/ServerManager/Testing/Cxx &amp;&amp; /usr/gapps/visit/cmake/2.8.3/linux-x86_64_gcc-4.1/bin/cmake -E cmake_link_script CMakeFiles/ServerManagerStateLoader.dir/link.txt --verbose=1<br>


&gt; /usr/local/bin/g++    -I/usr/global/tools/Kitware/Paraview/3.10/chaos_4_x86_64_ib/include  -I/usr/gapps/visit/mili/1.10.0/linux-x86_64_gcc-4.1/include  -Wno-deprecated -g     -L/usr/global/tools/Kitware/Paraview/3.10/chaos_4_x86_64_ib/lib   -L/usr/gapps/visit/mili/1.10.0/linux-x86_64_gcc-4.1/lib -lmili  /usr/gapps/visit/hdf5/1.8.4/linux-x86_64_gcc-4.1/lib/libhdf5.a -lz /usr/gapps/visit/szip/2.1/linux-x86_64_gcc-4.1/lib/libsz.a CMakeFiles/ServerManagerStateLoader.dir/ServerManagerStateLoader.cxx.o CMakeFiles/ServerManagerStateLoader.dir/vtkTestingProcessModuleGUIHelper.cxx.o CMakeFiles/ServerManagerStateLoader.dir/vtkTestingOptions.cxx.o  -o ../../../../bin/ServerManagerStateLoader -rdynamic ../../../../bin/libvtkPVServerManager.a ../../../../bin/libvtkPVFiltersCS.a ../../../../bin/libvtkPVFilters.a ../../../../bin/libvtkPVServerCommonCS.a ../../../../bin/libvtkPVServerCommon.a ../../../../bin/libvtkPVCommandOptions.a ../../../../bin/libvtkChartsCS.a ../../../../bin/libvtkViewsCS.a ../../../../bin/libvtkInfovisCS.a ../../../../bin/libQVTK.a /usr/global/tools/Kitware/Paraview/3.10/chaos_4_x86_64_ib/lib/libQtWebKit.so /usr/global/tools/Kitware/Paraview/3.10/chaos_4_x86_64_ib/lib/libQtXmlPatterns.so /usr/global/tools/Kitware/Paraview/3.10/chaos_4_x86_64_ib/lib/libQtNetwork.so ../../../../bin/libIceTMPI.a ../../../../bin/libIceTGL.a ../../../../bin/libIceTCore.a -lGLU ../../../../bin/libvtkVolumeRenderingCS.a ../../../../bin/libvtkVolumeRendering.a ../../../../bin/libvtkWidgetsCS.a ../../../../bin/libKWCommon.a ../../../../bin/libvtkCharts.a ../../../../bin/libvtkViews.a ../../../../bin/libvtkInfovis.a ../../../../bin/libvtkWidgets.a ../../../../bin/libvtkalglib.a ../../../../bin/libvtkXdmfCS.a ../../../../bin/libvtkXdmf.a ../../../../bin/libXdmf.a ../../../../bin/libvtklibxml2.a -lm ../../../../bin/libvtkVisItDatabasesCS.a ../../../../bin/libvtkVisItAVTAlgorithmsCS.a ../../../../bin/libvtkHybridCS.a ../../../../bin/libvtkParallelCS.a ../../../../bin/libvtkHybrid.a ../../../../bin/libvtkParallel.a ../../../../bin/libVPIC.a ../../../../bin/libCosmo.a /usr/local/tools/mvapich-gnu/lib/shared/libmpich.so ../../../../bin/libvtkexoIIc.a ../../../../bin/libvtkRenderingCS.a ../../../../bin/libvtkRendering.a ../../../../bin/libvtkftgl.a /usr/global/tools/Kitware/Paraview/3.10/chaos_4_x86_64_ib/lib/libQtGui.so /usr/global/tools/Kitware/Paraview/3.10/chaos_4_x86_64_ib/lib/libQtSql.so /usr/global/tools/Kitware/Paraview/3.10/chaos_4_x86_64_ib/lib/libQtCore.so -lGL ../../../../bin/libvtkfreetype.a -lXt -lSM -lICE -lX11 -lXext ../../../../bin/libvtkGenericFilteringCS.a ../../../../bin/libvtkGenericFiltering.a ../../../../bin/libvtkGraphicsCS.a ../../../../bin/libvtkImagingCS.a ../../../../bin/libvtkIOCS.a ../../../../bin/libvtkFilteringCS.a ../../../../bin/libvtkCommonCS.a ../../../../bin/libvtkClientServer.a ../../../../bin/libvtkVisItDatabases.a ../../../../bin/libvtkVisItAVTAlgorithms.a ../../../../bin/libavtdatabase_par.a ../../../../bin/libavtpipeline_par.a ../../../../bin/libavtdbatts.a ../../../../bin/libavtivp.a ../../../../bin/libvisit_vtk.a ../../../../bin/libvtkGraphics.a ../../../../bin/libvtkverdict.a ../../../../bin/libvtkImaging.a ../../../../bin/liblightweight_visit_vtk.a ../../../../bin/libvtkIO.a ../../../../bin/libvtkDICOMParser.a ../../../../bin/libvtkNetCDF_cxx.a ../../../../bin/libvtkmetaio.a ../../../../bin/libvtksqlite.a ../../../../bin/libvtkpng.a ../../../../bin/libvtktiff.a ../../../../bin/libvtkzlib.a ../../../../bin/libvtkjpeg.a ../../../../bin/libvtkexpat.a ../../../../bin/libvtkFiltering.a ../../../../bin/libavtmath.a ../../../../bin/libvtkCommon.a ../../../../bin/libvtksys.a -lm -lpthread -lz  /usr/gapps/visit/szip/2.1/linux-x86_64_gcc-4.1/lib/libsz.a -ldl ../../../../bin/libvisitcommon.a ../../../../bin/libvtkNetCDF.a /usr/gapps/visit/hdf5/1.8.4/linux-x86_64_gcc-4.1/lib/libhdf5.a /usr/gapps/visit/silo/4.8/linux-x86_64_gcc-4.1/lib/libsiloh5.a /usr/gapps/visit/cgns/3.0.8/linux-x86_64_gcc-4.1/lib/libcgns.a /usr/gapps/visit/mili/1.10.0/linux-x86_64_gcc-4.1/lib/libmili.a -Wl,-rpath,/usr/global/tools/Kitware/Paraview/3.10/chaos_4_x86_64_ib/lib:/usr/local/tools/mvapich-gnu/lib/shared<br>


&gt; /usr/gapps/visit/hdf5/1.8.4/linux-x86_64_gcc-4.1/lib/libhdf5.a(H5Z.o): In function `H5Z_init_interface&#39;:<br>
&gt; H5Z.c:(.text+0x27d): undefined reference to `SZ_encoder_enabled&#39;<br>
&gt; /usr/gapps/visit/hdf5/1.8.4/linux-x86_64_gcc-4.1/lib/libhdf5.a(H5Zszip.o): In function `H5Z_filter_szip&#39;:<br>
&gt; H5Zszip.c:(.text+0x121): undefined reference to `SZ_BufftoBuffDecompress&#39;<br>
&gt; H5Zszip.c:(.text+0x1ce): undefined reference to `SZ_BufftoBuffCompress&#39;<br>
&gt; /usr/gapps/visit/silo/4.8/linux-x86_64_gcc-4.1/lib/libsiloh5.a(silo_hdf5.o): In function `db_hdf5_InqMeshName&#39;:<br>
&gt; silo_hdf5.c:(.text+0x839e): undefined reference to `H5Topen1&#39;<br>
&gt; /usr/gapps/visit/silo/4.8/linux-x86_64_gcc-4.1/lib/libsiloh5.a(silo_hdf5.o): In function `db_hdf5_hdrwr&#39;:<br>
&gt;<br>
&gt; --<br>
&gt; ✐Richard Cook<br>
&gt; ✇ Lawrence Livermore National Laboratory<br>
&gt; Bldg-453 Rm-4024, Mail Stop L-557<br>
&gt; 7000 East Avenue,  Livermore, CA, 94550, USA<br>
&gt; ☎ (office) <a href="tel:%28925%29%20423-9605" value="+19254239605">(925) 423-9605</a><br>
&gt; ☎ (fax) <a href="tel:%28925%29%20423-6961" value="+19254236961">(925) 423-6961</a><br>
&gt; ---<br>
&gt; Information Management &amp; Graphics Grp., Services &amp; Development Div., Integrated Computing &amp; Communications Dept.<br>
&gt; (opinions expressed herein are mine and not those of LLNL)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
--<br>
✐Richard Cook<br>
✇ Lawrence Livermore National Laboratory<br>
Bldg-453 Rm-4024, Mail Stop L-557<br>
7000 East Avenue,  Livermore, CA, 94550, USA<br>
☎ (office) <a href="tel:%28925%29%20423-9605" value="+19254239605">(925) 423-9605</a><br>
☎ (fax) <a href="tel:%28925%29%20423-6961" value="+19254236961">(925) 423-6961</a><br>
---<br>
Information Management &amp; Graphics Grp., Services &amp; Development Div., Integrated Computing &amp; Communications Dept.<br>
(opinions expressed herein are mine and not those of LLNL)<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div>