Paraview not found when installing OpenFoam to Ubuntu 14.04
Hi, It's now a while that I try to install Openfoam to Ubuntu 14.04 LTS 64bit. I followed precisely the instructions in here: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04
Now everything goes fine until step 9 of the process where the make.log reports the one and only error: Code:
ERROR: ParaView not found in /home/riccardo/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0 Any hint on how to get this resolved? thank you |
Greetings Riccardo and welcome to the forum!
This is either the 2nd or 3rd time that someone spots that error message during the build of OpenFOAM. I'll have to change the instructions on the wiki to build ParaView before OpenFOAM. Please run these commands: Code:
cd $WM_THIRD_PARTY_DIR I ask this because I haven't been able to reproduce the same error when following those instructions on Ubuntu 14.04 :( edit: I've updated the instructions on the wiki, so the numbering of the steps is now different! The old #11 is now #9 and the old #9 is now #10 :) Best regards, Bruno |
Thank you! I'll try to follow what you suggested as soon as I can! The best I could do for the moment is to run ParaFoam with the -builtin option and this works acceptably well. I don't know however what the the difference should be...
|
1 Attachment(s)
I tried the new installation workflow but unfortunatly I still end up with the same error when I try running paraFoam, namely:
Code:
riccardo@riccardo-K53SV:~/OpenFOAM/riccardo-2.3.0/run/tutorials/incompressible/icoFoam/cavity$ paraFoam Code:
[ 44%] Building CXX object VTK/Rendering/Core/CMakeFiles/vtkRenderingCore.dir/vtkDataSetMapper.cxx.o Code:
[ 97%] Building NVCC (Device) object Plugins/SciberQuestToolKit/SciberQuest/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_CUDAConvolutionDriver.cu.o |
I had the same problem as tabsquare after I switched to 14.04. I have therefore been using an independent ParaView installation - I would just create an empty document in the case folder named view.foam, and that would allow me to load things in ParaView. However, when doing multiphase examples, the different phases and their interface are not shown in ParaView if I proceed as described above. In an earlier installation where paraFoam worked, this was not the case. Does anyone know why?
|
Greetings to all!
@Riccardo: Many thanks for the log file! Now it's very clear what the problem is... and I have to point the finger at CUDA for being such a pain in the #$"!$$"#% This issue was detected some time ago and the possible solutions can be found here: http://www.cfd-online.com/Forums/ope...on-driver.html Assuming you don't need CUDA, please follow these steps: Code:
cd $WM_THIRD_PARTY_DIR And if it does, then run: Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers Bruno |
Hello Bruno! I'm happy ;), this worked great as I don't have to use CUDA :) ParaFoam interface as it is now, appears to have more options than what I could see when using the builtin option (maybe just an impression).
I really appreciate the help, hopefully this will be a valuable info for others too! Thank you very much! |
1 Attachment(s)
Thanks for the support wyldckat! My own problem, however, seems to be of a different kind than tabsquare's. The following parts from my log file seem noteworthy:
Code:
[ 4%] Building CXX object ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/moc_pqWidgetEventTranslator.cxx.o Code:
[ 92%] Compiling Qt help project PacMan.qhp Regards, N |
Hi Nikolac,
The problem in your case seems to be because the Qt5 installation is getting in the way of the building process. Specifically, this path: Code:
/usr/lib/x86_64-linux-gnu/qt5/ This is very strange, because if you used this command line: Code:
./makeParaView4 -qmake $(which qmake-qt4) > log.makePV 2>&1 Was there anything that you did specifically for installing and/or using Qt5? Best regards, Bruno |
It baffles me too! I have used precisely this command with $(which qmake-qt4). I did not knowingly install or configure Qt5, I believe it must have come with the upgrade to 14.04. I have all the necessary Qt4 software installed, as described in your guide.
|
Hi Nikolac,
OK, I've figured it out. As of Ubuntu 13.04, most Qt building-related applications now rely on "qtchooser" for selecting the Qt version we want for building our Qt-based applications. I've updated the wiki page accordingly: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04 The main difference is that we have to run the following command before we build ParaView and the OpenFOAM plugins for ParaView: Code:
export QT_SELECT=qt4 Best regards, Bruno |
Dear Bruno,
Thanks a lot, this worked like a charm! Regards, N |
2 Attachment(s)
Hi ,
I tried installing OpenFOAM 2.3.0 on ubuntu 14.04. I was not able to install paraFoam4.1.0 properly. There was a cmake 2.8.8 or higher version requirement and i had cmake 2.8.7, i tried installing and compiling cmake version 2.8.12.1 but was unsuccessful. This was the error shown when i run paraFoam for the cavity case. Code:
FATAL ERROR: ParaView reader module libraries do not exist Thanks |
Greetings Jetfire,
Are you 100% certain that you are using Ubuntu 14.04? Because it's Ubuntu 12.04 that comes with CMake 2.8.7! Instructions for building OpenFOAM 2.3.0 on Ubuntu 12.04 are given here: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04 If you still have problems using the correct CMake version, please check the instructions given here: http://openfoamwiki.net/index.php/FA...7s_going_on.3F Best regards, Bruno |
@wyldckat
Thanks for your reply. I checked my version it's 12.04!. Installed OF 2.3.0 and paraFoam 4.1.0 successfully and they are running fine. |
build order
Hello wyldckat,
and thank you very much for all your great help in building OF and ParaView! I am following your instructions for a fresh build of OF-2.3.x on Mint 17, but please note that you cannot build ThirdParty folder as first, because you need wmake scripts as a prerequisite. When I attempted a pretty fresh build of ThirdParty I ended with: Code:
./Allwmake: 34: ./Allwmake: wmakeCheckPwd: not found Alex |
Greetings Alex,
The reason why I wrote that the ThirdParty folder should be first built is in the description of the respective step: Quote:
As for the error message you got, I believe the problem was that you hadn't updated the shell environment properly yet, because wmakeCheckPwd is a shell script and not a binary application like wmkdep. By the way, Mint 17 is based on which Ubuntu version? Best regards, Bruno |
Wow Bruno,
I must confess that I didn't expect such a fast reply! Thanks again. :) Well, I will detail my situation which is bit involved... I am trying to install 2.3.x in /opt/OpenFOAM/ on Mint 17, that is based on Ubuntu 14.04. So I tried to manage this by setting FOAM_INST_DIR as in the official instructions page and then by sourcing /etc/bashrc file. Then I tried step 8 from your wiki guide, ending with the problem above, i.e., Allwmake not finding the script. (Yes -sorry- it is a script!) So I tried to build OF first and everything in the log file seems good. I gave a try to foamInstallationTest which tells me that the environment variables FOAM_SITE_APPBIN, FOAM_USER_APPBIN, FOAM_SITE_LIBBIN, FOAM_USER_LIBBIN are not valid yet... I'll wait for your suggestions! :D Regards, Alex |
Hi Alex,
You got really lucky today... I'm skimming through the forum threads while the computer is running some meshing tests... I wouldn't do so if my machine was quicker ;) Quick answer to your question: http://openfoamwiki.net/index.php/In...with_the_Shell Not so quick answer:
Bruno |
Well Bruno,
if this is my lucky Sunday I will take advantage of this as much as I can! :D Sorry, but while you were typing your answer I couldn't wait any longer :p ...and I just tried to build again ThirdParty folder and then ParaView 4.1.0 as you suggested. Unfortunately PV build is stuck with some errors complaining about a lacking fortran compiler... which is pretty strange! Do I need it? I think I will end up with my naive attempt at installing directly in /opt/ and try to follow your advice of local building everything in $HOME and then moving it wherever I like. At least I could experiment a little without much concerns! :cool: Thanks again! Alex By the way: hope testing went well. Usually Sunday-testing is fine. :) |
All times are GMT -4. The time now is 06:45. |