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

[OpenFOAM.com] Installing on Ubuntu 18.04

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By samiam1000

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2019, 03:22
Default Installing on Ubuntu 18.04
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 519
Rep Power: 15
samiam1000 is on a distinguished road
Dear Foamers,

I am trying to install OpenFOAM 18.12 on Ubuntu 18.04 (64 bit)..


I get this:

Code:
make[2]: Entering directory '/home/lele/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic/laplacianFoam'
wmake overLaplacianDyMFoam
make[3]: Entering directory '/home/lele/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic/laplacianFoam/overLaplacianDyMFoam'
g++ -std=c++11 -m64 -DOPENFOAM=1812 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100 -I/home/lele/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude -I/home/lele/OpenFOAM/OpenFOAM-v1812/src/dynamicFvMesh/lnInclude -I/home/lele/OpenFOAM/OpenFOAM-v1812/src/overset/lnInclude -I/home/lele/OpenFOAM/OpenFOAM-v1812/src/meshTools/lnInclude -IlnInclude -I. -I/home/lele/OpenFOAM/OpenFOAM-v1812/src/OpenFOAM/lnInclude -I/home/lele/OpenFOAM/OpenFOAM-v1812/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/lele/OpenFOAM/OpenFOAM-v1812/build/linux64GccDPInt32Opt/applications/solvers/basic/laplacianFoam/overLaplacianDyMFoam/overLaplacianDyMFoam.o -L/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib \
    -loverset -lOpenFOAM -ldl  \
     -lm -o /home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/bin/overLaplacianDyMFoam
/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Init(void (*)(void const*, void*, int, MPI::Datatype const&), bool)'
/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Intracomm::current_op'
/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_comm_map'
/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Is_initialized()'
/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `PMPI::Comm::mpi_err_map'
/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `MPI::Op::Free()'
/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so: undefined reference to `op_intercept'
collect2: error: ld returned 1 exit status
/home/lele/OpenFOAM/OpenFOAM-v1812/wmake/makefiles/general:136: recipe for target '/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/bin/overLaplacianDyMFoam' failed
make[3]: *** [/home/lele/OpenFOAM/OpenFOAM-v1812/platforms/linux64GccDPInt32Opt/bin/overLaplacianDyMFoam] Error 1
make[3]: Leaving directory '/home/lele/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic/laplacianFoam/overLaplacianDyMFoam'
/home/lele/OpenFOAM/OpenFOAM-v1812/wmake/makefiles/apps:27: recipe for target 'overLaplacianDyMFoam' failed
make[2]: *** [overLaplacianDyMFoam] Error 2
make[2]: Leaving directory '/home/lele/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic/laplacianFoam'
/home/lele/OpenFOAM/OpenFOAM-v1812/wmake/makefiles/apps:27: recipe for target 'laplacianFoam' failed
make[1]: *** [laplacianFoam] Error 2
make[1]: Leaving directory '/home/lele/OpenFOAM/OpenFOAM-v1812/applications/solvers/basic'
/home/lele/OpenFOAM/OpenFOAM-v1812/wmake/makefiles/apps:27: recipe for target 'basic' failed
make: *** [basic] Error 2

What's wrong?
Thanks for help,
Samuele

Last edited by samiam1000; January 31, 2019 at 08:13. Reason: Solved issue
samiam1000 is offline   Reply With Quote

Old   January 27, 2019, 16:52
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,958
Blog Entries: 45
Rep Power: 122
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: Is this the very first error message that you are getting?

I ask this because it's very strange that you would only get this error on this solver...

Which MPI version is being used here? You can check by running this command:
Code:
mpirun --version
__________________
wyldckat is offline   Reply With Quote

Old   January 28, 2019, 03:32
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 519
Rep Power: 15
samiam1000 is on a distinguished road
About the command
Code:
mpirun --version
, the output is strange:
Code:
lele@archimede:~/OpenFOAM/OpenFOAM-v1812$ mpirun --version
-----------------------------------------------------------------------------
Synopsis:       mpirun [options] <app> 
                mpirun [options] <where> <program> [<prog args>]

Description:    Start an MPI application in LAM/MPI.

Notes:
                [options]       Zero or more of the options listed below
                <app>           LAM/MPI appschema
                <where>         List of LAM nodes and/or CPUs (examples
                                below)
                <program>       Must be a LAM/MPI program that either
                                invokes MPI_INIT or has exactly one of
                                its children invoke MPI_INIT
                <prog args>     Optional list of command line arguments
                                to <program>

Options:
                -c <num>        Run <num> copies of <program> (same as -np)
                -client <rank>  <host>:<port>
                                Run IMPI job; connect to the IMPI server <host>
                                at port <port> as IMPI client number <rank>
                -D              Change current working directory of new
                                processes to the directory where the
                                executable resides
                -f              Do not open stdio descriptors
                -ger            Turn on GER mode
                -h              Print this help message
                -l              Force line-buffered output
                -lamd           Use LAM daemon (LAMD) mode (opposite of -c2c)
                -nger           Turn off GER mode
                -np <num>       Run <num> copies of <program> (same as -c)
                -nx             Don't export LAM_MPI_* environment variables
                -O              Universe is homogeneous
                -pty / -npty    Use/don't use pseudo terminals when stdout is 
                                a tty
                -s <nodeid>     Load <program> from node <nodeid>
                -sigs / -nsigs  Catch/don't catch signals in MPI application
                -ssi <n> <arg>  Set environment variable LAM_MPI_SSI_<n>=<arg>
                -toff           Enable tracing with generation initially off
                -ton, -t        Enable tracing with generation initially on
                -tv		Launch processes under TotalView Debugger
		-v              Be verbose
                -w / -nw        Wait/don't wait for application to complete
                -wd <dir>       Change current working directory of new
                                processes to <dir>
                -x <envlist>    Export environment vars in <envlist>

Nodes:          n<list>, e.g., n0-3,5
CPUS:           c<list>, e.g., c0-3,5
Extras:         h (local node), o (origin node), N (all nodes), C (all CPUs)

Examples:       mpirun n0-7 prog1
                Executes "prog1" on nodes 0 through 7.

                mpirun -lamd -x FOO=bar,DISPLAY N prog2
                Executes "prog2" on all nodes using the LAMD RPI.  
                In the environment of each process, set FOO to the value
                "bar", and set DISPLAY to the current value.

                mpirun n0 N prog3
                Run "prog3" on node 0, *and* all nodes.  This executes *2*
                copies on n0.

                mpirun C prog4 arg1 arg2
                Run "prog4" on each available CPU with command line
                arguments of "arg1" and "arg2".  If each node has a
                CPU count of 1, the "C" is equivalent to "N".  If at
                least one node has a CPU count greater than 1, LAM
                will run neighboring ranks of MPI_COMM_WORLD on that
                node.  For example, if node 0 has a CPU count of 4 and
                node 1 has a CPU count of 2, "prog4" will have
                MPI_COMM_WORLD ranks 0 through 3 on n0, and ranks 4
                and 5 on n1.

                mpirun c0 C prog5
                Similar to the "prog3" example above, this runs "prog5"
                on CPU 0 *and* on each available CPU.  This executes
                *2* copies on the node where CPU 0 is (i.e., n0).
                This is probably not a useful use of the "C" notation;
                it is only shown here for an example.

Defaults:       -c2c -w -pty -nger -nsigs
-----------------------------------------------------------------------------
lele@archimede:~/OpenFOAM/OpenFOAM-v1812$
Since the compilation error, please see the attached file.

Samuele
Attached Files
File Type: txt log.txt (8.2 KB, 3 views)
samiam1000 is offline   Reply With Quote

Old   January 28, 2019, 04:34
Default
  #4
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 519
Rep Power: 15
samiam1000 is on a distinguished road
Hi Bruno,

I solved that issue by installing MPI again..

Now, I am getting a different error (see attachement).
Any hint?



Thanks,
Samuele
Attached Files
File Type: txt error.txt (7.7 KB, 11 views)
samiam1000 is offline   Reply With Quote

Old   January 29, 2019, 20:45
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,958
Blog Entries: 45
Rep Power: 122
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 answers:
  1. So the wrong MPI version was being used... mpirun pointed out that LAM was being used, instead of Open-MPI, hence the compilation problem.
  2. The error messages aren't complete in the log file, but try the following commands, which hopefully will clear up the issues and ambiguity in the error messages:
    Code:
    wclean $FOAM_SOLVERS/basic/laplacianFoam
    wmake all $FOAM_SOLVERS/basic/laplacianFoam > log.make.laplacian 2>&1
    gzip < log.make.laplacian > log.make.laplacian.gz
    • The "2>&1" will redirect the error messages into the standard output, so that this way everything is logged into the file "log.make.laplacian".
  3. Then attach the file "log.make.laplacian.gz" to your next post.
wyldckat is offline   Reply With Quote

Old   January 30, 2019, 08:46
Default
  #6
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 519
Rep Power: 15
samiam1000 is on a distinguished road
Thanks Bruno.

Attached, the file.


All the best,
Samuele
Attached Files
File Type: txt log.make.laplacian.txt (3.8 KB, 4 views)
samiam1000 is offline   Reply With Quote

Old   January 30, 2019, 20:00
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,958
Blog Entries: 45
Rep Power: 122
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: Why is LAM still being used as the default MPI toolbox... that is why you are still getting that error... oh, wait, it's because you had compiled OpenFOAM v1812 with LAM at first, but something went wrong and Open-MPI started to be picked up...

OK, I guess it's best to clean things up a bit and rebuild with Open-MPI. Hopefully the following commands will do the trick:
Code:
cd $WM_PROJECT_DIR

ln -s /usr/bin/mpicc.openmpi bin/mpicc
ln -s /usr/bin/mpirun.openmpi bin/mpirun

wclean all src/Pstream

wmRefresh
./Allwmake -j 4 > log.make 2>&1
Replace the "4" on the last line with the number of cores your machine as got, or a few cores fewer if there isn't enough RAM to match as many cores as you've got... I usually use the ratio of 1.5GB per core is needed to build in parallel, so 4 cores would need 6GB of RAM.

Once the last command finishes, you will have the complete output listed inside the file "log.make". Hopefully it builds properly this time.
wyldckat is offline   Reply With Quote

Old   January 31, 2019, 08:11
Default
  #8
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 519
Rep Power: 15
samiam1000 is on a distinguished road
It works properly and solved the issue.
Thanks a lot Bruno.

All the best,
Samuele
wyldckat likes this.
samiam1000 is offline   Reply With Quote

Old   February 5, 2019, 05:25
Default Installing problem
  #9
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 519
Rep Power: 15
samiam1000 is on a distinguished road
Dear All,

I am installing paraview along with Ubuntu 18.12..

While installing, I get this error:

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

ParaView_SOURCE_DIR=/home/lele/OpenFOAM/ThirdParty-v1812/ParaView-v5.6.0
ParaView_BUILD_DIR=/home/lele/OpenFOAM/ThirdParty-v1812/build/linux64Gcc/ParaView-5.6.0
ParaView_DIR=/home/lele/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
removing old build directory
    /home/lele/OpenFOAM/ThirdParty-v1812/build/linux64Gcc/ParaView-5.6.0
----
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/lele/OpenFOAM/ThirdParty-v1812/ParaView-v5.6.0
    Build          : /home/lele/OpenFOAM/ThirdParty-v1812/build/linux64Gcc/ParaView-5.6.0
    Target         : /home/lele/OpenFOAM/ThirdParty-v1812/platforms/linux64Gcc/ParaView-5.6.0
    cmake          : /usr/bin/cmake
    Build suffix   : none
----

/usr/bin/cmake -DCMAKE_INSTALL_PREFIX=/home/lele/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/lele/OpenFOAM/ThirdParty-v1812/ParaView-v5.6.0

----

-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.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.17.1") 
-- Could not use git to determine source version, using version 5.6.0
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - NOTFOUND
-- 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: vtkChartsCore;vtkCommonComputationalGeometry;vtkCommonCore;vtkCommonDataModel;vtkCommonExecutionModel;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkDomainsChemistry;vtkFiltersAMR;vtkFiltersCore;vtkFiltersExtraction;vtkFiltersFlowPaths;vtkFiltersGeneral;vtkFiltersGeneric;vtkFiltersGeometry;vtkFiltersHybrid;vtkFiltersHyperTree;vtkFiltersImaging;vtkFiltersModeling;vtkFiltersParallel;vtkFiltersParallelImaging;vtkFiltersPoints;vtkFiltersProgrammable;vtkFiltersSMP;vtkFiltersSelection;vtkFiltersSources;vtkFiltersStatistics;vtkFiltersTexture;vtkFiltersTopology;vtkFiltersVerdict;vtkIOAMR;vtkIOAsynchronous;vtkIOCore;vtkIOEnSight;vtkIOExodus;vtkIOGeometry;vtkIOImage;vtkIOImport;vtkIOInfovis;vtkIOLSDyna;vtkIOLegacy;vtkIOMINC;vtkIOMovie;vtkIONetCDF;vtkIOPLY;vtkIOParallel;vtkIOParallelXML;vtkIOSQL;vtkIOSegY;vtkIOTecplotTable;vtkIOVeraOut;vtkIOVideo;vtkIOXML;vtkIOXMLParser;vtkImagingColor;vtkImagingCore;vtkImagingFourier;vtkImagingGeneral;vtkImagingHybrid;vtkImagingMath;vtkImagingMorphological;vtkImagingSources;vtkImagingStatistics;vtkImagingStencil;vtkInfovisCore;vtkInfovisLayout;vtkParallelCore
-- Group MPI modules: vtkDomainsParallelChemistry;vtkFiltersParallelDIY2;vtkFiltersParallelGeometry;vtkFiltersParallelMPI;vtkFiltersParallelVerdict;vtkIOMPIImage;vtkIOMPIParallel;vtkIOParallelNetCDF;vtkParallelMPI;vtkdiy2
-- Group Imaging modules: vtkFiltersImaging;vtkImagingColor;vtkImagingFourier;vtkImagingGeneral;vtkImagingHybrid;vtkImagingMath;vtkImagingMorphological;vtkImagingSources;vtkImagingStatistics;vtkImagingStencil;vtkInteractionImage;vtkRenderingImage
-- Group Qt modules: vtkGUISupportQt;vtkGUISupportQtSQL;vtkRenderingQt;vtkViewsQt;vtkPVVTKExtensionsRendering;pqWidgets
-- Group Rendering modules: vtkGeovisCore;vtkIOExport;vtkIOExportPDF;vtkInteractionImage;vtkInteractionStyle;vtkInteractionWidgets;vtkRenderingAnnotation;vtkRenderingContext2D;vtkRenderingCore;vtkRenderingFreeType;vtkRenderingImage;vtkRenderingLOD;vtkRenderingLabel;vtkRenderingVolume;vtkViewsContext2D;vtkViewsCore;vtkViewsInfovis
-- Group Tk modules: vtkRenderingTk
-- Group Views modules: vtkViewsContext2D;vtkViewsGeovis
-- Group Web modules: vtkWebCore;vtkWebPython;vtkWebGLExporter
-- Group ParaViewCore modules: smTestDriver;vtkPVClientServerCoreCore;vtkPVCommon;vtkPVServerImplementationCore;vtkPVServerManagerCore;vtkPVVTKExtensionsCore
-- Group ParaViewRendering modules: vtkPVClientServerCoreRendering;vtkPVServerImplementationRendering;vtkPVServerManagerRendering;vtkPVVTKExtensionsRendering
-- Group ParaViewQt modules: pqApplicationComponents;pqComponents;pqCore;pqWidgets
-- Backend OpenGL2 modules: vtkDomainsChemistryOpenGL2;vtkIOExportOpenGL2;vtkImagingOpenGL2;vtkRenderingContextOpenGL2;vtkRenderingGL2PSOpenGL2;vtkRenderingLICOpenGL2;vtkRenderingOpenGL2;vtkRenderingOpenVR;vtkRenderingVolumeOpenGL2
-- 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/libOpenGL.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/lele/OpenFOAM/ThirdParty-v1812/build/linux64Gcc/ParaView-5.6.0/CMakeFiles/CMakeOutput.log".
See also "/home/lele/OpenFOAM/ThirdParty-v1812/build/linux64Gcc/ParaView-5.6.0/CMakeFiles/CMakeError.log".
lele@archimede:~/OpenFOAM/ThirdParty-v1812$

Could you help, please?


Thanks,
Samuele
samiam1000 is offline   Reply With Quote

Old   February 5, 2019, 17:56
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,958
Blog Entries: 45
Rep Power: 122
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: I've moved your post from the ParaView forum to the thread you had already created for OpenFOAM-v1812, given that it's part of the same building process.

The problem is that Qt5 is needed. I haven't tried building OpenFOAM-v1812 on Ubuntu 18.04, but I did with OpenFOAM-v1806 and instructions are written here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04

You need to do the following steps from those instructions:
  • Step 1
  • Step 3
  • Step 5
  • Then finally Step 10
wyldckat is offline   Reply With Quote

Old   June 21, 2019, 10:56
Default How to find missing installations
  #11
New Member
 
Jesper R. K. Qwist
Join Date: Dec 2017
Posts: 18
Rep Power: 4
Jesper_Roland is on a distinguished road
Hi everyone,


I have just spend some time on the Paraview installation. I would like to follow up on the post by wildcat on how I proceeded with the Qt5 installation.



1) I have installed "qt5-qmake" using the command
sudo apt install qt5-qmake


2) Now you need to tell the system to use Qt5:
export QT_SELECT=qt5


3) When you execute:
./makeParaview in the thirdparty directory!

my system told me that I was missing some packages. However it is not clear from the message what you should install.



Let just say you get this.
__________________________________________________ __________________________________________

CMake Error at CMakeLists.txt:14 (find_package): By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Core", but CMake did not find one. Could not find a package configuration file provided by "Qt5Core" (requested version 5.0) with any of the following names: Qt5CoreConfig.cmake qt5core-config.cmake Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set "Qt5Core_DIR" to a directory containing one of the above files. If "Qt5Core" provides a separate development package or SDK, be sure it has been installed.
__________________________________________________ ________________________________________________


So it cannot find Qt5CoreConfig.cmake. How do we fix this?



Follow these steps:



3.1) sudo apt update


3.2) apt-file search Qt5CoreConfig.cmake


3.3) It should now return a message similar to the following:
qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake


3.4) So we need to install qtbase5-dev. This is done with the command:
sudo apt install qtbase5-dev


3.5) Now you can run your the paraview compilation again:
./makeParaview



If you get a new error message, you should repeat step 3.2) to 3.5) searching for the new missing file.


My installation is now 70 % through, so I think this fixed my issues.



I hope this can help you guys!
Jesper_Roland is offline   Reply With Quote

Old   April 27, 2020, 01:01
Default thank you
  #12
New Member
 
MASc Student
Join Date: Sep 2016
Posts: 24
Rep Power: 6
New-to-CFD is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: Why is LAM still being used as the default MPI toolbox... that is why you are still getting that error... oh, wait, it's because you had compiled OpenFOAM v1812 with LAM at first, but something went wrong and Open-MPI started to be picked up...

OK, I guess it's best to clean things up a bit and rebuild with Open-MPI. Hopefully the following commands will do the trick:
Code:
cd $WM_PROJECT_DIR

ln -s /usr/bin/mpicc.openmpi bin/mpicc
ln -s /usr/bin/mpirun.openmpi bin/mpirun

wclean all src/Pstream

wmRefresh
./Allwmake -j 4 > log.make 2>&1
Replace the "4" on the last line with the number of cores your machine as got, or a few cores fewer if there isn't enough RAM to match as many cores as you've got... I usually use the ratio of 1.5GB per core is needed to build in parallel, so 4 cores would need 6GB of RAM.

Once the last command finishes, you will have the complete output listed inside the file "log.make". Hopefully it builds properly this time.


my god man thank you... I was literally at my wits end just going to give up...
New-to-CFD is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[OpenFOAM.org] Installing OpenFOAM 6 on Ubuntu 18.04 ld1305 OpenFOAM Installation 3 January 13, 2019 14:27
[OpenFOAM.org] OpenFOAM 3.0.1 in Ubuntu 18.04 jlr OpenFOAM Installation 4 January 3, 2019 13:57
[OpenFOAM.org] Issues installing openfoam 6 on Ubuntu 18.04 rnburne OpenFOAM Installation 2 October 20, 2018 17:29
[OpenFOAM.org] Installing OpenFOAM 2.3 on Ubuntu 18.04 Joe1best OpenFOAM Installation 13 August 24, 2018 14:46
Installing OpenFOAM 2.1.1 and ParaView 3.12.0 on Ubuntu 12.10 wyldckat OpenFOAM Installation 14 February 12, 2013 05:43


All times are GMT -4. The time now is 20:56.