|
[Sponsors] |
[OpenFOAM.com] Error ./makeParaview, VTK_QT_VERSION is '5' OF1806 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 2, 2018, 17:46 |
Error ./makeParaview, VTK_QT_VERSION is '5' OF1806
|
#1 |
New Member
Lukas
Join Date: Jul 2018
Posts: 20
Rep Power: 8 |
Hey guys,
i got a problem with Paraview. I built OF v1806 from source using this guide and everything seemed to workout just fine, except ./makeParaview stops compiling with Code:
CMake Error at VTK/CMake/vtkQt.cmake:6 (message): Expected value for VTK_QT_VERSION is '5' Call Stack (most recent call first): VTK/GUISupport/Qt/CMakeLists.txt:1 (include) "foamInstallationTest" gave me a go so i run the given example pitzDaily. If i run the command "paraFoam" i only get is this: Code:
ERROR: ParaView reader module library (PVFoamReader) does not exist Please build the reader module before continuing: cd $WM_PROJECT_DIR/applications/utilities/postProcessing/graphics/PVReaders ./Allwclean ./Allwmake Using the native VTK/OpenFOAM reader instead Created temporary 'pitzDaily.foam' /home/hgl/OpenFOAM/OpenFOAM-v1806/bin/paraFoam: 319: /home/hgl/OpenFOAM/OpenFOAM-v1806/bin/paraFoam: paraview: not found greetings |
|
July 3, 2018, 10:55 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
You will need to read a bit further on the same page and see where it mentions the file $WM_PROJECT_DIR/ThirdParty-v1806/BUILD.md which should actually be $WM_PROJECT_INST_DIR/ThirdParty-v1806/BUILD.md (this file https://develop.openfoam.com/Develop...aster/BUILD.md) There are many more build details there, where it will also mention that you need Qt5 for ParaView-5.5.x and some more comments. It is obviously not completely exhaustive, but should help. |
||
July 3, 2018, 12:06 |
|
#3 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Probably your paraView never compiled (and the error msg points at a missing Qt installation). A dummy way to check is to look in the platform directory and see if these directories are there. I.e. go to /ThirdParty-v1806/platforms/linuxsomething/ and make sure there is ParaView-5.5.x and also check for qt-#.#.#
|
|
July 4, 2018, 11:30 |
|
#4 |
New Member
Lukas
Join Date: Jul 2018
Posts: 20
Rep Power: 8 |
Okay so I installed Qt 5.11.0 and Cmake 3.10.3 and now the error occurs at 91% of the installation. I am using ./makeParaView -qt-5.11.0 to build, otherwise i still get the same error as state in the first post. The error i am now getting is as follows
Code:
Scanning dependencies of target pqComponents [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqAboutDialog.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqActionGroupInterface.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqAnimatablePropertiesComboBox.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqActiveObjects.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqAnimatableProxyComboBox.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqAnimationManager.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqAnimationViewWidget.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqArrayListDomain.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqArrayStatusPropertyWidget.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqCalculatorWidget.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqCameraDialog.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqCameraKeyFrameWidget.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqChangeInputDialog.cxx.o [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqCollaborationPanel.cxx.o /home/hgl/OpenFOAM/ThirdParty-v1806/ParaView-v5.5.2/Qt/Components/pqChangeInputDialog.cxx: In constructor ‘pqChangeInputDialog::pqChangeInputDialog(vtkSMProxy*, QWidget*)’: /home/hgl/OpenFOAM/ThirdParty-v1806/ParaView-v5.5.2/Qt/Components/pqChangeInputDialog.cxx:81:45: error: invalid use of incomplete type ‘class QHeaderView’ this->Internals->pipelineView->getHeader()->hide(); ^~ In file included from /home/hgl/OpenFOAM/ThirdParty-v1806/build/linux64Gcc/ParaView-5.5.2/Qt/Components/ui_pqChangeInputDialog.h:20:0, from /home/hgl/OpenFOAM/ThirdParty-v1806/ParaView-v5.5.2/Qt/Components/pqChangeInputDialog.cxx:33: /home/hgl/OpenFOAM/ThirdParty-v1806/ParaView-v5.5.2/Qt/Widgets/pqFlatTreeView.h:53:7: note: forward declaration of ‘class QHeaderView’ class QHeaderView; ^~~~~~~~~~~ /home/hgl/OpenFOAM/ThirdParty-v1806/ParaView-v5.5.2/Qt/Components/pqChangeInputDialog.cxx:83:45: error: invalid use of incomplete type ‘class QHeaderView’ this->Internals->pipelineView->getHeader()->hideSection(1); ^~ In file included from /home/hgl/OpenFOAM/ThirdParty-v1806/build/linux64Gcc/ParaView-5.5.2/Qt/Components/ui_pqChangeInputDialog.h:20:0, from /home/hgl/OpenFOAM/ThirdParty-v1806/ParaView-v5.5.2/Qt/Components/pqChangeInputDialog.cxx:33: /home/hgl/OpenFOAM/ThirdParty-v1806/ParaView-v5.5.2/Qt/Widgets/pqFlatTreeView.h:53:7: note: forward declaration of ‘class QHeaderView’ class QHeaderView; ^~~~~~~~~~~ [ 91%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/pqColorChooserButtonWithPalettes.cxx.o Qt/Components/CMakeFiles/pqComponents.dir/build.make:1476: recipe for target 'Qt/Components/CMakeFiles/pqComponents.dir/pqChangeInputDialog.cxx.o' failed make[2]: *** [Qt/Components/CMakeFiles/pqComponents.dir/pqChangeInputDialog.cxx.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:17326: recipe for target 'Qt/Components/CMakeFiles/pqComponents.dir/all' failed make[1]: *** [Qt/Components/CMakeFiles/pqComponents.dir/all] Error 2 Makefile:151: recipe for target 'all' failed make: *** [all] Error 2 Command exited with non-zero status 2 11958.89user 1084.70system 55:35.82elapsed 391%CPU (0avgtext+0avgdata 1687244maxresident)k 11704inputs+2974136outputs (0major+174762128minor)pagefaults 0swaps |
|
July 5, 2018, 08:54 |
|
#5 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Perhaps try with qt-5.9.3 - it is an LTS version that I believe the ParaView developers are using. Maybe something odd changed with qt-5.11, you never really know.
|
|
July 5, 2018, 17:16 |
|
#6 |
New Member
Lukas
Join Date: Jul 2018
Posts: 20
Rep Power: 8 |
okay so i now could install paraview using qt 5.9.5, which should also be LTS. (by the way, is there a difference between "qt-everywhere-src-VER" and "qt-everywhere-opensource-src-VER"?)
installing paraview worked just fine, but if i execute paraFoam the "missing PVFoamReader"-error pops up. Paraview opens up anyway but the fonts (and so any text) is missing. Not suitable for working, i would like to solve that executing the advised commands (cd $WM_PROJECT_DIR/applications/utilities/postProcessing/graphics/PVReaders ./Allwclean ./Allwmake) works until some error during ./Allwmake state below. Code:
CMake Error at /home/hgl/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/ParaView-5.5.2/lib/cmake/paraview-5.5/ParaViewQt.cmake:71 (find_package): By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5", but CMake did not find one. Could not find a package configuration file provided by "Qt5" (requested version 5.6) with any of the following names: Qt5Config.cmake qt5-config.cmake Any Ideas what went wrong and how to solve? |
|
July 5, 2018, 17:45 |
|
#7 |
New Member
Lukas
Join Date: Jul 2018
Posts: 20
Rep Power: 8 |
okay i downloaded the fonts from https://dejavu-fonts.github.io/ and extracted them into the directory. The
Code:
ERROR: ParaView reader module library (PVFoamReader) does not exist Please build the reader module before continuing: cd $WM_PROJECT_DIR/applications/utilities/postProcessing/graphics/PVReaders ./Allwclean ./Allwmake Using the native VTK/OpenFOAM reader instead Thanks in advance. |
|
July 6, 2018, 06:24 |
|
#8 |
New Member
arash
Join Date: May 2011
Posts: 11
Rep Power: 15 |
I myself struggle with building paraView which fails at 14% of installation. I wonder why such a obvious thing should be that problematic...
[Moderator note: Below is the post that was alone in another thread regarding this same issue.] Dear all, I was trying to build paraView on Ubuntu 16.04 but got the following error: . . . [ 14%] Linking CXX shared library ../../../lib/libvtkCommonCore-pv5.5.so [ 14%] Built target vtkCommonCore Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 Command exited with non-zero status 2 1225.34user 147.56system 11:48.32elapsed 193%CPU (0avgtext+0avgdata 1308812maxresident)k 412216inputs+495472outputs (1011major+17784156minor)pagefaults 0swaps --- I followed the steps as instructed in BUILD.md. First I built Qt by running ./makeQt 5.9.3 and then ./makeParaView -qt-5.9.3 5.5.2 Any help is appreciated. Last edited by wyldckat; August 17, 2018 at 15:53. Reason: see "Moderator note" |
|
July 6, 2018, 06:28 |
|
#9 |
New Member
Lukas
Join Date: Jul 2018
Posts: 20
Rep Power: 8 |
have you build cmake and Qt?
|
|
July 6, 2018, 07:30 |
|
#10 |
New Member
arash
Join Date: May 2011
Posts: 11
Rep Power: 15 |
I suppose!
Here's what I did: 1. downloading qt-everywhere-opensource-src-5.9.3 and unpacking it in the thirdparty directory 2. bulding qt (./makeQt 5.9.3) 3. downloading cmake-3.5.2 and unpacking in the thirdparty directory 4. building cmake (./makeCmake cmake-3.5.2) 5. building paraView (./makeParaView -qt-5.9.3 5.5.2) => . . . Code:
[ 14%] Linking CXX shared library ../../../lib/libvtkCommonCore-pv5.5.so [ 14%] Built target vtkCommonCore Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 Command exited with non-zero status 2 1174.29user 135.59system 11:30.02elapsed 189%CPU (0avgtext+0avgdata 1309248maxresident)k 542560inputs+495472outputs (1455major+17784277minor)pagefaults 0swaps |
|
July 9, 2018, 10:38 |
|
#11 |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
Hi Arash,
what system are you compiling on? The qt version is system version (if so, which version) or you have installed 5.9.3 (this is the one you want really to compile). and which version of cmake you have? My experience with compilation is, if the system versions of the dev libs are old, I follow the BUILD.md and things starts to work. You should also inspect the log from the paraview compilation. It's hard to give specific advise without detailed information. |
|
July 9, 2018, 16:15 |
|
#12 |
New Member
arash
Join Date: May 2011
Posts: 11
Rep Power: 15 |
Thanks Matej for your suggestion. The OS was Ubuntu 16 - 32bit and you are right I also think the error could be because of the platform. I also had it run under VM which could also cause instability. Anyway I switched to OF 5.0 and Ubuntu 18 (64bit) and it works fine.
|
|
July 9, 2018, 16:54 |
|
#13 |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
well if you do not need all the perks of 1806 it is a way how to go but not really a solution. Which version of paraview is used in version 5? Is it the 5.5 or 5.4 or other?
Especially on Ubuntu 64bit there is no problem to compile openfoam and paraview. You just have to follow all the pre-requisites. I can imagine you have to be careful with 32bit version, but why you need 32 bits? On virtual machines, the trouble is typically the inconsistency of OpenGL which is not accessing the OpenGL of your graphics but is using software rendering only. Then this little environmental variable settings might help (this is more as a reference to other users): >> export MESA_GL_VERSION_OVERRIDE=3.2 which will make system pretend the 3.2 GL version to make you paraview started correctly. Happy foaming |
|
July 9, 2018, 17:46 |
|
#14 |
New Member
arash
Join Date: May 2011
Posts: 11
Rep Power: 15 |
Many thanks. I learned from your comment.
Unfortunately, I erased everything after it didn't work, so I am not sure about the versions. It was the latest version from openfoam.com (OF V1806) though. As you said, this experience may be helpful to someone. |
|
July 9, 2018, 18:00 |
|
#15 |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
Hi,
I was asking about the Paraview version of OpenFOAM-v5. And it is Paraview 5.4 Which explains many things. Paraview 5.4 and 5.5.2 compilations are different. For example the 5.5.2 insist on GL 2, it needs to be compiled with qt5 and few other differences. But it is worth it. Anyways, message for others, or for you, if you want to try over the weekend: OpenFOAM 1806 and paraview 5.5.2 compiles smoothly on Ubuntu 64 bits. And the extra modelling capabilities of 1806 and Catalyst from Paraview are worth the try. |
|
July 9, 2018, 18:03 |
|
#16 |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
Hi Lukas,
your error message regarding the Qt5 missing links to files instructs you quite clearly what to do: you have to set env. variable Qt5_DIR to point to your Qt5 libs place. E.g: export Qt5_DIR=$WM_THIRDPARTY_DIR/platforms/linux64Gcc/lib/cmake/Qt5 it was in my case, as I was compiling the qt5 libs in Thirdparty dir. hope this helps |
|
July 11, 2018, 17:27 |
|
#17 |
New Member
Lukas
Join Date: Jul 2018
Posts: 20
Rep Power: 8 |
Hey matjefor,
thanks for this hint. So i searched and found the missing files and executed this command: Code:
export Qt5_DIR=$WM_THIRDPARTY_DIR/platforms/linux64Gcc/qt-5.9.5/lib/cmake/Qt5 |
|
July 12, 2018, 04:06 |
|
#18 | |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
And if you
ls $Qt5_DIR it will list the *.cmake files mentioned in the compilation error message? If not the path is wrong and then try to search in platforms for the location of these files. Was the compilation of qt5 smooth? No errors ? I did not run into this problem as it worked for me, so I do not know where else it could be. matej Quote:
|
||
July 18, 2018, 13:44 |
|
#19 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
I don't know if this is related, but did you try instead to adjust the ParaView_QT value inside of the etc/config.sh/paraview file? (and refresh your environment). This should set both the Qt_DIR and LD_LIBRARY_PATH. BTW: you do not need to waste time with an Allwclean in between. Just make sure that you have activated your new settings before building the second (or third) time. /mark |
||
August 7, 2018, 09:31 |
|
#20 |
Senior Member
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18 |
Hi, foamers!
It's been a while since i last posted in these forums. Anyway i struggled with the ThirdyParty installation within openSUSE and i thought i could share my solution here. The problem appears when we try to: Code:
./Allwmake Basically i got qt and vtk errors. They don't come with the thirdparty tar file. I had to download both: Qt-5.9.3 (qt-everywhere-opensource-src-5.9.3.tar.xz) @ https://download.qt.io/archive/qt/5.9/5.9.3/single/ VTK 8.1.1 (VTK-8.1.1.tar.gz) @ https://www.vtk.org/download/ I unpacked both to $WM_THIRD_PARTY_DIR then i ran : Code:
./makeQt 5.9.3 Now, i don't recall if i tried to run Code:
./makeVTK 8.1.1 if it doens't work, you can do what i did: i jumped into the script: Code:
gedit makeVTK Code:
VTK_VERSION="$vtk_version" Code:
VTK_VERSION=8.1.1 Code:
./makeVTK https://software.opensuse.org/package/Mesa and installed the Mesa package too. I did it with the automatic install which comes from the source mirror. Finally i was able to type: Code:
./makeParaview Wish this was as ez as ubuntu's. Anyway, hope this helps some1 l8r!
__________________
Best Regards /calim "Elune will grant us the strength" |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Install OF1806 with system thirdparty packages | Bloerb | OpenFOAM Installation | 1 | October 5, 2018 06:49 |
[OpenFOAM.com] problem: compiling of1806 on ubuntu 14.04 | gian93 | OpenFOAM Installation | 2 | August 8, 2018 10:03 |