CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   How to compile VTK with Qt support (http://www.cfd-online.com/Forums/openfoam/64288-how-compile-vtk-qt-support.html)

nuovodna May 6, 2009 07:02

How to compile VTK with Qt support
 
Hi, i 'd like to install Engrid to produce a native OpenFOAM format mesh, but i must have VTK 5.4 with QT4 support to compile Engrid itself. What compilation options have i to obtain a successfully building of VTK with QT4 support?

Thanks in advance

henrik May 7, 2009 03:47

2 Attachment(s)
Dear nuovodna,

I managed to compile enGrid based on OF's ThridParty paraview and the vtk included therein. In the process, I hit the very same problem which Oliver and Mike were kind to help me out. See below.

cmake -DCMAKE_INSTALL_PREFIX:PATH=/tmp/VTK-build
-DBUILD_SHARED_LIBS:BOOL=ON -DVTK_USE_GUISUPPORT:BOOL=ON
-DVTK_USE_QVTK:BOOL=ON -DDESIRED_QT_VERSION:STRING=4
-DVTK_USE_GUISUPPORT:BOOL=ON .
make && su -c 'make install'

I also modified OF's paraview build scripts to make the contained vtk GUI-aware. See here Attachment 253

I also made a few modifications to the engrid make sript. See here Attachment 254. Don't forget to set VTKINCDIR and SUBLIBS appropriately.

Please note that I only use /tmp/VTK-build to pick up the include directory during engrid compilation. This is because I haven't tried to figure out how to convince engrid's make to use vtk's cmake files.

I would be very grateful if somebody could post some hints, examples or the answer.

Henrik

olesen May 18, 2009 11:37

Quote:

Originally Posted by henrik (Post 215390)
I managed to compile enGrid based on OF's ThridParty paraview and the vtk included therein.

The latest engrid git version now has a src/build-with-OpenFOAM-paraview.sh script for building against the WM_THIRD_PARTY paraview libraries (you'll still need the Qt support active when building paraview).
It also has a simple 'engridFoam' script to set the LD_LIBRARY_PATH before starting engrid.

nuovodna May 20, 2009 17:02

what is the command to clone engrid git repository?? I cannot find on www thanks

olesen May 22, 2009 02:38

Quote:

Originally Posted by nuovodna (Post 216777)
what is the command to clone engrid git repository?? I cannot find on www thanks

Strange, on the engits website I clicked on ENGRID/Download&Install and reached this page: http://78.140.120.226/cms/index.php?id=10
which states the following:
Quote:

Git access
The command below should check out the latest source code and the manual:

git clone http://engits.com/git/engrid.git

You should be able to find lots of other information about using git on the internet.

andresbh August 12, 2009 08:34

Building errors
 
Hi Olesen,

I ran the build-with-OpenFOAM-paraview.sh script and during make procedure I got the following error

In file included from std_includes.h:34,
from guimainwindow.h:64,
from main.cpp:30:
createvolumemesh.h:31:21: error: nglib.h: No such file or directory
createvolumemesh.h:34:27: error: ngexception.hpp: No such file or directory
make[1]: *** [release/main.o] Error 1
make[1]: Leaving directory `$HOME/OpenFOAM/ThirdParty/engrid/src'
make: *** [release] Error 2

I can perform calculations with OpenFOAM on opensuse 11.0. I need more capabilites for creating bodies inside domains than those delivered by snappy...

I hope you can give me a hand.

thanks in advance
andres

olesen August 12, 2009 08:46

Quote:

Originally Posted by andresbh (Post 226081)
createvolumemesh.h:31:21: error: nglib.h: No such file or directory
createvolumemesh.h:34:27: error: ngexception.hpp: No such file or directory

You seem to be missing the netgen headers or they can't be found.
You'll have to sort this yourself somehow.

andresbh August 12, 2009 10:27

Hi all

I managed to get over the last error but I am still getting another one while running ./build-with-OpenFOAM-paraview.sh

the applications in the thirdparty folder all seem to work properly only engrid is refusing to compile

./usr/bin/ld: cannot find -lQVTK
collect2: ld returned 1 exit status
make[1]: *** [engrid] Error 1
make[1]: Leaving directory `$HOME/OpenFOAM/ThirdParty/engrid/src'
make: *** [release-install] Error 2

does anyone know how to solve this one?

thanks
Andres


All times are GMT -4. The time now is 02:15.