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

Michael Jackson mike.jackson at bluequartz.net
Tue Jan 6 15:14:24 EST 2009


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



More information about the ParaView mailing list