[Paraview] Dynamic libraries on Mac not recognized as plugins

Mike Jackson mike.jackson at imts.us
Mon Jul 14 11:20:17 EDT 2008


On Jul 14, 2008, at 11:14 AM, Samuel Crow wrote:

> Hello again,
>
> I'm building my vtkCubeReader files for Paraview as an external  
> shared library using a custom CMake file.  It builds perfectly but  
> otool -D reports that the default path of each directory is the  
> directory it is built in rather than /usr/local/plugins/ which is  
> where the plug-ins go.  Is there something my CMake configuration  
> is missing?  Changing LIBRARY_OUTPUT_PATH to /usr/local/plugins/  
> didn't seem to help.
>
> Last time I tried building the libraries with a default path of ./  
> so that they would not depend on their location but that just  
> placed a plugins directory in the root directory.  Is there  
> something I should know that I'm missing?
>
> I'm running ParaView 3.2.2 on a Macintosh Pro with Dual Quad-core  
> Xeon processors and 4 GiB of RAM.  It is running MacOSX 10.5.2 .
>
>
>

While this may not be the preferred way to do what you want, you  
could try something like the following:

IF (APPLE)
   SET(USE_RPATH ON)
   SET_TARGET_PROPERTIES(CubeReader
      PROPERTIES
      INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/plugins"
      BUILD_WITH_INSTALL_RPATH TRUE
   )
ENDIF (APPLE)

-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services



More information about the ParaView mailing list