Package: paraview
Version: 4.0.1-1ubuntu1
Severity: normal

Dear Maintainer,

I'm developing an application, which based on paraview custom app mod. When
build it on ubuntu 14.04 LTS,
I found that there are some bugs in paraview-dev-4.0.1. Here is the errors
output by cmake:
*******************************************************************************
$HOME/Projects/ParaFlow/build> cmake ../
CMake Error at /usr/lib/cmake/paraview/ParaViewTargets.cmake:1498 (message):
  The imported target "ProcessShader" references the file

     "/usr/bin/vtkProcessShader"

  but this file does not exist. Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/cmake/paraview/ParaViewTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/cmake/paraview/ParaViewConfig.cmake:36 (include)
  CMakeLists.txt:4 (find_package)

-- Configuring incomplete, errors occurred!
See also "$HOME/Projects/ParaFlow/build/CMakeFiles/CMakeOutput.log".
See also "$HOME/Projects/ParaFlow/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
***********************************************************************************
As the cmake says, this error is caused by the lack of some files, so we should
install the these files.
Finally I fixed this bug just by including the missed files in "paraview-
dev.install" and turn on the  flag
 "QT_TESTING_INSTALL_DEVELOPMENT" in "/debian/rules". These missed files should
be included by
paraview-dev  for who wish to use paraview-dev's headers with cmake .

Meanwhile, some of the features in paraview's stable release were not enabled
in the debian releases,
such as "ViSit" and "CGNS". While without these features, paraview will be not
able to open some type of files.
To enable visit "ViSit" and "CGNS", we should turn "PARAVIEW_USE_VISITBRIDGE"
"VISIT_BUILD_READER_CGNS"
on and have small changes on the paraview's source code cause the config header
file of libcgns-dev.



-- System Information:
Debian Release: jessie/sid
  APT prefers trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 
'trusty-proposed'), (500, 'trusty'), (100, 'trusty-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13.0-32-generic (SMP w/4 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages paraview depends on:
ii  libavcodec54              6:9.14-0ubuntu0.14.04.1
ii  libavformat54             6:9.14-0ubuntu0.14.04.1
ii  libavutil52               6:9.14-0ubuntu0.14.04.1
ii  libc6                     2.19-0ubuntu6
ii  libexpat1                 2.1.0-4ubuntu1
ii  libfreetype6              2.5.2-1ubuntu2.2
ii  libgcc1                   1:4.9-20140406-0ubuntu1
ii  libgl1-mesa-glx [libgl1]  10.1.3-0ubuntu0.1
ii  libhdf5-7 [libhdf5-7]     1.8.11-5ubuntu7
ii  libjpeg8                  8c-2ubuntu8
ii  libjsoncpp0               0.6.0~rc2-3ubuntu1
ii  libogg0                   1.3.1-1ubuntu1
ii  libopenmpi1.6             1.6.5-8
ii  libpng12-0                1.2.50-1ubuntu2
ii  libpython2.7              2.7.6-8
ii  libqt4-help               4:4.8.5+git192-g085f851+dfsg-2ubuntu4
ii  libqt4-network            4:4.8.5+git192-g085f851+dfsg-2ubuntu4
ii  libqtcore4                4:4.8.5+git192-g085f851+dfsg-2ubuntu4
ii  libqtgui4                 4:4.8.5+git192-g085f851+dfsg-2ubuntu4
ii  libqtwebkit4              2.3.2-0ubuntu7
ii  libstdc++6                4.8.2-19ubuntu1
ii  libswscale2               6:9.14-0ubuntu0.14.04.1
ii  libtheora0                1.1.1+dfsg.1-3.2
ii  libtiff5                  4.0.3-7ubuntu0.1
ii  libx11-6                  2:1.6.2-1ubuntu2
ii  libxml2                   2.9.1+dfsg1-3ubuntu4.3
ii  libxt6                    1:1.1.4-1
ii  tcl [tclsh]               8.6.0+6ubuntu3
ii  zlib1g                    1:1.2.8.dfsg-1ubuntu1

Versions of packages paraview recommends:
ii  mpi-default-bin  1.0.2ubuntu1
ii  paraview-doc     4.0.1-1ubuntu1
pn  paraview-python  <none>

Versions of packages paraview suggests:
pn  h5utils     <none>
ii  hdf5-tools  1.8.11-5ubuntu7

-- no debconf information
>From b85f0117c7f1299cb5fb341112dc347b627e870b Mon Sep 17 00:00:00 2001
From: HuiJie Zhang <yitianb...@gmail.com>
Date: Tue, 1 Jul 2014 21:45:45 +0800
Subject: [PATCH] fix bugs in paraview-devel, enable VISIT and cgns

Signed-off-by: HuiJie Zhang <yitianb...@gmail.com>
---
 Utilities/VisItBridge/databases/CGNS/avtCGNSFileFormat.h |  5 +++++
 debian/paraview-dev.install                              | 15 +++++++++++++++
 debian/rules                                             |  6 +++++-
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/Utilities/VisItBridge/databases/CGNS/avtCGNSFileFormat.h b/Utilities/VisItBridge/databases/CGNS/avtCGNSFileFormat.h
index 4a5714d..1afbdd8 100644
--- a/Utilities/VisItBridge/databases/CGNS/avtCGNSFileFormat.h
+++ b/Utilities/VisItBridge/databases/CGNS/avtCGNSFileFormat.h
@@ -47,6 +47,11 @@
 #include <vector>
 #include <vectortypes.h>
 #include <map>
+#include <cgnstypes.h>
+#ifdef CG_BUILD_SCOPE
+#undef CG_BUILD_SCOPE
+#define CG_BUILD_SCOPE 0
+#endif
 #include <cgnslib.h> // needed to check cgns version number.
 
 #if CGNS_VERSION < 3000
diff --git a/debian/paraview-dev.install b/debian/paraview-dev.install
index e2b1f91..be12b81 100644
--- a/debian/paraview-dev.install
+++ b/debian/paraview-dev.install
@@ -3,4 +3,19 @@ usr/lib/cmake/paraview/*.cmake
 usr/lib/cmake/paraview/*.in
 usr/lib/cmake/paraview/*.xsl
 usr/lib/cmake/paraview/*.cmake
+usr/lib/cmake/paraview/Modules/*.cmake
 usr/bin/vtkWrapClientServer
+usr/bin/vtkHashSource
+usr/bin/vtkParseOGLExt
+usr/bin/vtkWrapHierarchy
+usr/bin/vtkWrapPythonInit
+usr/bin/smTestDriver
+usr/bin/vtkkwProcessXML
+usr/bin/vtkProcessShader
+usr/bin/vtkEncodeString
+usr/bin/vtkParseJava
+usr/bin/vtkWrapJava
+usr/bin/vtkWrapPython
+usr/bin/vtkWrapTcl
+usr/bin/vtkWrapTclInit
+usr/lib/paraview/*.a
diff --git a/debian/rules b/debian/rules
index 8aa1090..91c5543 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,6 +31,8 @@ extra_flags += -Wno-dev \
 	-DVTK_USE_MPEG2_ENCODER=OFF \
 	-DVTK_USE_FFMPEG_ENCODER=ON \
 	-DPARAVIEW_ENABLE_FFMPEG=ON \
+	-DPARAVIEW_USE_VISITBRIDGE=ON \
+	-DVISIT_BUILD_READER_CGNS=ON \
 	-DVTK_USE_OGGTHEORA_ENCODER=ON \
 	-DVTK_USE_SYSTEM_OGGTHEORA=ON \
 	-DVTK_INSTALL_LIBRARY_DIR="lib/paraview" \
@@ -51,10 +53,12 @@ extra_flags += -Wno-dev \
 	-DPARAVIEW_USE_MPI=ON \
 	-DMPI_INCLUDE_PATH="/usr/include/mpi" \
 	-DVTK_USE_SYSTEM_HDF5=ON \
+	-DHDF5_HL_LIBRARY=ON \
 	-DPARAVIEW_ENABLE_PYTHON=ON \
 	-DPARAVIEW_BUILD_PLUGIN_AdiosReader:BOOL=ON \
 	-DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=ON \
-	-DEigen_DIR=/usr/include/eigen3
+	-DEigen_DIR=/usr/include/eigen3 \
+	-DQT_TESTING_INSTALL_DEVELOPMENT=ON
 
 override_dh_auto_configure:
 	dh_auto_configure -- $(extra_flags)
-- 
1.9.1

Reply via email to