CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] surfaceFeatures not properly installed in of v1906 (https://www.cfd-online.com/Forums/openfoam-installation/219567-surfacefeatures-not-properly-installed-v1906.html)

marluc July 31, 2019 13:59

Compilation error OF v1906: surfaceFeatures not properly installed [SOLVED]
 
Dear all,

after compiling of v1906 on Ubuntu 16.04 LTS I figure out that the some components have not been installed even if the check after installation is ok. For example, 'surfaceFeatureExtract' is not present as well as many 'surface' tools. By looking at the log file I discovered the following errors:
Code:

/home/marluc/OpenFOAM/OpenFOAM-v1906/wmake/makefiles/apps:29: recipe for target 'surfaceBooleanFeatures' failed
make[1]: *** [surfaceBooleanFeatures] Error 2
/home/marluc/OpenFOAM/OpenFOAM-v1906/wmake/makefiles/apps:29: recipe for target 'surface' failed
make: *** [surface] Error 2

I think that the problem lies there. Has someone an idea how to fix the problem?

Moreover I cannot compile Paraview 5.6 (but also 5.4 fails). The encountered error is the following:
Code:

[ 62%] Built target vtkRenderingVolume
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Command exited with non-zero status 2

Thank you in advance,
Luca

wyldckat August 3, 2019 17:55

Quick answer: I haven't had a chance to build OpenFOAM-v1906 on Ubuntu 16.04, so I have no idea what might be going wrong. Although knowing which installation instructions you've followed would possibly have helped a bit...

To assess what's going on, please run the following commands:
Code:

cd $WM_PROJECT_DIR
 ./Allwmake > log.make 2>&1
gzip < log.make > log.make.gz

Then attach the file "log.make.gz" to your next post.

As for ParaView, it's likely due to missing packages for Qt5, which are needed for ParaView 5.6.

As for failing with ParaView 5.4... you might want to try installing the packages listed here: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 - and in step #9 are instructions for compiling ParaView. They will give you the log file "log.makePV", which you can package as so:
Code:

gzip < log.makePV > log.makePV.gz
and attach the file "log.makePV.gz" to your next post as well, in case it doesn't build properly.

marluc August 4, 2019 04:42

1 Attachment(s)
Dear Bruno,

thank you very much for your reply and precious help.

Regarding the installation I followed the instructions from the official website: https://www.openfoam.com/code/build-guide.php

Attached you can find the log file with the encountered errors of the compilation of OF. Actually the installation check seems to be ok but many surfaceFeatures are not available, e.g. surfaceFeatureExtract of surfaceCheck. You can find in the log some compilation errors which I think are linked to these.

Regarding Paraview I will try to install v5.4 following the instructions you posted and then I will post the log file.

Thank you in advance for your time.
Best,
Luca

wyldckat August 4, 2019 07:11

Hi Luca,

This is very strange... "gmp.h" was not found... but how did you build CGAL in the first place?...

Is the package "libgmp-dev" installed via apt?

If it is installed, then edit the file "wmake/rules/General/CGAL" in "OpenFOAM-v1906" and change add the entry for the path for "gmp.h"... for example, find this line:
Code:

    -I/usr/local/include \
and add this below it:
Code:

    -I/usr/local/include \
    -I/usr/include/x86_64-linux-gnu \

Then you can run Allwmake once again and it should finally work as intended.

Best regards,
Bruno

marluc August 4, 2019 07:50

Dear Bruno,

that made the trick! You are always number one! Thanks for your help, I really appreciate it.

Regarding Paraview I attach you here the error I receive. I am sorry but I always receive errors from the site when uploading the log file. If you need it I will find a solution anyway.

I followed the instruction you posted but unsuccessfully.
Code:

[ 87%] Linking CXX static library ../../lib/libvtkPVServerManagerRenderingCS-pv5.4.a
[ 87%] Built target vtkPVServerManagerRenderingCS
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Command exited with non-zero status 2

Thanks again,
Luca

wyldckat August 4, 2019 12:34

Quick answer: I really need the full log file. It's because there are bits and pieces throughout the log file that have the necessary information.

marluc August 4, 2019 14:15

Dear Bruno,
please find here the link to the log file of Paraview (it is on Dropbox):
https://www.dropbox.com/s/sla6hpw270...makePV.gz?dl=0


Thank you in advance.
Ciao,
Luca

wyldckat August 4, 2019 15:20

Quick answer: :eek: How? How did the log file get this large??? Nearly 430MB... it has a ton of warnings about this and that...

OK, so the problem is that Anaconda is being picked up and used to compile ParaView... This is the primary error message that indicates what's wrong:
Code:

[ 86%] CS Wrapping - generating vtkSMViewLayoutProxyClientServer.cxx
[ 86%] CS Wrapping - generating vtkSMViewProxyClientServer.cxx
/usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_generate@UUID_1.0'
/usr/lib/x86_64-linux-gnu/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
collect2: error: ld returned 1 exit status
Utilities/LegacyColorMapXMLToJSON/CMakeFiles/vtkLegacyColorMapXMLToJSON.dir/build.make:201: recipe for target 'bin/vtkLegacyColorMapXMLToJSON' failed
make[2]: *** [bin/vtkLegacyColorMapXMLToJSON] Error 1
CMakeFiles/Makefile2:14889: recipe for target 'Utilities/LegacyColorMapXMLToJSON/CMakeFiles/vtkLegacyColorMapXMLToJSON.dir/all' failed
make[1]: *** [Utilities/LegacyColorMapXMLToJSON/CMakeFiles/vtkLegacyColorMapXMLToJSON.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

The problem is that Anaconda was compiled with another Linux Distribution and/or version, which has different compilers and libraries. Therefore, it's not possible to build ParaView while Anaconda is loaded into the shell environment.

You need to edit your "~/.bashrc" file and comment out the line for Anaconda loading, or change that line to use an alias command.
Then start a new terminal and try building ParaView once again.

marluc August 7, 2019 07:59

Dear Bruno,

thank you for your reply and help. Now it compiles (v 5.4.0) even though I still receive a lot of warnings and the log file is 460 MB!

I also use the same Paraview version with OF5.x and it works. After compilation I receive now an error message when running Paraview and it crashes thereafter. It has to do with OpenGL. The strange thing is that it works with OF5.x but probably I managed do fix it and I don't remenber how ;-). Do you have a solution for this as well?

In this post https://www.cfd-online.com/Forums/op...tallation.html you suggest to compile Paraview with the option -rendering OpenGL. Should I try to recompile it with the following command?

Code:

./makeParaView -python -mpi -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 -rendering OpenGL > log.makePV 2>&1
Thank you in advance.
Ciao,
Luca

Code:

ERROR: In /home/marluc/OpenFOAM/ThirdParty-v1906/ParaView-5.4.0/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 831
vtkXOpenGLRenderWindow (0x2387f90): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

ERROR: In /home/marluc/OpenFOAM/ThirdParty-v1906/ParaView-5.4.0/VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 816
vtkXOpenGLRenderWindow (0x2387f90): failed to create offscreen window

ERROR: In /home/marluc/OpenFOAM/ThirdParty-v1906/ParaView-5.4.0/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 819
vtkXOpenGLRenderWindow (0x2387f90): GLEW could not be initialized.

ERROR: In /home/marluc/OpenFOAM/ThirdParty-v1906/ParaView-5.4.0/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 831
vtkXOpenGLRenderWindow (0x29ca5c0): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.


marluc August 8, 2019 04:23

Compilation error OF v1906: surfaceFeatures not properly installed [SOLVED]
 
Hi,

I recompiled Paraview 5.4.0 in the directory ThirdParty-v1906 with the following option and it works now:
Code:

./makeParaView -python -mpi -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 VTK_RENDERING_BACKEND=OpenGL -no-gl2  > log.makePV 2>&1 &
So I basically disable OpenGL2 with the option -no-gl2 and enable OpenGL with the option VTK_RENDERING_BACKEND=OpenGL.

Ciao,
Luca


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