CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

How to compile VTK with Qt support

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2009, 07:02
Default How to compile VTK with Qt support
  #1
Senior Member
 
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17
nuovodna is on a distinguished road
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
nuovodna is offline   Reply With Quote

Old   May 7, 2009, 03:47
Default
  #2
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
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 buildParaViewFunctions.gz

I also made a few modifications to the engrid make sript. See here Makefile.gz. 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
henrik is offline   Reply With Quote

Old   May 18, 2009, 11:37
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by henrik View Post
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.
olesen is offline   Reply With Quote

Old   May 20, 2009, 17:02
Default
  #4
Senior Member
 
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17
nuovodna is on a distinguished road
what is the command to clone engrid git repository?? I cannot find on www thanks
nuovodna is offline   Reply With Quote

Old   May 22, 2009, 02:38
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by nuovodna View Post
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.
olesen is offline   Reply With Quote

Old   August 12, 2009, 08:34
Default Building errors
  #6
New Member
 
andres
Join Date: Aug 2009
Posts: 15
Rep Power: 16
andresbh is on a distinguished road
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
andresbh is offline   Reply With Quote

Old   August 12, 2009, 08:46
Default
  #7
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by andresbh View Post
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.
olesen is offline   Reply With Quote

Old   August 12, 2009, 10:27
Default
  #8
New Member
 
andres
Join Date: Aug 2009
Posts: 15
Rep Power: 16
andresbh is on a distinguished road
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
andresbh is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
Installing OpenFoam141dev vtk errors cvv OpenFOAM Installation 0 February 11, 2009 02:54
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51


All times are GMT -4. The time now is 07:04.