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