[vtk-developers] python, postgreSQL, VTK build

Darren Weber darren.weber.lists at gmail.com
Fri Aug 29 11:47:40 EDT 2008


I've got a link error when building VTK on OSX.  I've enabled postgresql and
python wrapping.

[ 73%] Built target vtk
Scanning dependencies of target vtkpython
[ 73%] Building CXX object
Wrapping/Python/CMakeFiles/vtkpython.dir/vtkPythonAppInit.o
Linking CXX executable ../../bin/vtkpython
ld: file not found: libpq.5.dylib
collect2: ld returned 1 exit status
make[2]: *** [bin/vtkpython] Error 1
make[1]: *** [Wrapping/Python/CMakeFiles/vtkpython.dir/all] Error 2
make: *** [all] Error 2


I've used the binary installer for postgresql, which goes into
/Library/PostgreSQL/8.3/*

[ dweber at elegans ~/src/kitware/VTK_build ]$ ls /Library/PostgreSQL/8.3/lib/
libecpg.6.0.dylib*  libecpg.dylib@             libecpg_compat.a
libpgtypes.3.0.dylib*  libpgtypes.dylib@  libpq.a
libecpg.6.dylib@    libecpg_compat.3.0.dylib*  libecpg_compat.dylib@
libpgtypes.3.dylib@    libpq.5.1.dylib*   libpq.dylib@
libecpg.a           libecpg_compat.3.dylib@    libpgport.a
libpgtypes.a           libpq.5.dylib@     postgresql/
[ dweber at elegans ~/src/kitware/VTK_build ]$


Is this a simple problem of loading up an LD path or something so the build
can find it?  What's the best way to do this on OSX?

Thanks, Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20080829/da4614ca/attachment.html>


More information about the vtk-developers mailing list