[Paraview] ParaView can't create the reader
Jérémy Santina
jeremy.santina at gmail.com
Mon Aug 11 12:01:57 EDT 2014
Thank you very much for your answer.
I am sorry for my awful English and I hope you'll understand what I am
writing.
I read the email you sent and I tried to build my reader following the
instructions provided here :
https://code.google.com/p/unofficial-paraview-dev-install/wiki/vtkPOFFReaderBuilds
First of all, I downloaded this archive :
ParaView-4.1.0-win64-complete_dev-r2.exe
<http://sourceforge.net/projects/bluecfd-sc/files/unofficial-paraview-dev-install/ParaView-4.1.0/ParaView-4.1.0-win64-complete_dev-r2.exe/download>
Then I installed Qt 4.8.2 from here :
https://code.google.com/p/qt-msvc-installer/. Finally when I am trying to
configure my reader with the CMake GUI, the QT_MAKE_EXECUTABLE can't be
found even if I select qmake.exe directly from the path.
<http://sourceforge.net/projects/bluecfd-sc/files/unofficial-paraview-dev-install/ParaView-4.1.0/ParaView-4.1.0-win64-complete_dev-r2.exe/download>
In fact I am a beginner and I don't really know how to use CMake. I
modified the CMakeLists.txt that I found here :
http://sourceforge.net/p/of-interfaces/code/HEAD/tree/trunk/vtkPOFFReader/
but I am not sure about what I wrote. My CMakeLists file is joined with
this message.
Besides, I noticed that when I am executing
*qt-win64-opensource-4.8.2-vs2008.exe,
*a dialog box with the following message is opened :
*A installation of Visual Studio 2008 was not found in the registry ,
guessing path...*
In spite of that, the installation seems to work perfectly fine but : I
have Visual C++ Express 2008 on my computer so is it normal to get this
message ?
To finish, I would like to ask you one last question :
Given I didn't develop any GUI feature for my reader, do I still need QT ?
I thank you again for your help.
Jérémy
2014-08-08 18:49 GMT+02:00 Bruno Santos <bruno.santos at bluecape.com.pt>:
> Greetings Jérémy,
>
> If you had provided the XML file, it would have been a bit easier to
> diagnose this ourselves.
> Nonetheless, it seems to me that the issue is that the class/library
> "vtkPTecplotBinaryReader" is simply not loadable. A bit of searching online
> and in ParaView's source code leads me to believe that only the class
> "vtkTecplotReader" is available for loading through an XML only plug-in.
>
> If the class "vtkPTecplotBinaryReader" is a custom library you've
> built/created from source code, then have a look at a recent email I sent
> to this very same mailing list:
> http://public.kitware.com/pipermail/paraview/2014-August/031817.html
>
> Best regards,
> Bruno
>
>
> On 05-08-2014 15:48, Jérémy Santina wrote:
>
> Hello,
>
> I have written my own reader for ParaView and I am facing with some
> issues.
>
> My version of ParaView is 4.1 for Windows-64 bit and I didn't build it
> from sources.
>
> As the wiki
> <http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_a_Reader>
> describes, I wrote a Server Manager XML file.
> Then I set the environment flag PV_PLUGIN_DEBUG.
>
> Everything seems to work fine when I load the reader with Plugin Manager
> as the output messages dialog box indicates :
>
> ***************************************************
>
> Attempting to load
> C:\Users\Windows\Documents\Travail\ParaviewProject\VTKReaders\Plugin\TecplotBinaryReader.xml
>
> Loading XML plugin
>
> Plugin instance located successfully. Now loading components from the
> plugin instance based on the interfaces it implements.
>
> ----------------------------------------------------------------
>
> Plugin Information:
>
> Name : TecplotBinaryReader
>
> Version : 1.0
>
> ReqOnServer : 1
>
> ReqOnClient : 0
>
> ReqPlugins :
>
> ServerManager Plugin : Yes
>
> Python Plugin : No
>
> But when I try to open a file, ParaView crashes and I get the following
> error message :
>
> ERROR: In
> C:\DBD\pvs-x64\paraview\src\paraview\ParaViewCore\ServerImplementation\Core\vtkSIProxy.cxx,
> line 307
>
> vtkSISourceProxy (000000000B340ED0): Failed to create
> vtkPTecplotBinaryReader. Aborting for debugging purposes.
>
>
> What am I doing wrong ?
>
>
> Thanks in advance for your help.
>
>
> Jérémy
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:http://public.kitware.com/mailman/listinfo/paraview
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140811/01a43355/attachment-0001.html>
-------------- next part --------------
#/*=========================================================================
#
# Copyright (c) 2008-2010 Takuya OSHIMA <oshima at eng.niigata-u.ac.jp>.
# All rights reserved.
# See License_v1.2.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the above copyright notice for more information.
#
#=========================================================================*/
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
# Find a ParaView build first in order to get its configuration
IF(ParaView_SOURCE_DIR)
SET(INSOURCE_PLUGIN TRUE)
ELSE()
SET(INSOURCE_PLUGIN FALSE)
FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})
ENDIF()
# Construct version number string and check
IF(NOT DEFINED PARAVIEW_VERSION)
SET(PARAVIEW_VERSION "${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR}")
ENDIF()
IF(PARAVIEW_VERSION VERSION_LESS "3.10")
MESSAGE(FATAL_ERROR "ParaView version ${PARAVIEW_VERSION} is too old."
" The package only supports ParaView 3.10 or later.")
ENDIF()
IF(NOT INSOURCE_PLUGIN)
# Set default installation directory
IF(PARAVIEW_LIBRARY_DIRS)
IF(CMAKE_INSTALL_PREFIX STREQUAL "/usr/local"
OR CMAKE_INSTALL_PREFIX STREQUAL "C:/Program Files/Project"
OR CMAKE_INSTALL_PREFIX STREQUAL "C:/Program Files (x86)/Project")
IF(DEFINED ENV{PV_PLUGIN_PATH})
# Installing to plugin path defined by PV_PLUGIN_PATH
SET(CMAKE_INSTALL_PREFIX "$ENV{PV_PLUGIN_PATH}")
ELSE()
IF(ParaView_BINARY_DIR MATCHES ".*/bin")
# Installing to the development install of ParaView
IF(APPLE)
SET(CMAKE_INSTALL_PREFIX "${ParaView_BINARY_DIR}/Plugins")
ELSEIF(DEFINED CMAKE_BUILD_TYPE)
SET(CMAKE_INSTALL_PREFIX "${ParaView_BINARY_DIR}/plugins")
ELSE()
# This is not checked yet; may be wrong
SET(CMAKE_INSTALL_PREFIX "${PARAVIEW_BINARY_DIR}/Release/plugins")
ENDIF()
ELSE()
# Installing to the build directory of ParaView
IF(APPLE)
SET(CMAKE_INSTALL_PREFIX "${PARAVIEW_LIBRARY_DIRS}/Plugins")
ELSEIF(DEFINED CMAKE_BUILD_TYPE)
SET(CMAKE_INSTALL_PREFIX "${PARAVIEW_LIBRARY_DIRS}/plugins")
ELSE()
SET(CMAKE_INSTALL_PREFIX "${PARAVIEW_LIBRARY_DIRS}/Release/plugins")
ENDIF()
ENDIF()
ENDIF()
SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" CACHE PATH
"Install path prefix, prepended onto install directories." FORCE)
ENDIF()
ENDIF()
# Set default build type to Release if Makefile-based build system is used
IF(DEFINED CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
FORCE)
ENDIF()
ENDIF()
# THE SERVER SIDE #############################################################
# Add include directories
IF(INSOURCE_PLUGIN)
INCLUDE_DIRECTORIES(${PARAVIEW_INCLUDE_DIRS} ${VTK_INCLUDE_DIR})
ENDIF()
# Server side plugin
ADD_PARAVIEW_PLUGIN(
TecplotBinaryReaderPlugin "1.0"
REQUIRED_ON_SERVER
SERVER_MANAGER_XML TecplotBinaryReader.xml
SERVER_MANAGER_SOURCES vtkPTecplotBinaryReader.cxx
)
# Set installation destination
IF(NOT INSOURCE_PLUGIN)
# ParaView 3.6.2 has been modified after release so that plugins are
# built without manifests if MSVC is used. With the modification
# there seems to be no way to tell exactly whether plugins are built
# as SHARED or MODULE so there seems to be no way to tell whether
# RUNTIME or LIBRARY target should be specified either.
INSTALL(TARGETS TecplotBinaryReaderPlugin DESTINATION "${CMAKE_INSTALL_PREFIX}")
ENDIF()
# THE CLIENT SIDE #############################################################
IF(PARAVIEW_BUILD_QT_GUI)
# Set installation destination
IF(NOT INSOURCE_PLUGIN)
# ParaView 3.6.2 has been modified after release so that plugins
# are built without manifests if MSVC is used. With the
# modification there seems to be no way to tell exactly whether
# plugins are built as SHARED or MODULE so there seems to be no
# way to tell whether RUNTIME or LIBRARY target should be
# specified either.
INSTALL(TARGETS TecplotBinaryReaderPlugin DESTINATION
"${CMAKE_INSTALL_PREFIX}")
ENDIF()
ENDIF()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TecplotBinaryReader.xml
Type: text/xml
Size: 817 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140811/01a43355/attachment-0001.xml>
More information about the ParaView
mailing list