pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: graphics/vtk & vtk-data 5.10.1
I thought I'd report that Andrew, one of the OOF3D developers, came
to the rescue with what turned out to be a trivial patch to the VTK
5.10.1 source which allows it to build on NetBSD/amd64 6.1.5 --
trivial when you know which file to edit and where...
The cmake-3.0.1 and tk packages need to be installed. (Without the
tk package cmake complains "Tk was not found" even with the
VTK_WRAP_TCL option OFF.)
% ls -l
total 48480
-rw-r--r-- 1 ray wheel 24804193 Nov 7 19:33 vtk-5.10.1.tar.gz
% tar zxf vtk*
% ls -F
VTK5.10.1/ pax_global_header vtk-5.10.1.tar.gz
% cd VTK*
Edit Utilities/LSDyna/LSDynaFamily.cxx :
% diff -u Utilities/LSDyna/LSDynaFamily.cxx.orig
Utilities/LSDyna/LSDynaFamily.cxx
--- Utilities/LSDyna/LSDynaFamily.cxx.orig 2014-11-07
15:56:28.000000000 +1000
+++ Utilities/LSDyna/LSDynaFamily.cxx 2014-11-07 15:58:36.000000000 +1000
@@ -33,7 +33,7 @@
namespace
{
//Documentation on why the exemption
-#define USE_STAT_64 VTK_SIZEOF_ID_TYPE==8 && !defined
_DARWIN_FEATURE_64_BIT_INODE
+#define USE_STAT_64 VTK_SIZEOF_ID_TYPE==8 && !defined
_DARWIN_FEATURE_64_BIT_INODE && !defined _NETBSD_SOURCE
//OSX uses stat instead of stat64
#if (USE_STAT_64)
//64bit
%
Execute `ccmake . -Wno-dev' and turn these options ON (they're
sufficient for OOF3D anyway):
BUILD_SHARED_LIBS, BUILD_TESTING, VTK_USE_N_WAY_ARRAYS,
VTK_USE_PARALLEL, VTK_USE_RENDERING, VTK_WRAP_PYTHON.
Leave the other things "OFF". It's OK to have the DATA_ROOT and
LARGE_DATA_ROOT
be in the NOTFOUND state.
I found cmake's [g] option to generate the configuration and exit to
the shell wouldn't appear until, for example, the BUILD_EXAMPLES
option was turned ON then OFF again. That's strange.
Back at the shell run make , su to root and run make-install
Home |
Main Index |
Thread Index |
Old Index