<div dir="ltr"><br>Please see thread below on OS X link issue for VTK and PostgreSQL (using binary install).<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">David Cole</b> <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span><br>
Date: Fri, Aug 29, 2008 at 10:58 AM<br>Subject: Re: [vtk-developers] python, postgreSQL, VTK build<br>To: Darren Weber &lt;<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>&gt;<br>Cc: &quot;<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>&quot; &lt;<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>&gt;<br>
<br><br><div dir="ltr">Nevertheless, you should at least be able to link to it if you specify the full path to the library. Where is the CMake code that does TARGET_LINK_LIBRARIES for this lib? Do we use FIND_LIBRARY to get this lib path when linking to it or what?<div>

<br></div><div>Is there a Postgres SQL VTK developer out there?<br><br></div><div><br><div class="gmail_quote">2008/8/29 Darren Weber <span dir="ltr">&lt;<a href="mailto:darren.weber.lists@gmail.com" target="_blank">darren.weber.lists@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><div dir="ltr"><br>For the record, there&#39;s some useful information on OS X library paths in <br>
<pre style="margin: 0em;">&#39;man dyld&#39;</pre><br>I assume the binary install of postgreSQL is not adding to one of these path settings.<div><div></div><div><br>
<br><br><div class="gmail_quote">On Fri, Aug 29, 2008 at 8:47 AM, Darren Weber <span dir="ltr">&lt;<a href="mailto:darren.weber.lists@gmail.com" target="_blank">darren.weber.lists@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div dir="ltr"><br>I&#39;ve got a link error when building VTK on OSX.&nbsp; I&#39;ve enabled postgresql and python wrapping.<br><br>[ 73%] Built target vtk<br>Scanning dependencies of target vtkpython<br>[ 73%] Building CXX object Wrapping/Python/CMakeFiles/vtkpython.dir/vtkPythonAppInit.o<br>



Linking CXX executable ../../bin/vtkpython<br>ld: file not found: libpq.5.dylib<br>collect2: ld returned 1 exit status<br>make[2]: *** [bin/vtkpython] Error 1<br>make[1]: *** [Wrapping/Python/CMakeFiles/vtkpython.dir/all] Error 2<br>



make: *** [all] Error 2<br><br><br>I&#39;ve used the binary installer for postgresql, which goes into  /Library/PostgreSQL/8.3/*<br><br>[ dweber@elegans ~/src/kitware/VTK_build ]$ ls /Library/PostgreSQL/8.3/lib/<br>libecpg.6.0.dylib*&nbsp; libecpg.dylib@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libecpg_compat.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpgtypes.3.0.dylib*&nbsp; libpgtypes.dylib@&nbsp; libpq.a<br>



libecpg.6.dylib@&nbsp;&nbsp;&nbsp; libecpg_compat.3.0.dylib*&nbsp; libecpg_compat.dylib@&nbsp; libpgtypes.3.dylib@&nbsp;&nbsp;&nbsp; libpq.5.1.dylib*&nbsp;&nbsp; libpq.dylib@<br>libecpg.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libecpg_compat.3.dylib@&nbsp;&nbsp;&nbsp; libpgport.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpgtypes.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpq.5.dylib@&nbsp;&nbsp;&nbsp;&nbsp; postgresql/<br>



[ dweber@elegans ~/src/kitware/VTK_build ]$ <br><br><br>Is this a simple problem of loading up an LD path or something so the build can find it?&nbsp; What&#39;s the best way to do this on OSX?<br><br>Thanks, Darren<br><br></div>



</blockquote></div><br></div></div></div>
<br></div></div>_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br></blockquote></div><br></div></div>
</div><br></div>