#17239 closed defect (fixed)
vtk5-5.2.0 Missing library/path with python variant, build failure.
Reported by: | macports.b@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | vtk vtk5 | Cc: | |
Port: | vtk5 |
Description
Although vtk5 builds fine in its base variant, when I try to build it with +python, I first get this configure error:
---> Configuring vtk5 ... Command output: CMake Error at CMakeLists.txt:420 (MESSAGE): VTK_WRAP_PYTHON requires BUILD_SHARED_LIBS to be ON.
So I changed the portfile line 44 to read:
configure.args -DBUILD_SHARED_LIBS:BOOL=ON \
Then, the whole thing builds except that right at the end I get a build error linking the vtkpython executable:
[ 96%] Building CXX object Wrapping/Python/CMakeFiles/vtkpython.dir/vtkPythonAppInit.o Linking CXX executable ../../bin/vtkpython ld: library not found for -lhistory collect2: ld returned 1 exit status make[2]: *** [bin/vtkpython] Error 1 make[1]: *** [Wrapping/Python/CMakeFiles/vtkpython.dir/all] Error 2 make: *** [all] Error 2 Error: Status 1 encountered during processing.
I can manually add -L/opt/local/bin to a bunch of the link.txt files, but this seems dirty. I'm not familiar with cmake so I didn't attempt to figure it out myself.
Thanks!
Bryan
Change History (4)
comment:1 Changed 16 years ago by mf2k (Frank Schima)
Cc: | rene.donner@… removed |
---|---|
Owner: | changed from macports-tickets@… to rene.donner@… |
comment:2 Changed 16 years ago by blb@…
Owner: | changed from rene.donner@… to macports-tickets@… |
---|
comment:3 Changed 16 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I think I fixed this problem. Please update the source tree and try again. Note I made python and x11 default variants.
Note: See
TracTickets for help on using
tickets.
René no longer maintains vtk5, r44858.