CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Help me How to include VTK library in my own solver (https://www.cfd-online.com/Forums/openfoam-solving/60607-help-me-how-include-vtk-library-my-own-solver.html)

luckyluke April 28, 2005 23:16

I have installed VTK4.4 in my
 
I have installed VTK4.4 in my home directory,i.e. "/u1/yzheng9/VTK/". In my solver several VTK classes are used.

I do it like this. The following is my 'option' file(the old lines are removed here):

EXE_INC = \
-I$(HOME)/VTK \
$(WM_DECOMP_INC)

EXE_LIBS = \
-L$(HOME)/VTK/bin \
-lvtkIO \
-lvtkGraphics \
-lvtkCommon \
$(WM_DECOMP_LIBS) \

Then in the main file of my solve, I have:

#include "IO/vtkUnstructuredGridReader.h"
#include "Graphics/vtkCellDataToPointData.h"
#include "Graphics/vtkContourGrid.h"
#include "Common/vtkPolyData.h"
#include "Common/vtkPoints.h"
#include "Common/vtkIdType.h"
#include "Common/vtkGenericCell.h"

But when I type "wmake", many many errors come out:

could not open file IO/vtkUnstructuredGridReader.h for source file contourInterFoam.C
could not open file Graphics/vtkCellDataToPointData.h for source file contourInterFoam.C
could not open file Graphics/vtkContourGrid.h for source file contourInterFoam.C
could not open file Common/vtkPolyData.h for source file contourInterFoam.C
could not open file Common/vtkPoints.h for source file contourInterFoam.C
could not open file Common/vtkIdType.h for source file contourInterFoam.C
could not open file Common/vtkGenericCell.h for source file contourInterFoam.C

What should I do? I am confused.

Give me a hand.


All times are GMT -4. The time now is 05:27.