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

[OpenFOAM.com] surfaceFeatures not properly installed in of v1906

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

Like Tree1Likes
  • 1 Post By marluc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2019, 13:59
Default Compilation error OF v1906: surfaceFeatures not properly installed [SOLVED]
  #1
Member
 
Luca
Join Date: Mar 2011
Location: Italy
Posts: 59
Rep Power: 10
marluc is on a distinguished road
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

Last edited by marluc; August 8, 2019 at 04:24. Reason: Solved - Thread closed
marluc is offline   Reply With Quote

Old   August 3, 2019, 17:55
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,943
Blog Entries: 42
Rep Power: 121
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 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.
__________________
wyldckat is offline   Reply With Quote

Old   August 4, 2019, 04:42
Default
  #3
Member
 
Luca
Join Date: Mar 2011
Location: Italy
Posts: 59
Rep Power: 10
marluc is on a distinguished road
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
Attached Files
File Type: gz log.make.gz (5.4 KB, 3 views)
marluc is offline   Reply With Quote

Old   August 4, 2019, 07:11
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,943
Blog Entries: 42
Rep Power: 121
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
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
wyldckat is offline   Reply With Quote

Old   August 4, 2019, 07:50
Default
  #5
Member
 
Luca
Join Date: Mar 2011
Location: Italy
Posts: 59
Rep Power: 10
marluc is on a distinguished road
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
marluc is offline   Reply With Quote

Old   August 4, 2019, 12:34
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,943
Blog Entries: 42
Rep Power: 121
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 really need the full log file. It's because there are bits and pieces throughout the log file that have the necessary information.
wyldckat is offline   Reply With Quote

Old   August 4, 2019, 14:15
Default
  #7
Member
 
Luca
Join Date: Mar 2011
Location: Italy
Posts: 59
Rep Power: 10
marluc is on a distinguished road
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
marluc is offline   Reply With Quote

Old   August 4, 2019, 15:20
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,943
Blog Entries: 42
Rep Power: 121
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: 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.
wyldckat is offline   Reply With Quote

Old   August 7, 2019, 07:59
Default
  #9
Member
 
Luca
Join Date: Mar 2011
Location: Italy
Posts: 59
Rep Power: 10
marluc is on a distinguished road
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 ParaView-5.4.0 installation 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.

Last edited by marluc; August 7, 2019 at 08:44. Reason: Information added
marluc is offline   Reply With Quote

Old   August 8, 2019, 04:23
Default Compilation error OF v1906: surfaceFeatures not properly installed [SOLVED]
  #10
Member
 
Luca
Join Date: Mar 2011
Location: Italy
Posts: 59
Rep Power: 10
marluc is on a distinguished road
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
wyldckat likes this.
marluc 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
[foam-extend.org] foam-extend-4.0 Debian Testing bison problem fseterr.c brett1 OpenFOAM Installation 9 September 30, 2019 23:36
Issues with poor performance in faster CPU gian93 Hardware 9 October 29, 2018 14:34
SU2_PRT & Metis Not Functioning Properly ericthefatguy SU2 1 January 1, 2015 20:04
unable to install openfoam 1.7 using apt-get maazhmd OpenFOAM Installation 7 July 24, 2011 12:18
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56


All times are GMT -4. The time now is 02:25.