<div dir="ltr"><br>I had some choices on how to install MySQL and PostgreSQL on OS X (Leopard Server, in my case).&nbsp; There is a &quot;default&quot; install of MySQL for Leopard server, but it had no development libraries that I could find.&nbsp; There was no default install of PostgreSQL.&nbsp; I first tried macports, but I found some problems with those installations (can&#39;t recall the details now).&nbsp; I moved to install binaries from the main web sites for both MySQL and PostgreSQL.&nbsp; Those binary installs mostly take care of a few configuration issues (although there are some startup and symlink issues for MySQL; I had to create symlinks in /usr/bin to point to /usr/local/mysql/bin; /usr/local/mysql is a symlink to /usr/local/mysql-&lt;version&gt;).&nbsp; The PostgreSQL installs into /Library/PostgreSQL/&lt;version&gt;/*<br>
<br>I started looking into dyld, but I&#39;m not sure that&#39;s the problem here.<br><br>Is there a way I can run just the cmake utility that should find these libraries?&nbsp; I noticed in the ccmake curses interface that the libraries were found or I just entered the &quot;right&quot; path values.&nbsp; I&#39;ll double check that.<br>
<br>Thanks!<br><br><br><div class="gmail_quote">On Fri, Aug 29, 2008 at 12:24 PM, David Thompson <span dir="ltr">&lt;<a href="mailto:dcthomp@sandia.gov">dcthomp@sandia.gov</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 class="Ih2E3d">On Fri, 2008-08-29 at 11:58 -0600, David Cole wrote:<br>
&gt; Nevertheless, you should at least be able to link to it if you specify<br>
&gt; the full path to the library. Where is the CMake code that does<br>
&gt; TARGET_LINK_LIBRARIES for this lib?<br>
<br>
</div>The PostgreSQL library is located with this script:<br>
 &nbsp; VTK/CMake/FindPOSTGRES.cmake<br>
and a call to LINK_LIBRARIES is made here:<br>
 &nbsp; VTK/IO/CMakeLists.txt<br>
if PostgreSQL is turned on. Interestingly, LINK_LIBRARIES is used<br>
instead of TARGET_LINK_LIBRARIES. Perhaps that should be changed to<br>
TARGET_LINK_LIBRARIES (both for PostgreSQL and MySQL)? Also, perhaps on<br>
MacOS X there are some dependent libraries required that are not being<br>
located? The FindPOSTGRES.cmake script doesn&#39;t look for any, so if zlib<br>
or any ssl libraries are required that might cause trouble in the case<br>
where libpq is static.<br>
<font color="#888888"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;David<br>
</font><div><div></div><div class="Wj3C7c"><br>
&gt; &nbsp;Do we use FIND_LIBRARY to get this lib path when linking to it or<br>
&gt; what?<br>
&gt;<br>
&gt;<br>
&gt; Is there a Postgres SQL VTK developer out there?<br>
<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2008/8/29 Darren Weber &lt;<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; For the record, there&#39;s some useful information on OS X<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; library paths in<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &#39;man dyld&#39;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; I assume the binary install of postgreSQL is not adding to one<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; of these path settings.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; On Fri, Aug 29, 2008 at 8:47 AM, Darren Weber<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I&#39;ve got a link error when building VTK on OSX. &nbsp;I&#39;ve<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled postgresql and python wrapping.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ 73%] Built target vtk<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Scanning dependencies of target vtkpython<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ 73%] Building CXX object<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wrapping/Python/CMakeFiles/vtkpython.dir/vtkPythonAppInit.o<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Linking CXX executable ../../bin/vtkpython<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ld: file not found: libpq.5.dylib<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collect2: ld returned 1 exit status<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; make[2]: *** [bin/vtkpython] Error 1<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; make[1]: ***<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Wrapping/Python/CMakeFiles/vtkpython.dir/all] Error 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; make: *** [all] Error 2<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I&#39;ve used the binary installer for postgresql, which<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; goes into /Library/PostgreSQL/8.3/*<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ dweber@elegans ~/src/kitware/VTK_build ]$<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ls /Library/PostgreSQL/8.3/lib/<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libecpg.6.0.dylib* &nbsp;libecpg.dylib@<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libecpg_compat.a &nbsp; &nbsp; &nbsp; libpgtypes.3.0.dylib*<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libpgtypes.dylib@ &nbsp;libpq.a<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libecpg.6.dylib@ &nbsp; &nbsp;libecpg_compat.3.0.dylib*<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libecpg_compat.dylib@ &nbsp;libpgtypes.3.dylib@<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libpq.5.1.dylib* &nbsp; libpq.dylib@<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libecpg.a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libecpg_compat.3.dylib@<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libpgport.a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;libpgtypes.a<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libpq.5.dylib@ &nbsp; &nbsp; postgresql/<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ dweber@elegans ~/src/kitware/VTK_build ]$<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Is this a simple problem of loading up an LD path or<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; something so the build can find it? &nbsp;What&#39;s the best<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; way to do this on OSX?<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Thanks, Darren<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; vtk-developers mailing list<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br></div>