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

[OpenFOAM.org] Problems building foamyHexMesh: CGAL missing?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2018, 05:46
Default
  #21
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Hello everyone,
as all the previous posters i have trouble compiling foamyMesh. I'm using OpenFoam 5 in an Ubuntu 16.04 installation based on the Windows Subsystem for Linux.
The error from the foamyMesh compilation is
Code:
lnInclude/CGALTriangulation3DKernel.H:36:43: fatal error: CGAL/Delaunay_triangulation_3.h: No such file or directory
This is the same problem the OP faced and i went straight to compile CGAL. So i downloaded the Third-Party-5.0 archive and ./Allclean + Allwmake'd it. The comilation runs fines, besides CGAL which gives
Code:
optional component was not found
Running the ./makeCGAL command seperately yields
Code:
Using system installation of CGAL
So it seems CGAL is installed in one way or another ?!. I also tried downloading CGAL from its website and instlling it seperately, but returnung the compiling foamyMesh still ends in an error.

Can somebody identify my error and help me out?

With best regards,
Robert
RobertHB is offline   Reply With Quote

Old   April 11, 2018, 06:07
Default
  #22
New Member
 
Syed Ashruf
Join Date: Nov 2012
Location: Chennai, India
Posts: 11
Rep Power: 13
ashrufsyed is on a distinguished road
Hi Robert,

Try to check whether cgal_version is set to cgal-system in OpenFOAM-5.0/etc/config.sh/CGAL file (Also check for other softwares in OpenFOAM-5.0/etc/config.sh/ folder )

Run the following command in terminal to make sure you installed cgal and other required libraries for cgal on ubuntu, and then re-compile:
sudo apt-get install libcgal-dev libcgal-demo libgmp-dev libgmp-dev libmpfr-dev

Also better to cross-check with the software to be installed for 16.04 from: http://openfoamwiki.net/index.php/In...OAM-dev/Ubuntu
RobertHB likes this.
ashrufsyed is offline   Reply With Quote

Old   April 11, 2018, 06:16
Default
  #23
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
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 notes:
RobertHB and Reptider like this.
__________________
wyldckat is offline   Reply With Quote

Old   April 11, 2018, 07:20
Default
  #24
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Quote:
Originally Posted by ashrufsyed View Post
Hi Robert,

Try to check whether cgal_version is set to cgal-system in OpenFOAM-5.0/etc/config.sh/CGAL file (Also check for other softwares in OpenFOAM-5.0/etc/config.sh/ folder )

Run the following command in terminal to make sure you installed cgal and other required libraries for cgal on ubuntu, and then re-compile:
sudo apt-get install libcgal-dev libcgal-demo libgmp-dev libgmp-dev libmpfr-dev
I changed cgal-system to cgal-4.11.1 and ran your apt-get line, which also installs libcgal-dev (thanks Bruno!). Finally foamyMesh compiles w/o problems.
RobertHB is offline   Reply With Quote

Old   April 11, 2018, 13:57
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
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
Quote:
Originally Posted by RobertHB View Post
I changed cgal-system to cgal-4.11.1
But... that would mean that you would not use the CGAL that you then installed in Ubuntu with apt...
Well, as long as it is now built and running properly, I guess that it's not worth double-checking what happened exactly
wyldckat is offline   Reply With Quote

Reply

Tags
foamyhexmesh


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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 11:12
Problems running in parallel - missing controlDict Argen OpenFOAM Running, Solving & CFD 4 June 7, 2012 03:50
Problems with Industrial Building Ventilation jjperez FLUENT 0 February 8, 2012 10:46
Doxygen documentation Tanay OpenFOAM Installation 9 September 23, 2011 11:40
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 00:48


All times are GMT -4. The time now is 06:08.