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

Jorge Mario Mazo jmm.mecanica at gmail.com
Tue Jan 6 16:02:08 EST 2009


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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090106/40a36f20/attachment.htm>


More information about the ParaView mailing list