Hi Alan,<br><br>Are you building with python enabled?  If python is enabled then BUILD_SHARED_LIBS will turn itself on automatically.<br><br>Is there any reason you cannot compile mesa with shared libs, or compile mesa static with -fPIC?<br>
<br>Pat<br><br><br><br><div class="gmail_quote">On Mon, Apr 11, 2011 at 8:00 PM, Scott, W Alan <span dir="ltr">&lt;<a href="mailto:wascott@sandia.gov">wascott@sandia.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">







<div>
<font face="Calibri" size="2"><span style="font-size: 11pt;">
<div>I am trying to create a paraview (client side) build of ParaView using Mesa on Linux.  I have compiled Mesa using Mesa 7.4.2, compiled with ‘make linux-x86-64-static’.</div>
<div> </div>
<div>I am now trying to compile ParaView, and keep failing with the following:</div>
<div> </div>
<div>[  7%] Built target Cosmo</div>
<div>Linking CXX shared library ../../../bin/libvtkftgl.so</div>
<div>/usr/bin/ld: /projects/viz/paraview/support/Linux-cee-sw-rhel5-x86_64/install/Mesa-7.4.2/lib/libMESAGL.a(glapi.o): relocation R_X86_64_32 against `a local symbol&#39; can not be used when making a shared object; recompile with -fPIC</div>

<div>/projects/viz/paraview/support/Linux-cee-sw-rhel5-x86_64/install/Mesa-7.4.2/lib/libMESAGL.a: could not read symbols: Bad value</div>
<div>collect2: ld returned 1 exit status</div>
<div>make[2]: *** [bin/libvtkftgl.so.pv3.10] Error 1</div>
<div>make[1]: *** [VTK/Utilities/ftgl/CMakeFiles/vtkftgl.dir/all] Error 2</div>
<div>make: *** [all] Error 2</div>
<div> </div>
<div>I have tried setting “BUILD_SHARED_LIBS” off when using ccmake on paraView, but it keeps turning itself on.  </div>
<div> </div>
<div>What I believe I need to do is create a static build of ParaView, thus Mesa won’t need the –fPIC flag. </div>
<div> </div>
<div>Any ideas?</div>
<div> </div>
<div>Thanks all,</div>
<div> </div>
<div>Alan</div>
<div> </div>
<div> </div>
<div><font size="2"><span style="font-size: 10pt;">--------------------------------------------------------</span></font></div>
<div><font face="Arial" size="2"><span style="font-size: 10pt;">W. Alan Scott</span></font></div>
<div><font face="Arial" size="2"><span style="font-size: 10pt;">ParaView Support Manager</span></font></div>
<div><font face="Arial" size="2"><span style="font-size: 10pt;"> </span></font></div>
<div><font face="Arial" size="2"><span style="font-size: 10pt;">GAITS</span></font></div>
<div><font face="Arial" size="2"><span style="font-size: 10pt;">Sandia National Laboratories, MS 0822</span></font></div>
<div><font face="Arial" size="2"><span style="font-size: 10pt;">Org 9326 - Building 880 A1-C</span></font></div>
<div><font face="Arial" size="2"><span style="font-size: 10pt;"><a href="tel:%28505%29%20284-0932" value="+15052840932" target="_blank">(505) 284-0932</a>   FAX <a href="tel:%28505%29%20845-0833" value="+15058450833" target="_blank">(505) 845-0833</a></span></font></div>

<div><font face="Arial" size="2"><span style="font-size: 10pt;">---------------------------------------------------------</span></font></div>
<div><font face="Arial" size="2"><span style="font-size: 10pt;"> </span></font></div>
<div> </div>
<div> </div>
</span></font>
</div>

<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>
<br></blockquote></div><br>