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