<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Ok but it means that you have to include directories from the source distrib as well as directories from the binary distrib.<br>Hence I do no longer see what is the purpose of the development binary distribution.<br><br>&gt; From: mike.jackson@bluequartz.net<br>&gt; To: cmake@cmake.org<br>&gt; Date: Tue, 12 Oct 2010 10:22:00 -0400<br>&gt; Subject: Re: [CMake] Reusing configuration<br>&gt; <br>&gt; I usually have something along these lines in my ParaView Plugins  <br>&gt; CMake files:<br>&gt; <br>&gt; # --------------------------------------------------------------------<br>&gt; INCLUDE_DIRECTORIES( ${VTK_INCLUDE_DIR}<br>&gt;                       ${ParaView_SOURCE_DIR}/Utilities/VTKClientServer<br>&gt;                       ${ParaView_BINARY_DIR}/Utilities/VTKClientServer<br>&gt;                       ${ParaView_SOURCE_DIR}/Servers/Common<br>&gt;                    )<br>&gt; Otherwise I had the same issues.<br>&gt; ___________________________________________________________<br>&gt; Mike Jackson                      www.bluequartz.net<br>&gt; Principal Software Engineer       mike.jackson@bluequartz.net<br>&gt; BlueQuartz Software               Dayton, Ohio<br>&gt; <br>&gt; <br>&gt; <br>&gt; On Oct 12, 2010, at 10:15 AM, Fred Fred wrote:<br>&gt; <br>&gt; &gt; Actually the file is included:<br>&gt; &gt;<br>&gt; &gt; find /ParaView-3.8.1/VTK -name vtkMarchingCubesCases.h<br>&gt; &gt; /ParaView-3.8.1/VTK/Filtering/vtkMarchingCubesCases.h<br>&gt; &gt;<br>&gt; &gt; this is why I think the problem comes from how cmake build makefiles  <br>&gt; &gt; since the last line should indicate it where to find the header files:<br>&gt; &gt;<br>&gt; &gt; INCLUDE_DIRECTORIES(/ParaView-3.8.1/VTK)<br>&gt; &gt;<br>&gt; &gt; &gt; Subject: Re: [CMake] Reusing configuration<br>&gt; &gt; &gt; From: themiwi@gmail.com<br>&gt; &gt; &gt; Date: Tue, 12 Oct 2010 13:45:32 +0200<br>&gt; &gt; &gt; CC: cmake@cmake.org<br>&gt; &gt; &gt; To: stan1313@hotmail.fr<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; You'll have to ask on the ParaView list as to why this file isn't  <br>&gt; &gt; included in the development package. I'm pretty sure this is a bug.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Michael<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On 12. Oct, 2010, at 9:42 , Fred Fred wrote:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; I still have a problem.<br>&gt; &gt; &gt; &gt; Now my CMakeFiles.txt looks like this:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; SET(ParaView_DIR /ParaView-Development-3.8.1-Linux-i686/lib/ <br>&gt; &gt; paraview-3.8)<br>&gt; &gt; &gt; &gt; FIND_PACKAGE(ParaView REQUIRED)<br>&gt; &gt; &gt; &gt; INCLUDE(${PARAVIEW_USE_FILE})<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; ADD_PARAVIEW_PLUGIN(MyPlugin "1.0"<br>&gt; &gt; &gt; &gt; SERVER_MANAGER_XML MyPlugin.xml<br>&gt; &gt; &gt; &gt; SERVER_MANAGER_SOURCES vtkMyPlugin.cxx)<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; INCLUDE_DIRECTORIES(/ParaView-3.8.1/VTK)<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; I just extracted the VTK hierarchy from the source distrib but I  <br>&gt; &gt; suspect that cmake does not find the files because it lacks building  <br>&gt; &gt; information.<br>&gt; &gt; &gt; &gt; How to cope with this?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Error trace:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; [ 14%] Generating vtkSMXML_MyPlugin.h<br>&gt; &gt; &gt; &gt; -- Generate module: MyPlugin<br>&gt; &gt; &gt; &gt; [ 28%] Generating vtkMyPluginClientServer.cxx<br>&gt; &gt; &gt; &gt; Scanning dependencies of target MyPlugin<br>&gt; &gt; &gt; &gt; [ 42%] Building CXX object CMakeFiles/MyPlugin.dir/vtkMyPlugin.o<br>&gt; &gt; &gt; &gt; /vtk/vtkLocal/MyPlugin2/vtkMyPlugin.cxx:26:35: error:  <br>&gt; &gt; vtkMarchingCubesCases.h: Aucun fichier ou dossier de ce type<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; From: stan1313@hotmail.fr<br>&gt; &gt; &gt; &gt; To: themiwi@gmail.com<br>&gt; &gt; &gt; &gt; Date: Mon, 11 Oct 2010 17:29:37 +0200<br>&gt; &gt; &gt; &gt; CC: cmake@cmake.org<br>&gt; &gt; &gt; &gt; Subject: Re: [CMake] Reusing configuration<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Of course, I did it actually but I hoped that the cmake  <br>&gt; &gt; configuration could handle it by itself.<br>&gt; &gt; &gt; &gt; Anyway, let us go to a more complicated issue: my plugin uses  <br>&gt; &gt; VTK variable and thus requires including vtk header files. I suppose  <br>&gt; &gt; that any "serious" plugin code would do it.<br>&gt; &gt; &gt; &gt; The problem is I get a compilation erreur since the file does  <br>&gt; &gt; not exist in the dev binary distrib.<br>&gt; &gt; &gt; &gt; So does it mean that it is necessary to instal the PV VTK dir too?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;&gt; Subject: Re: [CMake] Reusing configuration<br>&gt; &gt; &gt; &gt;&gt; From: themiwi@gmail.com<br>&gt; &gt; &gt; &gt;&gt; Date: Mon, 11 Oct 2010 17:18:45 +0200<br>&gt; &gt; &gt; &gt;&gt; CC: cmake@cmake.org<br>&gt; &gt; &gt; &gt;&gt; To: stan1313@hotmail.fr<br>&gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt;&gt; Ahh, sorry. I didn't look at the error closely. Try this:<br>&gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt;&gt; $ export LD_LIBRARY_PATH=/ParaView-Development-3.8.1-Linux-i686/ <br>&gt; &gt; lib/paraview-3.8:$LD_LIBRARY_PATH<br>&gt; &gt; &gt; &gt;&gt; $ make<br>&gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt;&gt; Michael<br>&gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt;&gt; On 11. Oct, 2010, at 17:09 , Fred Fred wrote:<br>&gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt; Actually I did already make the test, ie putting this line on  <br>&gt; &gt; top, but it does not change anything.<br>&gt; &gt; &gt; &gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt; Subject: Re: [CMake] Reusing configuration<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt; From: themiwi@gmail.com<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt; Date: Mon, 11 Oct 2010 17:04:22 +0200<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt; CC: cmake@cmake.org<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt; To: stan1313@hotmail.fr<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt; Well, the line with the "set(ParaView_DIR ...)" should be  <br>&gt; &gt; before the FIND_PACKAGE call, although one usually sets this  <br>&gt; &gt; variable only in the cache if CMake isn't able ParaView on its own.<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt; Michael<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt; On 11. Oct, 2010, at 16:54 , Fred Fred wrote:<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; Yes, actually I did not remember that install binaries were  <br>&gt; &gt; now available.<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; So I did it, managed to build my plugin Makefile but got an  <br>&gt; &gt; error at make time:<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; [ 14%] Generating vtkSMXML_MyPlugin.h<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; /ParaView-Development-3.8.1-Linux-i686/bin/kwProcessXML:  <br>&gt; &gt; error while loading shared libraries: libvtkCommon.so.pv3.8: cannot  <br>&gt; &gt; open shared object file: No such file or directory<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; I followed the advice on http://www.paraview.org/Wiki/ParaView:Plugin_Deployment_with_Development_Installs<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; and particularly "set their ParaView_DIR to the development  <br>&gt; &gt; when configuring with CMake"<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; My CmakeLists.txt is now:<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; FIND_PACKAGE(ParaView REQUIRED)<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; INCLUDE(${PARAVIEW_USE_FILE})<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; ADD_PARAVIEW_PLUGIN(MyPlugin "1.0"<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; SERVER_MANAGER_XML MyPlugin.xml<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; SERVER_MANAGER_SOURCES vtkMyPlugin.cxx)<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; SET(ParaView_DIR /ParaView-Development-3.8.1-Linux-i686/lib/ <br>&gt; &gt; paraview-3.8)<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; Any help?<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; Subject: Re: [CMake] Reusing configuration<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; From: themiwi@gmail.com<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; Date: Mon, 11 Oct 2010 16:02:51 +0200<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; CC: drescherjm@gmail.com; cmake@cmake.org<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; To: stan1313@hotmail.fr<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; On 11. Oct, 2010, at 15:47 , Fred Fred wrote:<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt; So it is impossible to just extract the options from the  <br>&gt; &gt; environment config data.<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt; But you suggestion is fine although it requires some work  <br>&gt; &gt; lol<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt; Thx<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Date: Mon, 11 Oct 2010 09:42:24 -0400<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Subject: Re: [CMake] Reusing configuration<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; From: drescherjm@gmail.com<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; To: stan1313@hotmail.fr<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; CC: cmake@cmake.org<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On Mon, Oct 11, 2010 at 9:32 AM, Fred Fred &lt;stan1313@hotmail.fr <br>&gt; &gt; &gt; wrote:<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Hello,<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I suppose this question has already been asked here but  <br>&gt; &gt; I did not find any<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; trace of it, including in the wiki.<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; My students want to install PV at home and they need to  <br>&gt; &gt; build it from source<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; in order to extend it.<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; They do have a version installed at the university and,  <br>&gt; &gt; since configuring<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; and choosing the right options is not that easy, I  <br>&gt; &gt; wonder if there is a way<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; to give them a configuration file so as for them to have  <br>&gt; &gt; the options<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; selection list prefilled?<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The big problem with that is the install must be in the  <br>&gt; &gt; same folder<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; and the dependencies must be the same. It may be easier  <br>&gt; &gt; to create a<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; script to start cmake-gui with a command line containing  <br>&gt; &gt; the options<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; you will have as default.<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; John<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; You can give them a cache-initializer file which they pass  <br>&gt; &gt; to cmake using the -S flag. The file contains "set(... CACHE ...)"  <br>&gt; &gt; statements.<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; OTOH, you can also download the "development files" for the  <br>&gt; &gt; binary distributions of ParaView from http://paraview.org/paraview/resources/software.html(under <br>&gt; &gt;  "ParaView Development Installation").<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>&gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; Michael<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; --<br>&gt; &gt; &gt; There is always a well-known solution to every human problem --  <br>&gt; &gt; neat, plausible, and wrong.<br>&gt; &gt; &gt; H. L. Mencken<br>&gt; &gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Powered by www.kitware.com<br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.cmake.org/mailman/listinfo/cmake<br>&gt; <br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt; <br>&gt; Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>&gt; <br>&gt; Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br>&gt; <br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; http://www.cmake.org/mailman/listinfo/cmake<br>                                               </body>
</html>