CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compile Thirdparty-2.3.0 (http://www.cfd-online.com/Forums/openfoam-installation/131570-compile-thirdparty-2-3-0-a.html)

seav March 17, 2014 13:35

Compile Thirdparty-2.3.0
 
Hello. After posting here : http://www.cfd-online.com/Forums/ope...oam-block.html I've decided to compile OpenFOAM from source. I followed : http://www.openfoam.org/download/source.php and succesfully compiled OpenFOAM-2.3.0. However, when I try to install Thridparty programs ./makeParaView4 give me an error :
Code:

[jils@archlinux:ThirdParty-2.3.0]$ ./makeParaView4
./makeParaView4: line 36: wmakeCheckPwd: nie znaleziono polecenia
Error: Current directory is not $WM_THIRD_PARTY_DIR
    The environment variables are inconsistent with the installation.
    Check the OpenFOAM entries in your dot-files and source them.

I do understand what it means. So I once again checked my ~/.bashrc at end I add(before i compiled OpenFOAM) and it worked:
Code:

source /opt/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc
I checked /etc/bash.bashrc nothing, .bashrc @ root nothing. When I am opening new terminal tab I see:
Code:

bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamEtcFile: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/etc/config/settings.sh: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/etc/config/aliases.sh: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamEtcFile: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamEtcFile: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamEtcFile: Nie ma takiego pliku ani katalogu
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamEtcFile: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: No such file or directory
bash: /home/jils/OpenFOAM/OpenFOAM-2.3.0/bin/foamCleanPath: No such file or directory

This is execution of bashrc I think.
Code:

[jils@archlinux:ThirdParty-2.3.0]$ $WM_THIRD_PARTY_DIR
bash: /home/jils/OpenFOAM/ThirdParty-2.3.0: No such file or directory

I am very disoriented what is happending and why it is not sourced from ~/.bashrc as I wanted.

I put packages in /opt/OpenFOAM, untared and installed.

seav

Bernhard March 18, 2014 02:56

Your source tree is in /opt/OpenFOAM/, while it is looking for /home/jils/OpenFOAM. Please check /opt/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc, and check all references and variables for consistensy to where you have put it.

seav March 18, 2014 17:23

Thank you for your reply, it helped. However, I got an error during the compilation :

Code:

Linking CXX static library libNPICAdaptor.a
make[5]: Leaving '/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/CoProcessing/Adaptors/NPICAdaptor'
[100%] Built target NPICAdaptor
make[4]: Leaving '/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/CoProcessing/Adaptors/NPICAdaptor'
make[3]: Leaving '/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/CoProcessing/Adaptors/NPICAdaptor'
[ 77%] Built target NPICAdaptor
[ 77%] Built target VTKData
[ 77%] Built target vtkEncodeString-launcher
[ 77%] Built target QVTKWidgetPlugin
[ 77%] Built target vtkParseJava
[ 77%] Built target vtkWrapHierarchy
[ 77%] Built target vtkWrapJava
[ 77%] Built target vtkWrapPython
[ 77%] Built target vtkWrapPythonInit
[ 77%] Built target vtkWrapTcl
[ 77%] Built target vtkWrapTclInit
[ 77%] Built target protobuf-lite
[ 78%] Built target QtTesting
[ 78%] Built target TestingDemo
[ 78%] Building CXX object Qt/Widgets/CMakeFiles/pqWidgets.dir/pqHelpWindow.cxx.o
/opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/Qt/Widgets/pqHelpWindow.cxx:56:21: fatal error: QWebPage: No such file or directory
 # include <QWebPage>
                    ^
compilation terminated.
Qt/Widgets/CMakeFiles/pqWidgets.dir/build.make:966: object command 'Qt/Widgets/CMakeFiles/pqWidgets.dir/pqHelpWindow.cxx.o' not succeed
make[2]: *** [Qt/Widgets/CMakeFiles/pqWidgets.dir/pqHelpWindow.cxx.o] Error 1
CMakeFiles/Makefile2:4238: object command 'Qt/Widgets/CMakeFiles/pqWidgets.dir/all' not succeed
make[1]: *** [Qt/Widgets/CMakeFiles/pqWidgets.dir/all] Error 2
Makefile:116: object commands 'all' not succeed
make: *** [all] Error 2
    ---
    Installation complete for paraview-4.1.0
    Set environment variables:

        export ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
    ---

Done

I noticed paraFoam command is tabbing so I followed :
Code:

[jils@archlinux:~]$ paraFoam --help

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
./Allwclean
./Allwmake

I went to this dir cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers and I tried to execute ./Allwmake script.
Code:

[jils@archlinux:PV4Readers]$ ./Allwmake
ERROR: ParaView not found in /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0

I assume it's fault with directory path to the ParaView-4.1.0. Can I manually edit enviromental variable :
Code:

export ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1

And replace them to this:
Code:

export ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1

It should do the trick right ?
seav

seav March 20, 2014 17:45

Ok. I succesfuly compiled OpenFOAM(..again) and ParaView. But I got error when I try to compile Readers.
Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
wmSET
./Allwclean
./Allwmake

Code:

SOURCE=vtkPV4Foam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0/include/paraview-4.1 -UHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV4Foam.o
In file included from vtkPV4FoamTemplates.C:31:0,
                from vtkPV4Foam.H:734,
                from vtkPV4Foam.C:26:
vtkOpenFOAMPoints.H:33:23: fatal error: vtkPoints.h: Nie ma takiego pliku ani katalogu
 #include "vtkPoints.h"
                      ^
compilation terminated.
vtkPV4Foam.dep:520: polecenia dla obiektu 'Make/linux64GccDPOpt/vtkPV4Foam.o' nie powiodły się
make: *** [Make/linux64GccDPOpt/vtkPV4Foam.o] Błąd 1
+ cd PV4FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
CMake Error at CMakeLists.txt:12 (FIND_PACKAGE):
  By not providing "FindParaView.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ParaView",
  but CMake did not find one.

  Could not find a package configuration file provided by "ParaView" with any
  of the following names:

    ParaViewConfig.cmake
    paraview-config.cmake

  Add the installation prefix of "ParaView" to CMAKE_PREFIX_PATH or set
  "ParaView_DIR" to a directory containing one of the above files.  If
  "ParaView" provides a separate development package or SDK, be sure it has
  been installed.


wyldckat March 22, 2014 07:30

Greetings to all!

@seav: OK, I'm a bit lost on how exactly you've reach to this point, but from what I can figure out:
  1. This folder:
    Code:

    /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0/include/paraview-4.1
    If it does not exist, then that means that ParaView was not built with success. Which is why you get the error about the missing "vtkPoints.h".
  2. Quote:

    Originally Posted by seav (Post 480738)
    Code:

    [ 78%] Building CXX object Qt/Widgets/CMakeFiles/pqWidgets.dir/pqHelpWindow.cxx.o
    /opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/Qt/Widgets/pqHelpWindow.cxx:56:21: fatal error: QWebPage: No such file or directory
     # include <QWebPage>
                        ^
    compilation terminated.


    This means that QtWebKit is missing. A very similar bug report was made the other day: http://www.openfoam.org/mantisbt/view.php?id=1219 - On openSUSE the problem is solved if we install:
    Code:

    libQtWebKit-devel qt4-assistant-adp-devel qt4-x11-tools
    Problem is that I have no idea what the names for these packages are in ArchLinux :(
  3. Quote:

    Originally Posted by seav (Post 480738)
    I noticed paraFoam command is tabbing so I followed :

    The correct tell-tale sign is actually to try tabbing "paraview", because paraFoam is only a wrapper script for calling paraview and opening the ".OpenFOAM" file.
  4. Quote:

    Originally Posted by seav (Post 480738)
    And replace them to this:
    Code:

    export ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0
            export PATH=$ParaView_DIR/bin:$PATH
            export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1


    Sorry, but not a good idea. That is only a hack to attempt building the plug-ins, even though ParaView has not fully built yet. If point #2 is fixed, then this hack is not needed.

Do you know if Manjaro is similar enough to ArchLinux? Because if it is, then I can try to give it a try and write build instructions for it.

Best regards,
Bruno

seav March 22, 2014 15:35

Hello Bruno, nice to see you here :).

Quote:

Originally Posted by wyldckat (Post 481448)
Greetings to all!
@seav: OK, I'm a bit lost on how exactly you've reach to this point

  1. I have been deleted previous install.
  2. I did download again the soruces.
  3. Followed http://www.openfoam.org/download/source.php again.
  4. After succesfully compiled OF I went to ThirdParty programs folder.
  5. Used ./Allwclean && ./Allwmake commands.
  6. Paraview was compiled. I can run it from terminal. It gives me the same error what compilation from AUR package(libpng warrning: iCCp: Not recognizing know sRGB profile that has been edited). However it works.

After that I got an error when I tried to use paraFoam. I've got this message:
Code:

cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
wmSET
./Allwclean
./Allwmake

I tried check if OpenFOAM works fine I wanted check cavity case :
Code:

cd $FOAM_TUTORIALS/incompressible/icoFoam/cavity
blockMesh

Here I got an error :
Code:

---> FOAM FATAL ERROR:
Filed writing polyMesh.

      From function blockMesh
      in file blockMeshApp.c at line 325.

FOAM exiting.

I think its becouse Readers are not compiled, but I might be wrong.Becouse :
Code:

Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              archlinux
OS:                Linux version 3.13.6-1-ARCH
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /opt/OpenFOAM                            yes      yes
$WM_PROJECT_USER_DIR /home/jils/OpenFOAM/jils-2.3.0          no        no
$WM_THIRD_PARTY_DIR  /opt/OpenFOAM/ThirdParty-2.3.0          yes      yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /opt/OpenFOAM/OpenFOAM-2.3.0            yes  yes  yes

$FOAM_APPBIN        ...-2.3.0/platforms/linux64GccDPOpt/bin  yes  yes  yes
$FOAM_SITE_APPBIN    .../2.3.0/platforms/linux64GccDPOpt/bin  no        no
$FOAM_USER_APPBIN    ...-2.3.0/platforms/linux64GccDPOpt/bin  no        no
$WM_DIR              /opt/OpenFOAM/OpenFOAM-2.3.0/wmake      yes  yes  yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN        ...-2.3.0/platforms/linux64GccDPOpt/lib  yes  yes  yes
$FOAM_SITE_LIBBIN    .../2.3.0/platforms/linux64GccDPOpt/lib  no        no
$FOAM_USER_LIBBIN    ...-2.3.0/platforms/linux64GccDPOpt/lib  no        no
$MPI_ARCH_PATH      ...0/platforms/linux64Gcc/openmpi-1.6.5  yes  yes  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version  Location
-------------------------------------------------------------------------------
flex    2.5.38    /usr/bin/flex                                           
gcc      4.8.2    /usr/bin/gcc                                           
gzip    1.6      /usr/bin/gzip                                           
tar      1.27.1    /usr/bin/tar                                           
icoFoam  2.3.0    ...M/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.
Critical systems ok.

Done

Unfortunately Manjaro's webside claims that Manjaro Linux and Arch linux are different kind of "beasts". So I've figured solutions for Manjaro might not work..but I will try everything to get OpenFOAM and Paraview working fine on my Arch.

seav

wyldckat March 22, 2014 15:48

OK, two details:
  1. Building the readers for ParaView should be performed as root, since you installed OpenFOAM as root.
  2. When in normal user mode, follow the standard procedure for using your own copy of the tutorials: http://www.openfoam.org/download/source.php
    Quote:

    Code:

    mkdir -p $FOAM_RUN
    cp -r $FOAM_TUTORIALS $FOAM_RUN
    cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
    blockMesh
    icoFoam
    paraFoam


As for ParaView, what does this command give you?
Code:

which paraview

seav March 23, 2014 02:02

As root the error is the same :
Code:

[root@archlinux:PV4Readers]# ./Allwmake
SOURCE=vtkPV4Readers.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0/include/paraview-4.1 -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV4Readers.o
vtkPV4Readers.C:35:35: fatal error: vtkDataArraySelection.h: Nie ma takiego pliku ani katalogu
 #include "vtkDataArraySelection.h"
                                  ^
compilation terminated.
vtkPV4Readers.dep:110: polecenia dla obiektu 'Make/linux64GccDPOpt/vtkPV4Readers.o' nie powiodły się
make: *** [Make/linux64GccDPOpt/vtkPV4Readers.o] Błąd 1
+ '[' -d /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0 -a -r /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0 ']'
+ wmake libso vtkPV4blockMesh
SOURCE=vtkPV4blockMesh.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0/include/paraview-4.1 -I../../vtkPV4Readers/lnInclude -I../PV4blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV4blockMesh.o
In file included from vtkPV4blockMesh.C:27:0:
../PV4blockMeshReader/vtkPV4blockMeshReader.h:42:43: fatal error: vtkMultiBlockDataSetAlgorithm.h: Nie ma takiego pliku ani katalogu
 #include "vtkMultiBlockDataSetAlgorithm.h"
                                          ^
compilation terminated.
vtkPV4blockMesh.dep:347: polecenia dla obiektu 'Make/linux64GccDPOpt/vtkPV4blockMesh.o' nie powiodły się
make: *** [Make/linux64GccDPOpt/vtkPV4blockMesh.o] Błąd 1
+ cd PV4blockMeshReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
CMake Error at CMakeLists.txt:12 (FIND_PACKAGE):
  By not providing "FindParaView.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ParaView",
  but CMake did not find one.

  Could not find a package configuration file provided by "ParaView" with any
  of the following names:

    ParaViewConfig.cmake
    paraview-config.cmake

  Add the installation prefix of "ParaView" to CMAKE_PREFIX_PATH or set
  "ParaView_DIR" to a directory containing one of the above files.  If
  "ParaView" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!
See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64GccDPOpt/CMakeFiles/CMakeOutput.log".
+ make
make: *** Nie podano obiektów i nie znaleziono makefile. Stop.
+ '[' -d /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0 -a -r /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0 ']'
+ wmake libso vtkPV4Foam
SOURCE=vtkPV4Foam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0/include/paraview-4.1 -UHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV4Foam.o
In file included from vtkPV4FoamTemplates.C:31:0,
                from vtkPV4Foam.H:734,
                from vtkPV4Foam.C:26:
vtkOpenFOAMPoints.H:33:23: fatal error: vtkPoints.h: Nie ma takiego pliku ani katalogu
 #include "vtkPoints.h"
                      ^
compilation terminated.
vtkPV4Foam.dep:520: polecenia dla obiektu 'Make/linux64GccDPOpt/vtkPV4Foam.o' nie powiodły się
make: *** [Make/linux64GccDPOpt/vtkPV4Foam.o] Błąd 1
+ cd PV4FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
CMake Error at CMakeLists.txt:12 (FIND_PACKAGE):
  By not providing "FindParaView.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ParaView",
  but CMake did not find one.

  Could not find a package configuration file provided by "ParaView" with any
  of the following names:

    ParaViewConfig.cmake
    paraview-config.cmake

  Add the installation prefix of "ParaView" to CMAKE_PREFIX_PATH or set
  "ParaView_DIR" to a directory containing one of the above files.  If
  "ParaView" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!
See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64GccDPOpt/CMakeFiles/CMakeOutput.log".
+ make
make: *** Nie podano obiektów i nie znaleziono makefile. Stop.

Code:

[root@archlinux:PV4Readers]# which paraview
/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0/bin/paraview

seav

wyldckat March 23, 2014 11:38

Hi seav,

I don't know what it is, but something is not right with the installation of ParaView. Knowing the details of how you built ParaView 4.1.0 would be helpful.
Anyway, let's try this - as root:
  1. Run the makeParaView4 script once again and be sure to use the same options you used before, but add the option "-no-config", along with piping the full output into a log file:
    Code:

    cd $WM_THIRD_PARTY_DIR
    ./makeParaView4 -no-config > log.makePV 2>&1

    Since this doesn't won't redo the configuration, it means that it will reused the last building procedure from the "build" folder. It will make it easier to spot any errors.
  2. Check the contents of the file "log.makePV" and look for errors. If possible, please attach the log file (in zip or tar.gz), so that I can also have a look into it.
In addition, what modifications did you make to OpenFOAM's "etc/bashrc" file, if any?

Best regards,
Bruno

seav March 23, 2014 17:08

Thank you for your replies. It was very useful and helpful.

After moment without an idea I decided to install previous version. And I have found what I`ve missed in paraview4.1.0.

Code:

cd $WM_THIRD_PARTY_DIR
./makeParaView -qmake $(which qmake-qt4)

I've used ./makeParaView -qmake $(which qmake). That was my big mistake. I bet that package in Arch User Repo is wrong configured with Qt.

I have installed OF-2.2.2 since its work and everything is fine including paraFoam -block option.

Thank you once again Bruno.
seav


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