|
[Sponsors] |
May 6, 2009, 08:02 |
How to compile VTK with Qt support
|
#1 |
Senior Member
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
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 |
|
May 7, 2009, 04:47 |
|
#2 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
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 |
|
May 18, 2009, 12:37 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
It also has a simple 'engridFoam' script to set the LD_LIBRARY_PATH before starting engrid. |
||
May 20, 2009, 18:02 |
|
#4 |
Senior Member
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
what is the command to clone engrid git repository?? I cannot find on www thanks
|
|
May 22, 2009, 03:38 |
|
#5 | ||
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
which states the following: Quote:
|
|||
August 12, 2009, 09:34 |
Building errors
|
#6 |
New Member
andres
Join Date: Aug 2009
Posts: 15
Rep Power: 17 |
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 |
|
August 12, 2009, 09:46 |
|
#7 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
||
August 12, 2009, 11:27 |
|
#8 |
New Member
andres
Join Date: Aug 2009
Posts: 15
Rep Power: 17 |
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 |
|
|
|
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 07:05 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
Installing OpenFoam141dev vtk errors | cvv | OpenFOAM Installation | 0 | February 11, 2009 03:54 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |