[MacPorts] #16327: vtk5 5.0.3_0 +python build failure
MacPorts
noreply at macports.org
Tue Oct 28 10:07:28 PDT 2008
#16327: vtk5 5.0.3_0 +python build failure
-------------------------------+--------------------------------------------
Reporter: casbon at gmail.com | Owner: rene.donner at mac.com
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Resolution: | Keywords:
Port: vtk5 |
-------------------------------+--------------------------------------------
Comment(by truemped at gmail.com):
Ok, to summarize my changes to the portfile so far:
This is my 'variant' section:
{{{
variant python {
depends_build-append port:python25
configure.args-delete "-DBUILD_SHARED_LIBS:BOOL=OFF"
configure.args-append -DBUILD_SHARED_LIBS:BOOL=ON \
-DPYTHON_DEBUG_LIBRARY:FILEPATH=${prefix}/lib/libpython2.5.dylib \
-DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.5 \
-DPYTHON_INCLUDE_PATH:FILEPATH=${prefix}/include/python2.5 \
-DPYTHON_LIBRARY:FILEPATH=${prefix}/lib/libpython2.5.dylib \
-DVTK_WRAP_PYTHON:BOOL=ON \
-DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${prefix}
--root=${destdir} \
-DVTK_USE_RPATH:BOOL=ON \
-DVTK_USE_PARALLEL:BOOL=ON\
-DCMAKE_BUILD_WITH_INSTALL_PATH:BOOLL=ON
}
}}}
This is my post-configure section:
{{{
post-configure {
reinplace "s|c++|c++ -L${prefix}/lib |"
${worksrcpath}/Infovis/Testing/Cxx/CMakeFiles/InfovisCxxTests.dir/link.txt
\
${worksrcpath}/IO/Testing/Cxx/CMakeFiles/IOCxxTests.dir/link.txt \
${worksrcpath}/Views/Testing/Cxx/CMakeFiles/ViewsCxxTests.dir/link.txt \
${worksrcpath}/Wrapping/Tcl/CMakeFiles/vtk.dir/link.txt \
${worksrcpath}/Wrapping/Python/CMakeFiles/vtkpython.dir/link.txt
}
}}}
I can now successfully build with "port install vtk5 +darwin_9 +python".
Unfortunately there is no python package "vtk" anymore:
{{{
$ python -c "import vtk"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named vtk
}}}
Do you have another hint/idea? :)
--
Ticket URL: <http://trac.macports.org/ticket/16327#comment:13>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list