[MacPorts] #19569: vtk-devel doesn't build/install python26 libs (python26 framework build)
MacPorts
noreply at macports.org
Mon May 11 14:29:48 PDT 2009
#19569: vtk-devel doesn't build/install python26 libs (python26 framework build)
----------------------------------+-----------------------------------------
Reporter: santagada@… | Owner: dweber@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Resolution: worksforme | Keywords: vtk vtk-devel framework python26 python
Port: vtk-devel |
----------------------------------+-----------------------------------------
Comment(by dweber@…):
Replying to [comment:3 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!
--
Ticket URL: <http://trac.macports.org/ticket/19569#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list