[Paraview] eternal Unknown CMake command "QT4_WRAP_CPP". error

Jorge Mario Mazo jmm.mecanica at gmail.com
Wed Jan 7 11:50:43 EST 2009


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 <utkarsh.ayachit at kitware.com
> 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 <jmm.mecanica at gmail.com>
> 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
> > <mike.jackson at bluequartz.net> 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
> >>> <mike.jackson at bluequartz.net> 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
> >>> <mike.jackson at bluequartz.net> 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                  mike.jackson at bluequartz.net
> >>> 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
> >>> <mike.jackson at bluequartz.net> 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                  mike.jackson at bluequartz.net
> >>> 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
> >>> ParaView at paraview.org
> >>> http://www.paraview.org/mailman/listinfo/paraview
> >>>
> >>>
> >>> _______________________________________________
> >>> ParaView mailing list
> >>> ParaView at paraview.org
> >>> http://www.paraview.org/mailman/listinfo/paraview
> >>>
> >>>
> >>>
> >>>
> >>
> >> _______________________________________________
> >> ParaView mailing list
> >> ParaView at paraview.org
> >> http://www.paraview.org/mailman/listinfo/paraview
> >
> >
> > _______________________________________________
> > ParaView mailing list
> > ParaView at paraview.org
> > http://www.paraview.org/mailman/listinfo/paraview
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090107/a6191c73/attachment-0001.htm>


More information about the ParaView mailing list