Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#19569 closed defect (worksforme)

vtk-devel doesn't build/install python26 libs (python26 framework build)

Reported by: santagada@… Owned by: dweber@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: vtk vtk-devel framework python26 python Cc:
Port: vtk-devel

Description

I tried to port install vtk-devel +cocoa -x11 +python26 but it doesn't install any python libraries.

At least the python include dir is wrong for a framework build but even after setting it to:

-DPYTHON_INCLUDE_PATH:FILEPATH=${frameworks_dir}/Python.framework/Versions/2.6/include/python2.6

it still doesn't install python libraries anywhere. to test it just try "import vtk" on python-2.6 framework build, also look at the installed files and there is no python libraries anywhere.

Change History (5)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to dweber@…

comment:2 Changed 16 years ago by dweber@…

Resolution: worksforme
Status: newclosed

From the install synatax you have reported in this ticket, it looks like you have the initial update to vtk-devel (at 5.4.0), which is still a work in progress. That is, don't expect everything to work with *-devel port.

The main problem with the prior port revision (0) was with: -DVTK_PYTHON_SETUP_ARGS Although the wrapping was fine, the install failed. This variable setting was not getting through to cmake properly. It took forever to debug that nasty little critter! In addition, the python26 variant has the wrong header and site paths. Your library setting in the ticket should work for the build, but the problem is the python setup args was faulty. Those variables are all now:

    configure.args-append \
        -DVTK_WRAP_PYTHON:BOOL=ON \
        -DVTK_NO_PYTHON_THREADS:BOOL=OFF \
        -DPYTHON_INCLUDE_PATH:FILEPATH=${prefix}/Library/Frameworks/Python.framework/Headers \
        -DPYTHON_LIBRARY:FILEPATH=${prefix}/lib/lib${python}.dylib \
        -DPYTHON_DEBUG_LIBRARY:FILEPATH=${prefix}/lib/lib${python}.dylib \
        -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/${python} \
        -DVTK_PYTHON_SETUP_ARGS:STRING='--prefix=${pyframe} --root=${destroot}'

On my system, this is all working now in the latest revision (actually, my current testing port will have to use a more version specific library path for the framework, as you point out in the ticket). I've commited a revision to the svn trunk for vtk-devel (revision 1) last Friday. Check if that revision is in the release ports; use port selfupdate, then port info vtk-devel should say:

vtk-devel @5.4.0, Revision 1 (graphics, math, science, devel)
Variants:    boost, carbon, cocoa, darwin_9, data, doc, examples, java, mpi, mysql, odbc, pgsql, py25, py26, shared, tcl,
             tcl_apple, testing, universal, x11

An open source, freely available software system for computer graphics, image processing, and visualization used by thousands of
researchers and developers around the world. VTK consists of a C++ class library, and several interpreted interface layers
including Tcl/Tk, Java, and Python.
Homepage:    http://www.vtk.org/

Build Dependencies:   cmake, readline
Platforms:            darwin
Maintainers:          dweber@macports.org openmaintainer@macports.org

If not, you might try to get it from the svn trunk at:

http://trac.macports.org/browser/trunk/dports/graphics/vtk-devel/Portfile

I did a lot of work on python, tcl, java wrapping installs for vtk-devel last week, to check the install paths and the dylib rpaths. I checked the python installs for both py25 and py26 variants. The new revision uses the names py25 and py26 for those variants (not python26). As this is a work in progress, I've taken the liberty to rename or otherwise change variants at will.

I'm now working on the database backends (mysql, pgsql, odbc variants). The goal is to have the vtk-devel install tested within a few weeks. The functionality is another thing. Once we know the install and the functionality are stable, vtk-devel should be become vtk (and possibly vtk5 too).

There are more variants, including options to use boost and mpi. I will not have time and patience to test all of the variant combinations (unless there is an automatic system in macports dev for generating and testing all the possible variant combinations for a port).

Best, Darren

comment:3 Changed 16 years ago by santagada@…

Thanks a lot for the work.

I just want to ask you, why rename the variant py26 instead of python26? I've seen some other port using python26 so either vtk-devel or the other port should rename its variants to make things simpler no?

Now trying to sudo port install vtk-devel +py26 +shared +boost +cocoa -tcl -x11 -java I get this error:

