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

Issue Installing Paraview for OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By felik9
  • 1 Post By felik9
  • 1 Post By felik9

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2020, 21:20
Default Issue Installing Paraview for OpenFOAM
  #1
New Member
 
anonymous
Join Date: Sep 2009
Posts: 9
Rep Power: 16
felik9 is on a distinguished road
Hi,
I am trying to install Paraview that's required for OpenFOAM according to the instruction provided in this link:
https://www.openfoam.com/download/install-source.php


However, I get an error when I enter the following prompt:


root@nanay001-Bonobo-WS:/home/nanay001/OpenFOAM/ThirdParty-v1912# ./makeParaView
./makeParaView: 64: local: -DWM_DP: bad variable name
./makeParaView: 64: ./makeParaView: -DOPENFOAM: bad variable name




The error message is the last two lines above.



Please advise.
Gerhard likes this.
felik9 is offline   Reply With Quote

Old   February 15, 2020, 03:15
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Please find the related threads in OF-GitLab and StackExchange. It is a solved problem:

https://stackoverflow.com/questions/...43244#59643244
https://develop.openfoam.com/Develop...am/issues/1541
https://develop.openfoam.com/Develop...mmon/issues/48

Last edited by HPE; February 15, 2020 at 06:04.
HPE is offline   Reply With Quote

Old   February 15, 2020, 04:41
Default
  #3
New Member
 
Mary
Join Date: Feb 2020
Posts: 2
Rep Power: 0
MariMari is on a distinguished road
Hi
I read your post.
thank you very much.
Good luck

Download a beautiful song by Farzad Farzin
MariMari is offline   Reply With Quote

Old   February 16, 2020, 00:28
Default
  #4
New Member
 
anonymous
Join Date: Sep 2009
Posts: 9
Rep Power: 16
felik9 is on a distinguished road
Hi

I've followed the solution as posted in the 3 links provided above. However, I am still getting error messages. This is what I have done:

1- Edit the ./cmakeParaView file to change the first line from #!/bin/sh to #!/bin/bash


2- run the command: sudo dpkg-reconfigure dash
When I run the above command, I get the message prompt shown in the attached file, or below, which I select "NO":
Configuring dash

The system shell is the default command interpreter for shell scripts.

Using dash as the system shell will improve the system's overall
performance. It does not alter the shell presented to interactive users.

Use dash as the default system shell (/bin/sh)?

<Yes> <No>


3- run the command: ./makeParaView
At the end of this run, I get the following error output:
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
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)


-- Configuring incomplete, errors occurred!
See also "/home/nanay001/OpenFOAM/ThirdParty-v1912/build/linux64Gcc/ParaView-5.6.3/CMakeFiles/CMakeOutput.log".
See also "/home/nanay001/OpenFOAM/ThirdParty-v1912/build/linux64Gcc/ParaView-5.6.3/CMakeFiles/CMakeError.log".


I am not sure how to fix this error, please advise.



Thanks
Attached Files
File Type: docx file1.docx (62.7 KB, 3 views)
Gerhard likes this.
felik9 is offline   Reply With Quote

Old   February 16, 2020, 06:05
Default
  #5
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
It seems you solved the first problem. This is another problem. Have you installed all required pre-requisite packages? e.g. package for VTK?
HPE is offline   Reply With Quote

Old   February 16, 2020, 22:53
Default
  #6
New Member
 
anonymous
Join Date: Sep 2009
Posts: 9
Rep Power: 16
felik9 is on a distinguished road
Hi,


I recently installed VTK 8.2, but I'm still getting the same error as shown below.

-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
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)


-- Configuring incomplete, errors occurred!
See also "/home/nanay001/OpenFOAM/ThirdParty-v1912/build/linux64Gcc/ParaView-5.6.3/CMakeFiles/CMakeOutput.log".
See also "/home/nanay001/OpenFOAM/ThirdParty-v1912/build/linux64Gcc/ParaView-5.6.3/CMakeFiles/CMakeError.log".
root@nanay001-Bonobo-WS:/home/nanay001/OpenFOAM/ThirdParty-v1912#


I am not sure what else I could do to fix this problem. I have attached a file with the complete run that I obtained. Please advise.
Attached Files
File Type: docx file1.docx (7.8 KB, 2 views)
Gerhard likes this.

Last edited by felik9; February 16, 2020 at 23:58.
felik9 is offline   Reply With Quote

Old   February 17, 2020, 15:31
Default
  #7
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Build ParaView separately?

Almost always ParaView is pain in the arse for OpenFOAM maintainers for various legitimate reasons.

I never bother with paraFoam. Using ParaView directly is possible, so. e.g. In your simulation directory you create an empty text file, like with a name a.foam, and just calling "paraview a.foam" is equivalent to "paraFoam", alomost.

In the worst case, you can submit a bug ticket in GitLab.
HPE is offline   Reply With Quote

Old   April 20, 2020, 13:55
Default
  #8
New Member
 
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9
Gerhard is on a distinguished road
Quote:
Originally Posted by felik9 View Post
Hi

I've followed the solution as posted in the 3 links provided above. However, I am still getting error messages. This is what I have done:

1- Edit the ./cmakeParaView file to change the first line from #!/bin/sh to #!/bin/bash


2- run the command: sudo dpkg-reconfigure dash
When I run the above command, I get the message prompt shown in the attached file, or below, which I select "NO":
Configuring dash

The system shell is the default command interpreter for shell scripts.

Using dash as the system shell will improve the system's overall
performance. It does not alter the shell presented to interactive users.

Use dash as the default system shell (/bin/sh)?

<Yes> <No>


3- run the command: ./makeParaView
At the end of this run, I get the following error output:
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
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)


-- Configuring incomplete, errors occurred!
See also "/home/nanay001/OpenFOAM/ThirdParty-v1912/build/linux64Gcc/ParaView-5.6.3/CMakeFiles/CMakeOutput.log".
See also "/home/nanay001/OpenFOAM/ThirdParty-v1912/build/linux64Gcc/ParaView-5.6.3/CMakeFiles/CMakeError.log".


I am not sure how to fix this error, please advise.



Thanks
Hi,
If you made it to that point, the following link might just solve your problem:
https://zhuanlan.zhihu.com/p/82423956
I had the same "Expected value for VTK_QT_VERSION is '5'" issue when I tried to install OF v1906.
I followed the instructions exactly and it sorted me out.
I hope it helps you or others with the same issue as well.
All the best!
Gerhard is offline   Reply With Quote

Reply


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
[foam-extend.org] foam-extend-3.1 multiple versions paraview issue CFDpal OpenFOAM Installation 1 May 31, 2018 08:51
[General] Paraview display issue on Windows zjx1805 ParaView 0 May 4, 2018 13:06
Issue installing SU2-AD kaush SU2 1 April 23, 2018 10:40
[OpenFOAM.org] problem installing ParaView with openFoam5 enginpower OpenFOAM Installation 3 March 26, 2018 10:34
Installing OpenFOAM without Paraview quartzian OpenFOAM Installation 0 September 8, 2008 09:29


All times are GMT -4. The time now is 16:11.