It sure is: http://paraview.org/Wiki/Plugin_HowTo#Writing_Plugins
Utkarsh On Wed, Jan 7, 2009 at 1:39 PM, Jorge Mario Mazo <[email protected]> wrote: > just to let you all know! > > that worked, thanks all for the help > > and shouldn't this be on the wiki? > > > > On Wed, Jan 7, 2009 at 1:26 PM, Utkarsh Ayachit > <[email protected]> wrote: >> >> Add the following two lines to your CMakeLists and set the >> ParaView_DIR to point to the /Users/jmazo/ParaView-3.4.0/Build >> BEGIN===== >> FIND_PACKAGE(ParaView REQUIRED) >> INCLUDE(${PARAVIEW_USE_FILE}) >> END==== >> >> Utkarsh >> >> >> On Wed, Jan 7, 2009 at 1:18 PM, Jorge Mario Mazo <[email protected]> >> wrote: >> > Hi there >> > I followed you instructions but still did not work >> > here is what I did >> > 1. downloaded paraview-3.4.0.tar.gz, and uncompress it, and got a >> > directory >> > ParaView-3.4.0 >> > yarumal8:ParaView-3.4.0 jmazo$ pwd >> > /Users/jmazo/ParaView-3.4.0 >> > 2. Created the directory Build inside ParaView-3.4.0 >> > in there >> > configured, BUILD_SHARED_LIBS=ON, VTK_USE_RPATH=ON, and PYTHON=ON >> > build with make -j 8 >> > >> > yarumal8:ParaView-3.4.0 jmazo$ pwd >> > /Users/jmazo/ParaView-3.4.0 >> > yarumal8:ParaView-3.4.0 jmazo$ ls Build/ >> > Applications DartConfiguration.tcl Testing >> > CMakeCache.txt Documentation Utilities >> > CMakeFiles Makefile VTK >> > CMakeTmp ParaView3CompileToolsConfig.cmake bin >> > CPackConfig.cmake ParaViewConfig.cmake >> > cmake_install.cmake >> > CPackSourceConfig.cmake ParaViewLibraryDepends.cmake >> > pqClient.adp >> > CTestCustom.ctest Plugins vtkPQConfig.h >> > CTestTestfile.cmake Qt vtkPVConfig.h >> > Common Servers >> > yarumal8:ParaView-3.4.0 jmazo$ >> > >> > 3. set the varialbes >> > >> > yarumal8:ParaView-3.4.0 jmazo$ echo $QTDIR >> > /Users/jmazo/ParaView-3.4.0/Build >> > yarumal8:ParaView-3.4.0 jmazo$ echo $ParaView_DIR >> > /Users/jmazo/ParaView-3.4.0 >> > >> > I had to add PACKAGE_FIND(Qt4) becuase I got the QT4_WRAP error >> > so here is the CMakeList >> > >> > yarumal8:Plugins jmazo$ cat GUIToolBar/CMakeLists.txt >> > FIND_PACKAGE(Qt4) >> > >> > # create a plugin that implements an object panel for a source proxy >> > >> > QT4_WRAP_CPP(MOC_SRCS MyToolBarActions.h) >> > >> > # we implement a pqConePanel.h for the ConeSource >> > ADD_PARAVIEW_ACTION_GROUP(IFACES IFACE_SRCS CLASS_NAME MyToolBarActions >> > GROUP_NAME "ToolBar/MyActions") >> > >> > # create a plugin for this panel >> > ADD_PARAVIEW_PLUGIN(GUIMyToolBar "1.0" >> > GUI_INTERFACES ${IFACES} >> > SOURCES MyToolBarActions.cxx ${MOC_SRCS} >> > ${IFACE_SRCS}) >> > >> > >> > yarumal8:Plugins jmazo$ cmake GUIToolBar >> > -- The C compiler identification is GNU >> > -- The CXX compiler identification is GNU >> > -- Check for working C compiler: /usr/bin/gcc >> > -- Check for working C compiler: /usr/bin/gcc -- works >> > -- Detecting C compiler ABI info >> > -- Detecting C compiler ABI info - done >> > -- Check for working CXX compiler: /usr/bin/c++ >> > -- Check for working CXX compiler: /usr/bin/c++ -- works >> > -- Detecting CXX compiler ABI info >> > -- Detecting CXX compiler ABI info - done >> > -- Looking for Q_WS_X11 >> > -- Looking for Q_WS_X11 - not found. >> > -- Looking for Q_WS_WIN >> > -- Looking for Q_WS_WIN - not found. >> > -- Looking for Q_WS_QWS >> > -- Looking for Q_WS_QWS - not found. >> > -- Looking for Q_WS_MAC >> > -- Looking for Q_WS_MAC - found >> > -- Found Qt-Version 4.3.5 >> > -- Found OpenSSL: /usr/lib/libssl.dylib >> > CMake Error at CMakeLists.txt:8 (ADD_PARAVIEW_ACTION_GROUP): >> > Unknown CMake command "ADD_PARAVIEW_ACTION_GROUP". >> > >> > >> > CMake Warning (dev) in CMakeLists.txt: >> > No cmake_minimum_required command is present. A line of code such as >> > >> > cmake_minimum_required(VERSION 2.6) >> > >> > should be added at the top of the file. The version specified may be >> > lower >> > if you wish to support older CMake versions for this project. For >> > more >> > information run "cmake --help-policy CMP0000". >> > This warning is for project developers. Use -Wno-dev to suppress it. >> > >> > -- Configuring incomplete, errors occurred! >> > >> > ################################################################### >> > >> > :( >> > >> > Still lost >> > >> > thanks a lot >> > >> > On Wed, Jan 7, 2009 at 12:02 PM, Michael Jackson >> > <[email protected]> wrote: >> >> >> >> Here is what we are saying for ParaView 3.4.0 >> >> >> >> 1: Download the source for PV 3.4.0 from the kitware website. >> >> 2: Uncompress the file, this should create a folder ParaView >> >> 3: cd into ParaView >> >> 4: mkdir Build >> >> 5: cd Build >> >> 6: ccmake ../ >> >> 6a: Turn ON SHARED_LIBS >> >> 6b: [c]onfigure >> >> 6c: [g]enerate >> >> 7: make ( Wait a long time for the build. use the -jx flag for make to >> >> speed up the compile) >> >> 8: You are done with paraview build. DO NOT "install" paraview >> >> anywhere. >> >> >> >> Assume this was done in /home/jmazo/paraview/Build >> >> export QTDIR=/home/jmazo/paraview/Build >> >> >> >> Now try to build your plugin. Qt and ParaView specific macros should be >> >> found. >> >> >> >> If you are building ParaView anyway you may want to consider having >> >> your >> >> plugin build as part of the ParaView build. >> >> >> >> --- >> >> Mike Jackson www.bluequartz.net >> >> >> >> >> >> >> >> On Jan 7, 2009, at 11:50 AM, Jorge Mario Mazo wrote: >> >> >> >>> hi there >> >>> so what you are saying is that I need the cvs version of paraview? >> >>> >> >>> I tried building paraview with sources 3.4.0 in >> >>> /home/jmazo/parasrc >> >>> >> >>> then set the variable to /home/jmazo/parasrc >> >>> >> >>> then tried to build a plugin but I still get the QT error, so I added >> >>> find_package(Qt4) >> >>> >> >>> but I still get the paraview errors >> >>> >> >>> thanks in advance, I'm going to try with the cvs version >> >>> >> >>> On Wed, Jan 7, 2009 at 9:52 AM, Utkarsh Ayachit >> >>> <[email protected]> wrote: >> >>> Jorge, >> >>> >> >>> First of, you cannot build new plugins using an installed ParaView (at >> >>> for ParaView 3.4.* and earlier, it should work with CVS ParaView). You >> >>> need to download the source and build ParaView from scartch. Then set >> >>> the ParaView_DIR to the directory in which you've built ParaView. >> >>> >> >>> Utkarsh >> >>> >> >>> On Tue, Jan 6, 2009 at 5:50 PM, Jorge Mario Mazo >> >>> <[email protected]> >> >>> wrote: >> >>> > hi there >> >>> > >> >>> > I did the find >> >>> > >> >>> > find / -name ParaViewConfig.cmake >> >>> > /Users/jmazo/Desktop/paraview/ParaViewConfig.cmake >> >>> > >> >>> > so I set >> >>> > >> >>> > yarumal8:Plugins jmazo$ export ParaView_DIR=/Users/jmazo/ >> >>> > Desktop/paraview >> >>> > >> >>> > but I get the same error >> >>> > >> >>> > Unknown CMake command "ADD_PARAVIEW_ACTION_GROUP". >> >>> > >> >>> > I'm running ccmake on >> >>> > >> >>> > /Users/jmazo/Desktop/fofo/ParaView-3.4.0/Examples/Plugins >> >>> > >> >>> > >> >>> > >> >>> > and when I did make install I set the dir to >> >>> > >> >>> > /Users/jmazo/gato >> >>> > >> >>> > I tried setting ParaView_DIR to >> >>> > >> >>> > /Users/jmazo/gato >> >>> > /Users/jmazo/Desktop/paraview/ >> >>> > /Users/jmazo/Desktop/fofo/ParaView-3.4.0 >> >>> > >> >>> > >> >>> > but I got the same error on all cases >> >>> > >> >>> > any ideas >> >>> > >> >>> > >> >>> > thanks >> >>> > >> >>> > >> >>> > On Tue, Jan 6, 2009 at 4:57 PM, Michael Jackson >> >>> > <[email protected]> wrote: >> >>> >> >> >>> >> So you installed ParaView 3.4 into /Users/jmazo/gato? >> >>> >> >> >>> >> then ParaView_DIR should be /Users/jmazo/gato >> >>> >> >> >>> >> I think.. >> >>> >> >> >>> >> Also, keep the discussion on list in case someone else wants to >> >>> >> help >> >>> >> out.. >> >>> >> >> >>> >> --- >> >>> >> Mike Jackson www.bluequartz.net >> >>> >> >> >>> >> >> >>> >> >> >>> >> On Jan 6, 2009, at 4:39 PM, Jorge Mario Mazo wrote: >> >>> >> >> >>> >>> Hi there >> >>> >>> and sorry for the bothering >> >>> >>> >> >>> >>> >> >>> >>> I did the find >> >>> >>> >> >>> >>> find / -name ParaViewConfig.cmake >> >>> >>> /Users/jmazo/Desktop/paraview/ParaViewConfig.cmake >> >>> >>> >> >>> >>> so I set >> >>> >>> >> >>> >>> yarumal8:Plugins jmazo$ export >> >>> >>> ParaView_DIR=/Users/jmazo/Desktop/paraview >> >>> >>> >> >>> >>> but I get the same error >> >>> >>> >> >>> >>> Unknown CMake command "ADD_PARAVIEW_ACTION_GROUP". >> >>> >>> >> >>> >>> I'm running ccmake on >> >>> >>> >> >>> >>> /Users/jmazo/Desktop/fofo/ParaView-3.4.0/Examples/Plugins >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> and when I did make install I set the dir to >> >>> >>> >> >>> >>> /Users/jmazo/gato >> >>> >>> >> >>> >>> arumal8:gato jmazo$ pwd >> >>> >>> /Users/jmazo/gato >> >>> >>> yarumal8:gato jmazo$ ls >> >>> >>> bin include lib plugins >> >>> >>> >> >>> >>> >> >>> >>> thank you very much for all your help >> >>> >>> On Tue, Jan 6, 2009 at 4:24 PM, Michael Jackson >> >>> >>> <[email protected]> wrote: >> >>> >>> You need to set the environment variable "ParaView_DIR" to the >> >>> >>> correct >> >>> >>> directory. >> >>> >>> >> >>> >>> --- >> >>> >>> Mike Jackson www.bluequartz.net >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> On Jan 6, 2009, at 4:21 PM, Jorge Mario Mazo wrote: >> >>> >>> >> >>> >>> thanks for the quick answer >> >>> >>> but I get this error now >> >>> >>> ############################################################ >> >>> >>> CMake Error at CMakeLists.txt:4 (INCLUDE): >> >>> >>> i >> >>> >>> nclude could not find load file: >> >>> >>> >> >>> >>> /ParaViewConfig.cmake >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> CMake Error at CMakeLists.txt:20 (ADD_PARAVIEW_ACTION_GROUP): >> >>> >>> Unknown CMake command "ADD_PARAVIEW_ACTION_GROUP". >> >>> >>> #################################### >> >>> >>> >> >>> >>> a find gave me this: >> >>> >>> find / -name ParaViewConfig.cmake >> >>> >>> /Users/jmazo/Desktop/paraview/ParaViewConfig.cmake >> >>> >>> >> >>> >>> so moved the file to / and now I get >> >>> >>> >> >>> >>> >> >>> >>> CMake Error at CMakeLists.txt:20 (ADD_PARAVIEW_ACTION_GROUP): >> >>> >>> Unknown CMake command "ADD_PARAVIEW_ACTION_GROUP". >> >>> >>> >> >>> >>> >> >>> >>> the CMakeLists.txt looks like this >> >>> >>> ########################################### >> >>> >>> IF (DEFINED ParaView_BINARY_DIR) >> >>> >>> INCLUDE(${ParaView_BINARY_DIR}/ParaViewConfig.cmake) >> >>> >>> ELSE (DEFINED ParaView_BINARY_DIR) >> >>> >>> INCLUDE($ENV{ParaView_DIR}/ParaViewConfig.cmake) >> >>> >>> ENDIF (DEFINED ParaView_BINARY_DIR) >> >>> >>> PROJECT(RoboMetClientPlugin) >> >>> >>> >> >>> >>> FIND_PACKAGE(Qt4) >> >>> >>> IF(QT4_FOUND) >> >>> >>> >> >>> >>> INCLUDE(${QT_USE_FILE}) >> >>> >>> #-- All your Qt4 dependent code in here. >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> ################################################CMAKELists.txt################# >> >>> >>> # create a plugin that implements an object panel for a source >> >>> >>> proxy >> >>> >>> >> >>> >>> QT4_WRAP_CPP(MOC_SRCS MyToolBarActions.h) >> >>> >>> >> >>> >>> # we implement a pqConePanel.h for the ConeSource >> >>> >>> ADD_PARAVIEW_ACTION_GROUP(IFACES IFACE_SRCS CLASS_NAME >> >>> >>> MyToolBarActions >> >>> >>> GROUP_NAME "ToolBar/MyActions") >> >>> >>> >> >>> >>> # create a plugin for this panel >> >>> >>> ADD_PARAVIEW_PLUGIN(GUIMyToolBar "1.0" >> >>> >>> GUI_INTERFACES ${IFACES} >> >>> >>> SOURCES MyToolBarActions.cxx ${MOC_SRCS} >> >>> >>> ${IFACE_SRCS}) >> >>> >>> >> >>> >>> ENDIF (QT4_FOUND) >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> ########################################################################################### >> >>> >>> >> >>> >>> >> >>> >>> On Tue, Jan 6, 2009 at 4:14 PM, Michael Jackson >> >>> >>> <[email protected]> wrote: >> >>> >>> IF (DEFINED ParaView_BINARY_DIR) >> >>> >>> INCLUDE(${ParaView_BINARY_DIR}/ParaViewConfig.cmake) >> >>> >>> ELSE (DEFINED ParaView_BINARY_DIR) >> >>> >>> INCLUDE($ENV{ParaView_DIR}/ParaViewConfig.cmake) >> >>> >>> ENDIF (DEFINED ParaView_BINARY_DIR) >> >>> >>> PROJECT(RoboMetClientPlugin) >> >>> >>> >> >>> >>> FIND_PACKAGE(Qt4) >> >>> >>> IF(QT4_FOUND) >> >>> >>> >> >>> >>> INCLUDE(${QT_USE_FILE}) >> >>> >>> #-- All your Qt4 dependent code in here. >> >>> >>> >> >>> >>> ################################################CMAKELists >> >>> >>> .txt################# >> >>> >>> # create a plugin that implements an object panel for a source >> >>> >>> proxy >> >>> >>> >> >>> >>> QT4_WRAP_CPP(MOC_SRCS MyToolBarActions.h) >> >>> >>> >> >>> >>> # we implement a pqConePanel.h for the ConeSource >> >>> >>> ADD_PARAVIEW_ACTION_GROUP(IFACES IFACE_SRCS CLASS_NAME >> >>> >>> MyToolBarActions >> >>> >>> GROUP_NAME "ToolBar/MyActions") >> >>> >>> >> >>> >>> # create a plugin for this panel >> >>> >>> ADD_PARAVIEW_PLUGIN(GUIMyToolBar "1.0" >> >>> >>> GUI_INTERFACES ${IFACES} >> >>> >>> SOURCES MyToolBarActions.cxx ${MOC_SRCS} >> >>> >>> ${IFACE_SRCS}) >> >>> >>> #############################################ENDIF (QT4_FOUND) >> >>> >>> >> >>> >>> _________________________________________________________ >> >>> >>> Mike Jackson [email protected] >> >>> >>> BlueQuartz Software www.bluequartz.net >> >>> >>> Principal Software Engineer Dayton, Ohio >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> On Jan 6, 2009, at 4:02 PM, Jorge Mario Mazo wrote: >> >>> >>> >> >>> >>> Hi there and thanks >> >>> >>> since I'm very new to the paraview and cmake build workd, could >> >>> >>> you >> >>> >>> tell >> >>> >>> me where should I put that >> >>> >>> >> >>> >>> I'm trying to compile the GUITollbar example >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> ################################################CMAKELists.txt################# >> >>> >>> # create a plugin that implements an object panel for a source >> >>> >>> proxy >> >>> >>> >> >>> >>> QT4_WRAP_CPP(MOC_SRCS MyToolBarActions.h) >> >>> >>> >> >>> >>> # we implement a pqConePanel.h for the ConeSource >> >>> >>> ADD_PARAVIEW_ACTION_GROUP(IFACES IFACE_SRCS CLASS_NAME >> >>> >>> MyToolBarActions >> >>> >>> GROUP_NAME "ToolBar/MyActions") >> >>> >>> >> >>> >>> # create a plugin for this panel >> >>> >>> ADD_PARAVIEW_PLUGIN(GUIMyToolBar "1.0" >> >>> >>> GUI_INTERFACES ${IFACES} >> >>> >>> SOURCES MyToolBarActions.cxx ${MOC_SRCS} >> >>> >>> ${IFACE_SRCS}) >> >>> >>> ############################################# >> >>> >>> >> >>> >>> wich is located in >> >>> >>> >> >>> >>> >> >>> >>> /Users/jmazo/Desktop/fofo/ParaView-3.4.0/Examples/Plugins/GUIToolBar >> >>> >>> >> >>> >>> ######################### >> >>> >>> >> >>> >>> >> >>> >>> On Tue, Jan 6, 2009 at 3:14 PM, Michael Jackson >> >>> >>> <[email protected]> wrote: >> >>> >>> You probably want something like: >> >>> >>> >> >>> >>> IF (DEFINED ParaView_BINARY_DIR) >> >>> >>> INCLUDE(${ParaView_BINARY_DIR}/ParaViewConfig.cmake) >> >>> >>> ELSE (DEFINED ParaView_BINARY_DIR) >> >>> >>> INCLUDE($ENV{ParaView_DIR}/ParaViewConfig.cmake) >> >>> >>> ENDIF (DEFINED ParaView_BINARY_DIR) >> >>> >>> PROJECT(RoboMetClientPlugin) >> >>> >>> >> >>> >>> FIND_PACKAGE(Qt4) >> >>> >>> IF(QT4_FOUND) >> >>> >>> >> >>> >>> INCLUDE(${QT_USE_FILE}) >> >>> >>> #-- All your Qt4 dependent code in here. >> >>> >>> >> >>> >>> ENDIF (QT4_FOUND) >> >>> >>> >> >>> >>> _________________________________________________________ >> >>> >>> Mike Jackson [email protected] >> >>> >>> BlueQuartz Software www.bluequartz.net >> >>> >>> Principal Software Engineer Dayton, Ohio >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> On Jan 6, 2009, at 1:03 PM, Jorge Mario Mazo wrote: >> >>> >>> >> >>> >>> Hi there >> >>> >>> I'm very new to paraview, I managed to compile paraview on linux >> >>> >>> and >> >>> >>> mac >> >>> >>> but when I try to compile a plugin y get the infamous Unknown >> >>> >>> CMake >> >>> >>> command "QT4_WRAP_CPP". error. >> >>> >>> >> >>> >>> I read on this list that I have to setup the variable >> >>> >>> QT_QMAKE_EXECUTABLE >> >>> >>> >> >>> >>> the problem is that I dont know how and were to set it on >> >>> >>> /Applications/CMake >> >>> >>> 2.6-2.app/Contents/share/cmake-2.6/Modules/FindQt4.cmake >> >>> >>> >> >>> >>> like this >> >>> >>> SET(QT_QMAKE_EXECUTABLE /usr/bin/qmake-4.3) >> >>> >>> at the end of the file >> >>> >>> >> >>> >>> but still does not work >> >>> >>> >> >>> >>> one problem is that man cmake skills are very near to 0 >> >>> >>> >> >>> >>> any help would be appreciate it. >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> qmake -v >> >>> >>> QMake version 2.01a >> >>> >>> Using Qt version 4.3.5 in /Library/Frameworks >> >>> >>> _______________________________________________ >> >>> >>> ParaView mailing list >> >>> >>> [email protected] >> >>> >>> http://www.paraview.org/mailman/listinfo/paraview >> >>> >>> >> >>> >>> >> >>> >>> _______________________________________________ >> >>> >>> ParaView mailing list >> >>> >>> [email protected] >> >>> >>> http://www.paraview.org/mailman/listinfo/paraview >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >>> >> >>> >> >> >>> >> _______________________________________________ >> >>> >> ParaView mailing list >> >>> >> [email protected] >> >>> >> http://www.paraview.org/mailman/listinfo/paraview >> >>> > >> >>> > >> >>> > _______________________________________________ >> >>> > ParaView mailing list >> >>> > [email protected] >> >>> > http://www.paraview.org/mailman/listinfo/paraview >> >>> > >> >>> > >> >>> >> >> >> >> _______________________________________________ >> >> ParaView mailing list >> >> [email protected] >> >> http://www.paraview.org/mailman/listinfo/paraview >> > >> > > > _______________________________________________ ParaView mailing list [email protected] http://www.paraview.org/mailman/listinfo/paraview