--->  Fetching vtk-devel
--->  Verifying checksum(s) for vtk-devel
--->  Extracting vtk-devel
--->  Configuring vtk-devel
--->  Building vtk-devel
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build" && gnumake all " returned error 2
Command output: /opt/local/bin/cmake -H/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/CMakeFiles /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/CMakeFiles/progress.make
gnumake -f CMakeFiles/Makefile2 all
gnumake -f Wrapping/CMakeFiles/vtkWrapPython.dir/build.make Wrapping/CMakeFiles/vtkWrapPython.dir/depend
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Wrapping /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Wrapping /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Wrapping/CMakeFiles/vtkWrapPython.dir/DependInfo.cmake --color=
Scanning dependencies of target vtkWrapPython
gnumake -f Wrapping/CMakeFiles/vtkWrapPython.dir/build.make Wrapping/CMakeFiles/vtkWrapPython.dir/build
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/CMakeFiles 
[  0%] Building C object Wrapping/CMakeFiles/vtkWrapPython.dir/vtkWrapPython.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Wrapping && /usr/bin/gcc  -DVTK_IN_VTK -O2 -g -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/VolumeRendering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Rendering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtkalglib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Infovis -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Geovis -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Views -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Parallel -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/VolumeRendering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Hybrid -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Widgets -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Rendering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Rendering/Testing/Cxx -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/IO -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Imaging -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Graphics -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/GenericFiltering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Filtering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Common/Testing/Cxx -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtklibproj4 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtklibproj4 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/DICOMParser -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/DICOMParser -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtkfreetype/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtkfreetype/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtknetcdf -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtknetcdf -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtkexodus2/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtkexodus2/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/MaterialLibrary -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/MaterialLibrary -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/verdict -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/verdict -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/gl2ps -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtkalglib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/ftgl/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/ftgl -I/opt/local/Library/Frameworks/Python.framework/Headers -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Wrapping   -o CMakeFiles/vtkWrapPython.dir/vtkWrapPython.o   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Wrapping/vtkWrapPython.c
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Wrapping/vtkWrapPython.c:16:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Common/vtkPython.h:46:22: error: Python.h: No such file or directory
gnumake[2]: *** [Wrapping/CMakeFiles/vtkWrapPython.dir/vtkWrapPython.o] Error 1
gnumake[1]: *** [Wrapping/CMakeFiles/vtkWrapPython.dir/all] Error 2
gnumake: *** [all] Error 2

Error: Status 1 encountered during processing.

comment:4 in reply to:  3 Changed 16 years ago by dweber@…

Replying to santagada@…:

Thanks a lot for the work.

I just want to ask you, why rename the variant py26 instead of python26? I've seen some other port using python26 so either vtk-devel or the other port should rename its variants to make things simpler no?

Now trying to sudo port install vtk-devel +py26 +shared +boost +cocoa -tcl -x11 -java I get this error:

--->  Fetching vtk-devel
--->  Verifying checksum(s) for vtk-devel
--->  Extracting vtk-devel
--->  Configuring vtk-devel
--->  Building vtk-devel
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build" && gnumake all " returned error 2
Command output: /opt/local/bin/cmake -H/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/CMakeFiles /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/CMakeFiles/progress.make
gnumake -f CMakeFiles/Makefile2 all
gnumake -f Wrapping/CMakeFiles/vtkWrapPython.dir/build.make Wrapping/CMakeFiles/vtkWrapPython.dir/depend
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Wrapping /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Wrapping /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Wrapping/CMakeFiles/vtkWrapPython.dir/DependInfo.cmake --color=
Scanning dependencies of target vtkWrapPython
gnumake -f Wrapping/CMakeFiles/vtkWrapPython.dir/build.make Wrapping/CMakeFiles/vtkWrapPython.dir/build
/opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/CMakeFiles 
[  0%] Building C object Wrapping/CMakeFiles/vtkWrapPython.dir/vtkWrapPython.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Wrapping && /usr/bin/gcc  -DVTK_IN_VTK -O2 -g -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/VolumeRendering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Rendering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtkalglib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Infovis -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Geovis -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Views -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Parallel -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/VolumeRendering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Hybrid -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Widgets -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Rendering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Rendering/Testing/Cxx -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/IO -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Imaging -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Graphics -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/GenericFiltering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Filtering -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Common/Testing/Cxx -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtklibproj4 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtklibproj4 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/DICOMParser -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/DICOMParser -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtkfreetype/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtkfreetype/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtknetcdf -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtknetcdf -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/vtkexodus2/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtkexodus2/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/MaterialLibrary -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/MaterialLibrary -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/verdict -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/verdict -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/gl2ps -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/vtkalglib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Utilities/ftgl/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4-build/Utilities/ftgl -I/opt/local/Library/Frameworks/Python.framework/Headers -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Wrapping   -o CMakeFiles/vtkWrapPython.dir/vtkWrapPython.o   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Wrapping/vtkWrapPython.c
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Wrapping/vtkWrapPython.c:16:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_vtk-devel/work/vtk-5.4/Common/vtkPython.h:46:22: error: Python.h: No such file or directory
gnumake[2]: *** [Wrapping/CMakeFiles/vtkWrapPython.dir/vtkWrapPython.o] Error 1
gnumake[1]: *** [Wrapping/CMakeFiles/vtkWrapPython.dir/all] Error 2
gnumake: *** [all] Error 2

Error: Status 1 encountered during processing.

Try to use:

-DPYTHON_INCLUDE_PATH:FILEPATH=${prefix}/Library/Frameworks/Python.framework/Versions/${pyver}/Headers

The revision 1 Portfile is not version specific about the include path (sorry, that will change ASAP). It can't find the python header, ie:

... devel/work/vtk-5.4/Common/vtkPython.h:46:22: error: Python.h

I've used python_select to define python26 as my default. My guess is that this creates the symlink for

/opt/local/Library/Frameworks/Python.framework/Headers

which points to:

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Headers/

Hence, if we use the more specific path (as my current dev Portfile does, but not revision 1), then it may work for you too!

comment:5 Changed 16 years ago by dweber@…

BTW, most of the variants are off by default, so you don't need -x11, for instance. The port should automatically handle conflicts that are specified, and cocoa, carbon, x11 do conflict with each other and only one of them can be specified. The default is cocoa, so you don't need +cocoa. To see a list of the variant descriptions, use port variants vtk-devel and the descriptions should indicate what is used by default. You might want to turn off examples, data or something, using -examples, -data, etc.

Note: See TracTickets for help on using tickets.