|
[Sponsors] |
March 17, 2014, 13:35 |
Compile Thirdparty-2.3.0
|
#1 |
Member
Join Date: May 2013
Posts: 51
Rep Power: 13 |
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. Code:
source /opt/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc 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 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 put packages in /opt/OpenFOAM, untared and installed. seav Last edited by seav; March 17, 2014 at 15:29. |
|
March 18, 2014, 02:56 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
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.
|
|
March 18, 2014, 17:23 |
|
#3 |
Member
Join Date: May 2013
Posts: 51
Rep Power: 13 |
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 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 Code:
[jils@archlinux:PV4Readers]$ ./Allwmake ERROR: ParaView not found in /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0 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 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 seav |
|
March 20, 2014, 17:45 |
|
#4 |
Member
Join Date: May 2013
Posts: 51
Rep Power: 13 |
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. |
|
March 22, 2014, 07:30 |
|
#5 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
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
__________________
|
||
March 22, 2014, 15:35 |
|
#6 | |
Member
Join Date: May 2013
Posts: 51
Rep Power: 13 |
Hello Bruno, nice to see you here .
Quote:
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 Code:
cd $FOAM_TUTORIALS/incompressible/icoFoam/cavity blockMesh Code:
---> FOAM FATAL ERROR: Filed writing polyMesh. From function blockMesh in file blockMeshApp.c at line 325. FOAM exiting. 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 seav |
||
March 22, 2014, 15:48 |
|
#7 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
OK, two details:
Code:
which paraview
__________________
|
||
March 23, 2014, 02:02 |
|
#8 |
Member
Join Date: May 2013
Posts: 51
Rep Power: 13 |
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 |
|
March 23, 2014, 11:38 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
Best regards, Bruno
__________________
|
|
March 23, 2014, 17:08 |
|
#10 |
Member
Join Date: May 2013
Posts: 51
Rep Power: 13 |
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 have installed OF-2.2.2 since its work and everything is fine including paraFoam -block option. Thank you once again Bruno. seav |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
OF 1.6 ext on Ubuntu 12.10 (64 bit) compilation errors | dreamilam | OpenFOAM Installation | 7 | April 21, 2013 06:43 |
Thirdparty mesquite-2.1.2 compile fix for newer gcc | kmooney | OpenFOAM Bugs | 3 | May 10, 2012 10:27 |
PV3FoamReader compile error.... | PEM_GUY | OpenFOAM Installation | 6 | April 5, 2010 18:22 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |