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

[OpenFOAM.com] Issue configuring ./makeParaView - Ubuntu 16.04

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Gerhard

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2019, 11:49
Default Issue configuring ./makeParaView - Ubuntu 16.04
  #1
New Member
 
London
Join Date: Feb 2019
Posts: 5
Rep Power: 7
bjdarrer is on a distinguished road
I have the following output on building OpenFOAM with
Code:
./makeParaView
as shown @
Code:
https://openfoam.com/code/build-guide.php
Can anyone help with this error message?

Code:
~/OpenFOAM/ThirdParty-v1812$ ./makeParaView 
Using qmake=/usr/bin/qmake

ParaView_SOURCE_DIR=/home/bjd/OpenFOAM/ThirdParty-v1812/ParaView-v5.6.0
ParaView_BUILD_DIR=/home/bjd/OpenFOAM/ThirdParty-v1812/build/linux64Gcc/ParaView-5.6.0
ParaView_DIR=/home/bjd/OpenFOAM/ThirdParty-v1812/platforms/linux64Gcc/ParaView-5.6.0

Build stages selected
---------------------
    -patch    true
    -config   true
    -make     true
    -install  true
---------------------
Features selected
    mesa      false
    mpi       false
    python    false
    qt        true
---------------------
Version information
    paraview  5.6.0
    major     5.6
    build     Release
    qt        4.8.7
---------------------
no patch found for paraview-5.6.0
Using cmake=/usr/bin/cmake
----
Configuring paraview-5.6.0 (major version: 5.6)
    MPI    support : false
    Python support : false
    MESA   support : false
    GL2  rendering : true
    QT dev support : true
    Source         : /home/bjd/OpenFOAM/ThirdParty-v1812/ParaView-v5.6.0
    Build          : /home/bjd/OpenFOAM/ThirdParty-v1812/build/linux64Gcc/ParaView-5.6.0
    Target         : /home/bjd/OpenFOAM/ThirdParty-v1812/platforms/linux64Gcc/ParaView-5.6.0
    cmake          : /usr/bin/cmake
    Build suffix   : none
----

/usr/bin/cmake -DCMAKE_INSTALL_PREFIX=/home/bjd/OpenFOAM/ThirdParty-v1812/platforms/linux64Gcc/ParaView-5.6.0 -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON -DVTK_RENDERING_BACKEND=OpenGL2 -DPARAVIEW_BUILD_QT_GUI=ON -DPARAVIEW_QT_VERSION=4 -DCMAKE_BUILD_TYPE=Release /home/bjd/OpenFOAM/ThirdParty-v1812/ParaView-v5.6.0

----

-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.7.4") 
-- Could not use git to determine source version, using version 5.6.0
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - /usr/bin/f95
-- The Fortran compiler identification is GNU 5.5.0
-- Check for working Fortran compiler: /usr/bin/f95
-- Check for working Fortran compiler: /usr/bin/f95  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/f95 supports Fortran 90
-- Checking whether /usr/bin/f95 supports Fortran 90 -- yes
-- Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED - Success
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED - Success
-- Performing Test Support for 64 bit file systems
-- Performing Test Support for 64 bit file systems - Success
-- Group StandAlone modules: vtkCommonDataModel;vtkCommonComputationalGeometry;vtkCommonSystem;vtkCommonCore;vtkCommonExecutionModel;vtkCommonTransforms;vtkCommonMisc;vtkInfovisLayout;vtkInfovisCore;vtkFiltersAMR;vtkFiltersGeneral;vtkFiltersGeometry;vtkFiltersVerdict;vtkFiltersParallel;vtkFiltersTexture;vtkFiltersHyperTree;vtkFiltersProgrammable;vtkFiltersHybrid;vtkFiltersSources;vtkFiltersCore;vtkFiltersImaging;vtkFiltersStatistics;vtkFiltersPoints;vtkFiltersTopology;vtkFiltersSelection;vtkFiltersFlowPaths;vtkFiltersExtraction;vtkFiltersSMP;vtkFiltersGeneric;vtkFiltersParallelImaging;vtkFiltersModeling;vtkParallelCore;vtkDomainsChemistry;vtkIOImage;vtkIOAMR;vtkIOMovie;vtkIOLSDyna;vtkIOImport;vtkIOSegY;vtkIOExodus;vtkIOInfovis;vtkIOXMLParser;vtkIOGeometry;vtkIOLegacy;vtkIOParallel;vtkIOParallelXML;vtkIOTecplotTable;vtkIOPLY;vtkIOMINC;vtkIOXML;vtkIOCore;vtkIOSQL;vtkIOAsynchronous;vtkIONetCDF;vtkIOVideo;vtkIOEnSight;vtkIOVeraOut;vtkImagingGeneral;vtkImagingColor;vtkImagingMorphological;vtkImagingMath;vtkImagingHybrid;vtkImagingSources;vtkImagingCore;vtkImagingStatistics;vtkImagingFourier;vtkImagingStencil;vtkChartsCore
-- Group Rendering modules: vtkGeovisCore;vtkInteractionImage;vtkInteractionWidgets;vtkInteractionStyle;vtkIOExportPDF;vtkIOExport;vtkRenderingImage;vtkRenderingVolume;vtkRenderingAnnotation;vtkRenderingLOD;vtkRenderingContext2D;vtkRenderingLabel;vtkRenderingFreeType;vtkRenderingCore;vtkViewsInfovis;vtkViewsContext2D;vtkViewsCore
-- Group Qt modules: vtkGUISupportQtSQL;vtkGUISupportQt;vtkRenderingQt;vtkViewsQt;vtkPVVTKExtensionsRendering;pqWidgets
-- Group MPI modules: vtkFiltersParallelMPI;vtkFiltersParallelDIY2;vtkFiltersParallelVerdict;vtkFiltersParallelGeometry;vtkParallelMPI;vtkdiy2;vtkDomainsParallelChemistry;vtkIOParallelNetCDF;vtkIOMPIParallel;vtkIOMPIImage
-- Group Imaging modules: vtkFiltersImaging;vtkInteractionImage;vtkRenderingImage;vtkImagingGeneral;vtkImagingColor;vtkImagingMorphological;vtkImagingMath;vtkImagingHybrid;vtkImagingSources;vtkImagingStatistics;vtkImagingFourier;vtkImagingStencil
-- Group Web modules: vtkWebPython;vtkWebCore;vtkWebGLExporter
-- Group Tk modules: vtkRenderingTk
-- Group Views modules: vtkViewsGeovis;vtkViewsContext2D
-- Group ParaViewCore modules: smTestDriver;vtkPVCommon;vtkPVClientServerCoreCore;vtkPVServerManagerCore;vtkPVVTKExtensionsCore;vtkPVServerImplementationCore
-- Group ParaViewRendering modules: vtkPVClientServerCoreRendering;vtkPVServerManagerRendering;vtkPVVTKExtensionsRendering;vtkPVServerImplementationRendering
-- Group ParaViewQt modules: pqComponents;pqWidgets;pqCore;pqApplicationComponents
-- Backend OpenGL2 modules: vtkDomainsChemistryOpenGL2;vtkIOExportOpenGL2;vtkRenderingVolumeOpenGL2;vtkRenderingOpenVR;vtkRenderingContextOpenGL2;vtkRenderingOpenGL2;vtkRenderingLICOpenGL2;vtkRenderingGL2PSOpenGL2;vtkImagingOpenGL2
-- Enabling modules for OpenGL2.
-- Checking whether header cstdio is available
-- Checking whether header cstdio is available - yes
-- Checking for Large File Support
-- Checking for Large File Support - yes
-- Checking whether C++ compiler has 'long long'
-- Checking whether C++ compiler has 'long long' - yes
-- Checking whether C++ compiler has '__int64'
-- Checking whether C++ compiler has '__int64' - no
-- Checking whether wstring is available
-- Checking whether wstring is available - yes
-- Checking whether C compiler has ptrdiff_t in stddef.h
-- Checking whether C compiler has ptrdiff_t in stddef.h - yes
-- Checking whether C compiler has ssize_t in unistd.h
-- Checking whether C compiler has ssize_t in unistd.h - yes
-- Checking whether C compiler has clock_gettime
-- Checking whether C compiler has clock_gettime - yes
-- Checking whether CXX compiler has setenv
-- Checking whether CXX compiler has setenv - yes
-- Checking whether CXX compiler has unsetenv
-- Checking whether CXX compiler has unsetenv - yes
-- Checking whether CXX compiler has environ in stdlib.h
-- Checking whether CXX compiler has environ in stdlib.h - no
-- Checking whether CXX compiler has utimes
-- Checking whether CXX compiler has utimes - yes
-- Checking whether CXX compiler has utimensat
-- Checking whether CXX compiler has utimensat - yes
-- Checking whether CXX compiler struct stat has st_mtim member
-- Checking whether CXX compiler struct stat has st_mtim member - yes
-- Checking whether CXX compiler struct stat has st_mtimespec member
-- Checking whether CXX compiler struct stat has st_mtimespec member - no
-- Looking for include files sys/types.h, ifaddrs.h
-- Looking for include files sys/types.h, ifaddrs.h - found
-- Checking whether CXX compiler has rlimit64
-- Checking whether CXX compiler has rlimit64 - yes
-- Checking whether CXX compiler has atol
-- Checking whether CXX compiler has atol - yes
-- Checking whether CXX compiler has atoll
-- Checking whether CXX compiler has atoll - yes
-- Checking whether CXX compiler has _atoi64
-- Checking whether CXX compiler has _atoi64 - no
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Checking whether backtrace works with this C++ compiler
-- Checking whether backtrace works with this C++ compiler - yes
-- Looking for C++ include dlfcn.h
-- Looking for C++ include dlfcn.h - found
-- Checking whether dladdr works with this C++ compiler
-- Checking whether dladdr works with this C++ compiler - yes
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Checking whether cxxabi works with this C++ compiler
-- Checking whether cxxabi works with this C++ compiler - yes
-- Checking whether CXX compiler has getloadavg
-- Checking whether CXX compiler has getloadavg - yes
-- Checking whether <ext/stdio_filebuf.h> is available
-- Checking whether <ext/stdio_filebuf.h> is available - yes
-- Checking for builtin __sync_add_and_fetch
-- Checking for builtin __sync_add_and_fetch -- success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Test VTK_HAS_STD_ISNAN
-- Performing Test VTK_HAS_STD_ISNAN - Success
-- Performing Test VTK_HAS_STD_ISINF
-- Performing Test VTK_HAS_STD_ISINF - Success
-- Performing Test VTK_HAS_STD_ISFINITE
-- Performing Test VTK_HAS_STD_ISFINITE - Success
-- Looking for isnan
-- Looking for isnan - found
-- Looking for isinf
-- Looking for isinf - found
-- Looking for isfinite
-- Looking for isfinite - found
-- Looking for finite
-- Looking for finite - found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for feenableexcept
-- Looking for feenableexcept - found
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Looking for getsockname in socket
-- Looking for getsockname in socket - not found
-- Checking for getsockname with socklen_t
-- Checking for getsockname with socklen_t -- 1
-- Looking for SO_REUSEADDR
-- Looking for SO_REUSEADDR - found
-- Performing Test standard_math_library_linked_to_automatically
-- Performing Test standard_math_library_linked_to_automatically - Success
-- Performing Test COMPILER_SUPPORT_WERROR
-- Performing Test COMPILER_SUPPORT_WERROR - Success
-- Performing Test COMPILER_SUPPORT_pedantic
-- Performing Test COMPILER_SUPPORT_pedantic - Success
-- Performing Test COMPILER_SUPPORT_Wall
-- Performing Test COMPILER_SUPPORT_Wall - Success
-- Performing Test COMPILER_SUPPORT_Wextra
-- Performing Test COMPILER_SUPPORT_Wextra - Success
-- Performing Test COMPILER_SUPPORT_Wundef
-- Performing Test COMPILER_SUPPORT_Wundef - Success
-- Performing Test COMPILER_SUPPORT_Wcastalign
-- Performing Test COMPILER_SUPPORT_Wcastalign - Success
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts - Success
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor - Success
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs - Success
-- Performing Test COMPILER_SUPPORT_Wpointerarith
-- Performing Test COMPILER_SUPPORT_Wpointerarith - Success
-- Performing Test COMPILER_SUPPORT_Wwritestrings
-- Performing Test COMPILER_SUPPORT_Wwritestrings - Success
-- Performing Test COMPILER_SUPPORT_Wformatsecurity
-- Performing Test COMPILER_SUPPORT_Wformatsecurity - Success
-- Performing Test COMPILER_SUPPORT_Wshorten64to32
-- Performing Test COMPILER_SUPPORT_Wshorten64to32 - Failed
-- Performing Test COMPILER_SUPPORT_Wlogicalop
-- Performing Test COMPILER_SUPPORT_Wlogicalop - Success
-- Performing Test COMPILER_SUPPORT_Wenumconversion
-- Performing Test COMPILER_SUPPORT_Wenumconversion - Failed
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions - Failed
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion - Success
-- Performing Test COMPILER_SUPPORT_Wnopsabi
-- Performing Test COMPILER_SUPPORT_Wnopsabi - Success
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros - Success
-- Performing Test COMPILER_SUPPORT_Wnolonglong
-- Performing Test COMPILER_SUPPORT_Wnolonglong - Success
-- Performing Test COMPILER_SUPPORT_fnochecknew
-- Performing Test COMPILER_SUPPORT_fnochecknew - Success
-- Performing Test COMPILER_SUPPORT_fnocommon
-- Performing Test COMPILER_SUPPORT_fnocommon - Success
-- Performing Test COMPILER_SUPPORT_fstrictaliasing
-- Performing Test COMPILER_SUPPORT_fstrictaliasing - Success
-- Performing Test COMPILER_SUPPORT_wd981
-- Performing Test COMPILER_SUPPORT_wd981 - Failed
-- Performing Test COMPILER_SUPPORT_wd2304
-- Performing Test COMPILER_SUPPORT_wd2304 - Failed
-- Performing Test COMPILER_SUPPORT_STRICTANSI
-- Performing Test COMPILER_SUPPORT_STRICTANSI - Failed
-- Performing Test COMPILER_SUPPORT_Qunusedarguments
-- Performing Test COMPILER_SUPPORT_Qunusedarguments - Failed
-- Performing Test COMPILER_SUPPORT_ansi
-- Performing Test COMPILER_SUPPORT_ansi - Success
-- Performing Test COMPILER_SUPPORT_OPENMP
-- Performing Test COMPILER_SUPPORT_OPENMP - Success
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- 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/bjd/OpenFOAM/ThirdParty-v1812/build/linux64Gcc/ParaView-5.6.0/CMakeFiles/CMakeOutput.log".
See also "/home/bjd/OpenFOAM/ThirdParty-v1812/build/linux64Gcc/ParaView-5.6.0/CMakeFiles/CMakeError.log".
bjdarrer is offline   Reply With Quote

Old   February 20, 2019, 17:22
Default
  #2
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Hello

First see the error msg:
Code:
Expected value for VTK_QT_VERSION is '5'
So it is the Qt version that is causing the problem. See information printed when you initiate installation:
Code:
Version information
    paraview  5.6.0
    major     5.6
    build     Release
    qt        4.8.7
Qt installed in your system is 4.8 because you probably did sth. like below before starting OF installation.

Code:
apt-get install qt4-dev-tools libqt4-dev
There are a couple of options to fix this problem:

xx Install a newer version of Qt either by using package manager or compiling from the source. Then set its install path to QT_ARCH_PATH in the Third-Party/etc/tools/QtFunctions file. QMAKE_PATH also serves the same purpose I guess, but I haven't tried it and I don't want to cause any confusion.

xx Send the Qt version you want to install as an argument to the script. Something like: ./makeParaview -qt-5

xx Downgrade ParaView version to something that could consistently work with Qt4.8. For instance sth. like should work: ./makeParaview -version 5.4 (See usage menu in the script).

I'd try 2nd item first, because you don't need to do anything else. You can also consider the first option to understand how environment is updated and scripts work. I'd avoid third option, but it should probably work too.

// Fatih
fertinaz is offline   Reply With Quote

Old   April 20, 2020, 13:50
Default
  #3
New Member
 
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9
Gerhard is on a distinguished road
Hi,

I found this link, followed it exactly, and it solved all my issues:

https://zhuanlan.zhihu.com/p/82423956

All the best!
7470 likes this.
Gerhard is offline   Reply With Quote

Reply

Tags
openfoam 1812, paraview 5.6.0


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
Workbench 18.2 Installation Error Ubuntu 16.04 turbostudent ANSYS 1 October 3, 2019 10:13
ANSYS CFX 14 on UBUNTU 12.04 64bit: PARALLEL ISSUE david.pasquale CFX 6 August 9, 2018 15:05
[OpenFOAM.com] OpenFoam 1.6 installation on Ubuntu 16.04 alinuman15 OpenFOAM Installation 0 January 15, 2018 14:30
Compilation errors on Ubuntu 16.04 pbalz enGrid 1 October 27, 2017 03:49
Ubuntu: Allrun script issue fletc900 OpenFOAM Bugs 2 July 2, 2010 16:58


All times are GMT -4. The time now is 23:27.