#17239: vtk5-5.2.0 Missing library/path with python variant, build failure. ----------------------------------+----------------------------------------- Reporter: macports.b@overt.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: vtk vtk5 | Port: vtk5 ----------------------------------+----------------------------------------- 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 -- Ticket URL: <http://trac.macports.org/ticket/17239> MacPorts <http://www.macports.org/> Ports system for Mac OS