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

[OpenFOAM.com] Problems compiling ParaView 5.4

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2018, 22:29
Default Problems compiling ParaView 5.4
  #1
New Member
 
Suantara Darma
Join Date: Mar 2018
Posts: 2
Rep Power: 0
suantaraDarma is on a distinguished road
Hi everyone,

i have to compile OpenFoam in my dekstop but i had some problem, can anybody help me please. because i was new in OF. thanks

Code:
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextDevice2D.cxx.o
[ 58%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkRenderingCorePythonD.dir/vtkRenderWidgetPython.cxx.o
[ 58%] Linking CXX shared library ../../../lib/libvtkGUISupportQt-pv5.4.so
[ 58%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkRenderingCorePythonD.dir/vtkPointGaussianMapperPython.cxx.o
CMakeFiles/vtkGUISupportQt.dir/QVTKWidget.cxx.o: In function `QVTKWidget::x11_setup_window()':
QVTKWidget.cxx:(.text+0x7f5): undefined reference to `vtkXOpenGLRenderWindow::GetDisplayId()'
QVTKWidget.cxx:(.text+0x892): undefined reference to `XGetWindowAttributes'
QVTKWidget.cxx:(.text+0x8d2): undefined reference to `XCreateWindow'
QVTKWidget.cxx:(.text+0x900): undefined reference to `XGetWMColormapWindows'
QVTKWidget.cxx:(.text+0x956): undefined reference to `XFree'
QVTKWidget.cxx:(.text+0x9e9): undefined reference to `XSetWMColormapWindows'
QVTKWidget.cxx:(.text+0x9f9): undefined reference to `XFree'
QVTKWidget.cxx:(.text+0xa01): undefined reference to `XFlush'
CMakeFiles/vtkGUISupportQt.dir/QVTKWidget.cxx.o: In function `vtkXOpenGLRenderWindow::GetGenericDisplayId()':
QVTKWidget.cxx:(.text._ZN22vtkXOpenGLRenderWindow19GetGenericDisplayIdEv[_ZN22vtkXOpenGLRenderWindow19GetGenericDisplayIdEv]+0x1): undefined reference to `vtkXOpenGLRenderWindow::GetDisplayId()'
collect2: error: ld returned 1 exit status
VTK/GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/build.make:819: recipe for target 'lib/libvtkGUISupportQt-pv5.4.so.1' failed
make[2]: *** [lib/libvtkGUISupportQt-pv5.4.so.1] Error 1
CMakeFiles/Makefile2:3088: recipe for target 'VTK/GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/all' failed
make[1]: *** [VTK/GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 58%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkRenderingCorePythonD.dir/vtkRenderingCorePythonInitImpl.cxx.o
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextDevice3D.cxx.o
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextItem.cxx.o
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextKeyEvent.cxx.o
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextMapper2D.cxx.o
[ 58%] Linking CXX shared library ../../../lib/libvtkRenderingCorePython27D-pv5.4.so
suantaraDarma is offline   Reply With Quote

Old   May 1, 2018, 17:47
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick questions:
  1. Which OpenFOAM version are you trying to install?
  2. Which Linux Distribution are you using? And is it 32 or 64-bit?
  3. Which installation instructions are you following?
__________________
wyldckat is offline   Reply With Quote

Old   May 1, 2018, 20:55
Default
  #3
New Member
 
Suantara Darma
Join Date: Mar 2018
Posts: 2
Rep Power: 0
suantaraDarma is on a distinguished road
hi,

i trying to install OpenFoam v-1712, using ubuntu 16.04 64-bit. i am follow the istruction from ti site http://openfoamwiki.net/index.php/In...OAM-5.x/Ubuntu

thanks
suantaraDarma is offline   Reply With Quote

Old   August 22, 2018, 10:19
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings suantaraDarma,


My apologies, but I was not able to look into this any sooner. I received a PM you sent me on the 8th of June with the following errors:
Quote:
Originally Posted by suantaraDarma
Code:
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextDevice2D.cxx.o
[ 58%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkRenderingCorePythonD.dir/vtkRenderWidgetPython.cxx.o
[ 58%] Linking CXX shared library ../../../lib/libvtkGUISupportQt-pv5.4.so
[ 58%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkRenderingCorePythonD.dir/vtkPointGaussianMapperPython.cxx.o
CMakeFiles/vtkGUISupportQt.dir/QVTKWidget.cxx.o: In function `QVTKWidget::x11_setup_window()':
QVTKWidget.cxx:(.text+0x7f5): undefined reference to `vtkXOpenGLRenderWindow::GetDisplayId()'
QVTKWidget.cxx:(.text+0x892): undefined reference to `XGetWindowAttributes'
QVTKWidget.cxx:(.text+0x8d2): undefined reference to `XCreateWindow'
QVTKWidget.cxx:(.text+0x900): undefined reference to `XGetWMColormapWindows'
QVTKWidget.cxx:(.text+0x956): undefined reference to `XFree'
QVTKWidget.cxx:(.text+0x9e9): undefined reference to `XSetWMColormapWindows'
QVTKWidget.cxx:(.text+0x9f9): undefined reference to `XFree'
QVTKWidget.cxx:(.text+0xa01): undefined reference to `XFlush'
CMakeFiles/vtkGUISupportQt.dir/QVTKWidget.cxx.o: In function `vtkXOpenGLRenderWindow::GetGenericDisplayId()':
QVTKWidget.cxx:(.text._ZN22vtkXOpenGLRenderWindow19GetGenericDisplayIdEv[_ZN22vtkXOpenGLRenderWindow19GetGenericDisplayIdEv]+0x1):  undefined reference to `vtkXOpenGLRenderWindow::GetDisplayId()'
collect2: error: ld returned 1 exit status
VTK/GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/build.make:819: recipe for target 'lib/libvtkGUISupportQt-pv5.4.so.1' failed
make[2]: *** [lib/libvtkGUISupportQt-pv5.4.so.1] Error 1
CMakeFiles/Makefile2:3088: recipe for target 'VTK/GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/all' failed
make[1]: *** [VTK/GUISupport/Qt/CMakeFiles/vtkGUISupportQt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 58%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkRenderingCorePythonD.dir/vtkRenderingCorePythonInitImpl.cxx.o
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextDevice3D.cxx.o
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextItem.cxx.o
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextKeyEvent.cxx.o
[ 58%] Building CXX object VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/vtkContextMapper2D.cxx.o
[ 58%] Linking CXX shared library ../../../lib/libvtkRenderingCorePython27D-pv5.4.so

I don't know if you have solved this issue or not since then.

But if not, please let me know, so that I can try and diagnose the problem.


Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 15, 2024, 06:42
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer, albeit several years later, but I stumbled upon the same issue, this time with OpenFOAM.com v1706.

The trick is to build with the following option:
Code:
CMAKE_SHARED_LINKER_FLAGS:STRING=-lX11
So based on the instructions for OpenFOAM 5.x mentioned above, it would be:
Code:
./makeParaView -python -mpi CMAKE_SHARED_LINKER_FLAGS:STRING=-lX11 -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 > log.makePV 2>&1
Wesley likes this.
__________________
wyldckat 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
[General] ParaView 5.4 Crashes with ParticleTracer complexFlow ParaView 1 August 30, 2018 11:13
[snappyHexMesh] Problems after snappyHexMesh with paraview andreas0209@hotmail.com OpenFOAM Meshing & Mesh Conversion 10 February 23, 2015 12:00
[OpenFOAM.org] OF 2.3.0 compiling Paraview with "-python -mpi" bender.rodriguez OpenFOAM Installation 5 December 14, 2014 13:27
[OpenFOAM] Paraview start problems Tobi ParaView 2 September 14, 2013 14:11
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) sfigato OpenFOAM Installation 22 January 31, 2013 11:16


All times are GMT -4. The time now is 03:18.