[Paraview] Trying to build with system png (and other) libraries

Orion Poplawski orion at cora.nwra.com
Tue Apr 4 11:34:38 EDT 2006


Orion Poplawski wrote:
> Looks like vtkpng doesn't get built when using the system version, but 
> doesn't get removed from the dependencies for libKWWidgets.
> 
> Perhaps paraview-2.4.3/GUI/Widgets/CMakeLists.txt needs fixing?
> 
> TARGET_LINK_LIBRARIES (KWWidgets vtkpng)
> 
> to something link (I'm very new to cmake):
> 
> IF(VTK_USE_SYSTEM_PNG)
>   TARGET_LINK_LIBRARIES (KWWidgets vtkpng)
> ELSE(VTK_USE_SYSTEM_PNG)
>   TARGET_LINK_LIBRARIES (KWWidgets png)
> ENDIF(VTK_USE_SYSTEM_PNG)
> 
> Although it looks like it is already picking up -lpng.
> 

I just ended up doing:

--- paraview-2.4.3/GUI/Widgets/CMakeLists.txt.orig      2006-03-29 
10:20:37.000000000 -0700
+++ paraview-2.4.3/GUI/Widgets/CMakeLists.txt   2006-03-29 
10:22:03.000000000 -0700
@@ -397,7 +397,6 @@
      TARGET_LINK_LIBRARIES (KWWidgets vtkParallel)
    ENDIF(VTK_USE_PARALLEL OR VTK_USE_PARALLEL_ISSET)
  ENDIF(VTK_WRAP_TCL)
-TARGET_LINK_LIBRARIES (KWWidgets vtkpng)

  # We need KWSys

And it worked for me.

-- 
Orion Poplawski
System Administrator                   303-415-9701 x222
Colorado Research Associates/NWRA      FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301   http://www.co-ra.com


More information about the ParaView mailing list