[Paraview] Specify value for CMAKE_INSTALL_PREFIX when compiling Catalyst?
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Mon Aug 15 12:47:35 EDT 2016
Hmm okay. I am going to report this as an issue. Clearly there are
some missing links when it comes to building examples with Catalyst
editions.
https://gitlab.kitware.com/paraview/paraview/issues/16823
On Mon, Aug 15, 2016 at 12:13 PM, Christopher Neal
<chrisneal at snumerics.com> wrote:
> When I try that command I see the following after I type ‘make’:
>
> /home/neal/software/ParaView/Examples/Catalyst/CxxOverlappingAMRExample/FEAdaptor.cxx:4:23: fatal error: vtkAMRBox.h: No such file or directory
> #include <vtkAMRBox.h>
> ^
> compilation terminated.
> CxxOverlappingAMRExample/CMakeFiles/CxxOverlappingAMRExampleAdaptor.dir/build.make:62: recipe for target 'CxxOverlappingAMRExample/CMakeFiles/CxxOverlappingAMRExampleAdaptor.dir/FEAdaptor.cxx.o' failed
> make[2]: *** [CxxOverlappingAMRExample/CMakeFiles/CxxOverlappingAMRExampleAdaptor.dir/FEAdaptor.cxx.o] Error 1
> CMakeFiles/Makefile2:124: recipe for target 'CxxOverlappingAMRExample/CMakeFiles/CxxOverlappingAMRExampleAdaptor.dir/all' failed
> make[1]: *** [CxxOverlappingAMRExample/CMakeFiles/CxxOverlappingAMRExampleAdaptor.dir/all] Error 2
> Makefile:83: recipe for target 'all' failed
> make: *** [all] Error 2
>
> It seems like it just can’t find the include directory in the Catalyst edition.
>
>
> On 8/15/16, 12:06 PM, "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com> wrote:
>
> In that case, try the following instead from a clean directory to
> build the examples using the Catalyst edition.
>
> cmake -DParaView_DIR:PATH=/home/neal/software/Catalyst/Catalyst-v5.1.0-Base-Enable-Python-Essentials_build
> -DBUILD_FORTRAN_EXAMPLES:BOOL=ON
> /home/neal/software/ParaView/Examples/Catalyst/
>
>
>
> On Mon, Aug 15, 2016 at 11:44 AM, Christopher Neal
> <chrisneal at snumerics.com> wrote:
> > The catalyst edition was built at: /home/neal/software/Catalyst/Catalyst-v5.1.0-Base-Enable-Python-Essentials_build
> >
> > /home/neal/software/ParaView_build is where I built a version of Paraview with Catalyst, development files, and no gui.
> >
> > On 8/15/16, 11:41 AM, "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com> wrote:
> >
> > Chris,
> >
> > Cool. There's indeed a bug in the install rules. I'll have to it
> > fixed. BTW, I am assuming /home/neal/software/ParaView_build is the
> > direcotory where you build the Catalyst edition, is that correct?
> >
> > On Mon, Aug 15, 2016 at 11:38 AM, Christopher Neal
> > <chrisneal at snumerics.com> wrote:
> > > Hi Utkarsh,
> > >
> > > I pointed to my ParaView_build directory and the examples compile without any errors.
> > >
> > > cmake -DCMAKE_PREFIX_PATH=/home/neal/software/ParaView_build -DBUILD_FORTRAN_EXAMPLES:BOOL=ON /home/neal/software/ParaView/Examples/Catalyst/
> > >
> > > Hope this helps,
> > > Chris Neal
> > >
> > > On 8/15/16, 11:19 AM, "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com> wrote:
> > >
> > > Chris,
> > >
> > > I suspect there's a bug in the "install development files" for a
> > > Catalyst edition. Can you try pointing the ParaView_DIR for the
> > > Catalyst Examples to the Catalyst build directory instead? Does that
> > > work?
> > >
> > > Utkarsh
> > >
> > > On Mon, Aug 15, 2016 at 11:07 AM, Christopher Neal
> > > <chrisneal at snumerics.com> wrote:
> > > > Hi Utkarsh,
> > > >
> > > > I have one more question related to the Catalyst edition. I have compiled the ‘Essentials’ build. I used the command below(for reference) to configure the edition, and everything seems to work out.
> > > >
> > > > ./../Catalyst-v5.1.0-Base-Enable-Python-Essentials/cmake.sh -CMAKE_INSTALL_PREFIX:PATH=/home/neal/software/Catalyst/Catalyst-v5.1.0-Base-Enable-Python-Essentials_build -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON ../Catalyst-v5.1.0-Base-Enable-Python-Essentials
> > > >
> > > > I’m trying to compile the Catalyst examples that are located in the original ParaView source tree using the Catalyst edition. I used the following command to configure the examples:
> > > >
> > > > cmake -DCMAKE_PREFIX_PATH=/home/neal/software/Catalyst/Catalyst-v5.1.0-Base-Enable-Python-Essentials_build -DBUILD_FORTRAN_EXAMPLES:BOOL=ON /home/neal/software/ParaView/Examples/Catalyst/
> > > >
> > > > cmake does not complain when I configure with the command above. But when I type ‘make’ I see an error that a header file cannot be located. It’s a header file that I know for a fact is located in the ‘Essentials’ build directory under …/include/paraview-5.1.
> > > >
> > > > I tried using the -DCMAKE_INCLUDE_PATH=[path to …/include/paraview-5.1] , but cmake tells me that the manually specified variable was not used. The full line that I’m trying to use to configure the examples is:
> > > >
> > > > cmake -DCMAKE_PREFIX_PATH=/home/neal/software/Catalyst/Catalyst-v5.1.0-Base-Enable-Python-Essentials_build -DBUILD_FORTRAN_EXAMPLES:BOOL=ON -DCMAKE_INCLUDE_PATH=/home/neal/software/Catalyst/Catalyst-v5.1.0-Base-Enable-Python-Essentials_build/include/paraview-5.1 /home/neal/software/ParaView/Examples/Catalyst/
> > > >
> > > > Am I not specifying the include path correctly?
> > > >
> > > > Thank you,
> > > > Chris Neal
> > > >
> > > > On 8/15/16, 10:15 AM, "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com> wrote:
> > > >
> > > > Chris,
> > > >
> > > > Some thing like this should do the trick:
> > > >
> > > > > [...]/cmake.sh -DCMAKE_INSTALL_PREFIX:PATH=/tmp/install [... path to Catalyst src ...]
> > > >
> > > > Utkarsh
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Aug 12, 2016 at 5:49 PM, Christopher Neal
> > > > <chrisneal at snumerics.com> wrote:
> > > > > Hi All,
> > > > >
> > > > >
> > > > >
> > > > > I was wondering what the appropriate way to specify a value for the cmake
> > > > > variable CMAKE_INSTALL_PREFIX is when compiling a Catalyst edition. The
> > > > > editions make use of a cmake.sh script, and I’ve just been manually adding
> > > > > the variable to that file because I can’t quite figure out how to tell the
> > > > > script to also use a value for CMAKE_INSTALL_PREFIX that I pass to it.
> > > > >
> > > > > Does anyone have experience with doing this? I ask because I always want to
> > > > > change the install directory to be a different location than the default
> > > > > location in the root directory that Catalyst usually tries to install in.
> > > > >
> > > > >
> > > > > Thank you,
> > > > >
> > > > > Chris Neal
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Powered by www.kitware.com
> > > > >
> > > > > Visit other Kitware open-source projects at
> > > > > http://www.kitware.com/opensource/opensource.html
> > > > >
> > > > > Please keep messages on-topic and check the ParaView Wiki at:
> > > > > http://paraview.org/Wiki/ParaView
> > > > >
> > > > > Search the list archives at: http://markmail.org/search/?q=ParaView
> > > > >
> > > > > Follow this link to subscribe/unsubscribe:
> > > > > http://public.kitware.com/mailman/listinfo/paraview
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
More information about the ParaView
mailing list