Opened 19 years ago

Closed 19 years ago

#7177 closed defect (fixed)

UPDATE: VTK-4.2.6 Hybrid classes, X11 support

Reported by: cssdev@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: cssdev@…
Port:

Description

The attach patch updates the VTK 4.2.6 Portfile to include VTK's Hybrid classes as well as an option to use X11 windowing. The hybrid classes include a number of useful extra features. Including them does add to the build time, but it's probably better to include them rather than breaking them into a variant build.

Due to the bundling requires for applications using Cocoa windowing, it can be very useful to have X11 support available. Ideally, one might want to choose Carbon, Cocoa, or X11 windowing, but I haven't seen any requests for that kind of flexibility yet. X11 support is important for working properly with code brought from other platforms.

I also modified the configuration process. The Portfile now defines the custom CMake settings *before* starting the configuration process. Previously, it simply patched the resulting cache. This new approach ensures that the variables are correctly set for CMake throughout the configuration step.

Attachments (3)

patch-Portfile.diff (1.9 KB) - added by cssdev@… 19 years ago.
Portfile patch for VTK 4.2.6 hybrid and X11 support
patches.tar.gz (617 bytes) - added by cssdev@… 19 years ago.
Source patches
patch-Portfile.2.diff (2.4 KB) - added by cssdev@… 19 years ago.
Updated Portfile for hybrid and X11 support

Download all attachments as: .zip

Change History (7)

Changed 19 years ago by cssdev@…

Attachment: patch-Portfile.diff added

Portfile patch for VTK 4.2.6 hybrid and X11 support

comment:1 Changed 19 years ago by olegb@…

I get:

Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_Users_olegb_src_dports_graphics_vtk/work/VTK" && make all" returned error 2 Command output: Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkPolyDataSourceWidget.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkPolyDataToImageStencil.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkProcrustesAlignmentFilter.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkPushImageFilterSample.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkPushImageReader.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkPushPipeline.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkRIBExporter.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkRIBLight.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkRIBProperty.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkRenderLargeImage.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkScalarBarWidget.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkSphereWidget.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkSplineWidget.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkThinPlateSplineTransform.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkTransformToGrid.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkVRMLImporter.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkVectorText.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkVideoSource.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkWeightedTransformFilter.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkXYPlotActor.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkXYPlotWidget.o Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkHybridInstantiator.o Linking CXX shared library ../bin/libvtkHybrid.dylib ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: ZNSt8ios_base4InitC4Ev /usr/bin/libtool: internal link edit command failed make[2]: * [bin/libvtkHybrid.dylib] Error 1 make[1]: * [Hybrid/CMakeFiles/vtkHybrid.dir/all] Error 2 make: * [all] Error 2

Warning: the following items did not execute (for VTK): com.apple.build Error: Status 1 encountered during processing. m00:~/src/dports/graphics/vtk olegb$

comment:2 Changed 19 years ago by cssdev@…

This was a known problem with some older versions. I might have my local sources mixed up, as this particular error results from a gcc 3 work-around that is no longer needed for gcc 4. http://public.kitware.com/pipermail/vtkusers/2005-June/080182.html

I need to include the patches that remove the offending lines from several additional source files.

Changed 19 years ago by cssdev@…

Attachment: patches.tar.gz added

Source patches

Changed 19 years ago by cssdev@…

Attachment: patch-Portfile.2.diff added

Updated Portfile for hybrid and X11 support

comment:3 Changed 19 years ago by cssdev@…

attachments.isobsolete: 01

comment:4 Changed 19 years ago by olegb@…

Resolution: fixed
Status: newclosed

commited - great work!

Note: See TracTickets for help on using tickets.