Hello, this need several modifications like -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF \
some dependencies are missing for building in a clean chroot, please look at vtk in the official repo
Git Clone URL: | https://aur.archlinux.org/vtk-git.git (read-only, click to copy) |
---|---|
Package Base: | vtk-git |
Description: | A software system for 3D computer graphics, image processing, and visualization |
Upstream URL: | http://www.vtk.org |
Licenses: | BSD |
Conflicts: | vtk |
Provides: | vtk |
Submitter: | pmattern |
Maintainer: | pmattern |
Last Packager: | xantares |
Votes: | 2 |
Popularity: | 0.000000 |
First Submitted: | 2016-05-02 16:20 (UTC) |
Last Updated: | 2020-04-23 19:44 (UTC) |
Hello, this need several modifications like -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF \
some dependencies are missing for building in a clean chroot, please look at vtk in the official repo
cgns dep missing
-- Configuring incomplete, errors occurred! See also "/var/tmp/pamac-build-user/vtk git/src/vtk/build/CMakeFiles/CMakeOutput.log". See also "/var/tmp/pamac-build-user/vtk-git/src/vtk/build/CMakeFiles/CMakeError.log". ==> ERROR: Se produjo un fallo en build(). Cancelando...
I had two problems when using this package:
I used JDK 13, which doesn’t support java source/target version 1.6, which was used as the default.
I had a space in one directory in the path leading to the PKGBUILD file, which caused a problem in the install
command in the package
function.
I got it working after applying the changes in the following diff:
diff --git a/PKGBUILD b/PKGBUILD index 9177e1c..df66e5a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -25,7 +25,7 @@ build() { cd "${srcdir}/vtk" export JAVA_HOME=/usr/lib/jvm/default mkdir -p build && cd build - cmake $srcdir/$_pkgname \ + cmake "$srcdir/$_pkgname" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=Release \ @@ -40,6 +40,8 @@ build() { -DVTK_WRAP_JAVA=ON \ -DVTK_WRAP_PYTHON=ON \ -DVTK_MODULE_ENABLE_VTK_IOADIOS2=NO \ + -DVTK_JAVA_SOURCE_VERSION=1.8 \ + -DVTK_JAVA_TARGET_VERSION=1.8 \ .. make } @@ -48,5 +50,5 @@ package() { cd "${srcdir}/vtk/build" make DESTDIR="$pkgdir" install # Pack license - install -D -m644 $srcdir/vtk/Copyright.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE + install -D -m644 "$srcdir/vtk/Copyright.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }
Depends needs to include pugixml
. I got it working after I included this.
The PKGBUILD needs some changes
# Cmake args - -DBUILD_DOCUMENTATION=ON \ + -DBUILD_DOCUMENTATION=OFF \ + -DVTK_USE_SYSTEM_LIBHARU=OFF \ + -DVTK_USE_SYSTEM_JSONCPP=OFF \ # package() - # Place XdmfConfig.cmake of internal XDMF at a more reasonable location - mkdir -p $pkgdir/usr/lib/cmake/XDMF && mv $pkgdir/usr/XdmfConfig.cmake $pkgdir/usr/lib/cmake/XDMF/ + rm -rf "$pkgdir/usr/lib64"
Pinned Comments
pmattern commented on 2016-05-23 23:39 (UTC) (edited on 2016-05-23 23:40 (UTC) by pmattern)