View Issue Details

IDProjectCategoryView StatusLast Update
0000793OpenFOAMBugpublic2016-02-02 18:49
Reporteruser461Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Platformamp64OSScientific LinuxOS Version6.3
Summary0000793: Cannot build PV3Readers without QT support
DescriptionI am trying to compile paraFoam with off-screen rendering for batch processing, using the options:

"VTK_OPENGL_HAS_OSMESA=ON"
"OSMESA_INCLUDE_DIR=$MESA_INCLUDE"
"OSMESA_LIBRARY=$MESA_LIBRARY"

"PARAVIEW_BUILD_QT_GUI=OFF"
"OPENGL_INCLUDE_DIR=/usr/include/GL"
"OPENGL_gl_LIBRARY="
"OPENGL_glu_LIBRARY=/usr/lib64/lib/libGLU.so"
"VTK_USE_X=OFF"

but I get the error message:

+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
CMake Error at CMakeLists.txt:46 (QT4_WRAP_CPP):
  Unknown CMake command "QT4_WRAP_CPP".


-- Configuring incomplete, errors occurred!

This used to work for paraFoam in 2.1.1
Steps To Reproducemodify etc/tools/ParaViewFunctions to include:

        addCMakeVariable "VTK_OPENGL_HAS_OSMESA=ON"
        addCMakeVariable "OSMESA_INCLUDE_DIR=$MESA_INCLUDE"
        addCMakeVariable "OSMESA_LIBRARY=$MESA_LIBRARY"

        addCMakeVariable "PARAVIEW_BUILD_QT_GUI=OFF"
        addCMakeVariable "OPENGL_INCLUDE_DIR=/usr/include/GL"
        addCMakeVariable "OPENGL_gl_LIBRARY="
        addCMakeVariable "OPENGL_glu_LIBRARY=/usr/lib64/lib/libGLU.so"
        addCMakeVariable "VTK_USE_X=OFF"

set withQT to false in makeParaView and run the makeParaView script
TagsNo tags attached.

Activities

wyldckat

2013-10-27 10:42

updater   ~0002587

Last edited: 2013-10-27 10:52

@arnout: Thanks for the information at "Steps To Reproduce", because it helped me to try this myself!

Could you try the changes attached is the tarball file "PV3Readers-mod.tar.gz"? It's is based on the source code from OpenFOAM 2.2.2 and modifies the following files:
  applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/CMakeLists.txt
  applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/vtkPV3blockMeshReader.cxx
  applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/CMakeLists.txt
  applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx

Unpack it within the main "OpenFOAM-2.2.*" folder and run Allwmake within the folder "applications/utilities/postProcessing/graphics/PV3Readers".

If I'm not mistaken, you'll also need these plug-ins with GUI on the client side, so that the communication works properly.


edit: Tested just now, with the VM using a qt-less ParaView 3.12.0 build + the attached fix, and a normal ParaView 3.12.0 build on the real machine, with the Qt enabled plugin. The connection to the pvserver on the VM worked without a glitch!

wyldckat

2013-10-27 10:42

updater  

PV3Readers-mod.tar.gz (5,993 bytes)

user461

2013-11-19 19:37

  ~0002645

@wyldckat I was able to succesfully compile the PV3Readers now too. Thanks! However, I have not been able to test it with pvbatch. Debian switched to Multiarch, and when trying to compile paraview I get all kinds of complains about missing libraries.

user461

2013-11-20 20:22

  ~0002649

I also tried to compile the code on the Scientific Linux system I originally reported the bug for using an Intel compiler, and everything works great. Thanks!

wyldckat

2013-11-23 13:51

updater   ~0002652

@arnout: Good to know!
As for Debian, which specific version are you using? "sid", "jessie", or "wheezy" (7.0)?

user461

2013-11-23 16:19

  ~0002653

I am using Debian Sid. OpenFOAM compiled without problems, but paraview did not. Did not have time yet to investigate which paths I have to change to get it to compile.

btw. Would the modifications I made to get everything to compile with an Intel compiler be useful? I can upload the config files.

wyldckat

2013-11-23 17:25

updater   ~0002655

«Would the modifications I made to get everything to compile with an Intel compiler be useful? I can upload the config files.»

There was no reference to an Intel compiler on the original report... so I'm not sure to which exact config files you are referring to :(

user461

2013-11-23 19:14

 

OpenFOAM.tgz (8,483 bytes)

user461

2013-11-23 19:21

  ~0002656

Originally I compiled OpenFoam 2.1.1 with the gcc compilers on the scientific linux system. However, for OpenFoam 2.2.2 the gcc compiler on the system was too old, so I ended up using Intel 12.1. The installation scripts did not recognize a setup with Intel compilers automatically, so I had to modify:

OpenFOAM/OpenFOAM-2.2.2/etc/bashrc
OpenFOAM/ThirdParty-2.2.2/makeParaView
OpenFOAM/ThirdParty-2.2.2/etc/tools/ParaViewFunctions

I just attached these files. If you'd rather have me open a separate bug report for this, I can do that too.

Issue History

Date Modified Username Field Change
2013-03-20 02:55 user461 New Issue
2013-10-27 10:42 wyldckat Note Added: 0002587
2013-10-27 10:42 wyldckat File Added: PV3Readers-mod.tar.gz
2013-10-27 10:52 wyldckat Note Edited: 0002587
2013-11-19 19:37 user461 Note Added: 0002645
2013-11-20 20:22 user461 Note Added: 0002649
2013-11-23 13:51 wyldckat Note Added: 0002652
2013-11-23 16:19 user461 Note Added: 0002653
2013-11-23 17:25 wyldckat Note Added: 0002655
2013-11-23 19:14 user461 File Added: OpenFOAM.tgz
2013-11-23 19:21 user461 Note Added: 0002656
2016-02-02 18:49 henry Status new => closed
2016-02-02 18:49 henry Assigned To => henry
2016-02-02 18:49 henry Resolution open => unable to reproduce