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

[OpenFOAM.org] CGAL/Delaunay_triangulation_2.h

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By lele

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2015, 11:48
Default CGAL/Delaunay_triangulation_2.h
  #1
New Member
 
emanuele lombardi
Join Date: Jul 2015
Posts: 3
Rep Power: 10
lele is on a distinguished road
I'm new to OpenFOAM and I'm trying to install version 2.4.0 on my SLES11SP3 machine.

I followed the instructions found at https://openfoamwiki.net/index.php/I...nux_Enterprise

I first run Allwmake in ThirdParty-2.4.0 and then in OpenFOAM-2.4.0
The first Allwmake went went smoothly without any problem, but the Allwmake in OpenFOAM-2.4.0 is faulty. Errors are like the following one:

Code:
In file included from CGALTriangulation2Ddefs.H:44:0,
                 from CV2D.H:120,
                 from insertBoundaryConformPointPairs.C:26:
CGALTriangulation2DKernel.H:36:43: fatal error: CGAL/Delaunay_triangulation_2.h: No such file or directory
The file Delaunay_triangulation_2.h is not found by the script but there are two of them!
Code:
find . -name Delaunay_triangulation_2.h
./ThirdParty-2.4.0/CGAL-4.6/include/CGAL/Kinetic/Delaunay_triangulation_2.h
./ThirdParty-2.4.0/CGAL-4.6/include/CGAL/Delaunay_triangulation_2.h
Can anybody help me?
thankk you from Italy,
Lele

Last edited by wyldckat; August 2, 2015 at 15:38. Reason: Added [CODE][/CODE] markers and removed text formatting, the font was too small.
lele is offline   Reply With Quote

Old   August 2, 2015, 15:40
Default
  #2
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
Greetings Lele and welcome to the forum!

Please run the following commands:
Code:
cd $WM_THIRD_PARTY_DIR
 
./Allwmake > make.log 2>&1

gzip < make.log > make.log.gz

pwd
And then attach the file "make.log.gz" to your next post. The file is located in the folder pointed out by the last command.
I need this file for diagnosing the problem.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 3, 2015, 03:38
Default
  #3
New Member
 
emanuele lombardi
Join Date: Jul 2015
Posts: 3
Rep Power: 10
lele is on a distinguished road
Dear Bruno,
thanks for your help.
Please find the log of my Allwmake in ThirdParty.
It is the original log, the one I got when I compiled OpenFOAM.
I don't succeed in attaching the log of OpenFOAM compilation because it's too large.

Please note that I'm using gcc5.2 (since my gcc was too old and I had to build a newer one, I decided to build the latest)

Ciao,
Emanuele
Attached Files
File Type: gz ThirdParty_make.log.gz (33.1 KB, 3 views)
lele is offline   Reply With Quote

Old   August 4, 2015, 17:50
Default
  #4
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
Hi Emanuele,

Unfortunately I haven't had to the opportunity to test building OpenFOAM in SLE 11, which is why the instructions aren't on the wiki yet. This to say that the instructions that are meant for SLE 12 rely on the system's Boost toolbox, but the one in SLE 11 is too old to be used for building CGAL.

Nonetheless, there are some bits and pieces that you can use from these instructions: https://openfoamwiki.net/index.php/I...EL#CentOS_5.11 - namely:
  1. You will need to change the Boost version to be used, by running:
    Code:
    cd $WM_PROJECT_DIR
    sed -i -e 's=boost-system=boost_1_54_0=' OpenFOAM-2.4.0/etc/config/CGAL.sh
  2. Then set-up things needed for building this Boost version:
    Code:
    cd $WM_THIRD_PARTY_DIR
    alias wget="wget --no-check-certificate"
    wget "https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getBoost"
    chmod +x get*
    ./getBoost
    sed -i -e 's=boost-system=boost_1_54_0=' makeCGAL
  3. In addition, Open-MPI was not built with success. This can be fixed as reported here: http://www.openfoam.org/mantisbt/view.php?id=1770#c5036 - namely by running:
    Code:
    wget www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.5.tar.gz
    tar -xf openmpi-1.8.5.tar.gz
  4. Then you can run once again:
    Code:
    ./Allwmake > make.log 2>&1
    If all goes well, this should now build with success all of the desired packages that are expected to be built with this command.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 5, 2015, 07:43
Default
  #5
New Member
 
emanuele lombardi
Join Date: Jul 2015
Posts: 3
Rep Power: 10
lele is on a distinguished road
Hi Bruno,
thanks to your help now I have a running system!
Since my gcc5.2 is in /usr/local I had to add /usr/local/lib64 in $LD_LIBRARY_PATH to let the installation test run.

Dear Bruno,
thanks a lot,
Emanuele


Executing /usr/local/src/OpenFOAM/OpenFOAM-2.4.0/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: tcsh
Host: giotto
OS: Linux version 3.0.101-0.47.55-default
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /usr/local/src/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /root/OpenFOAM/root-2.4.0 yes no
$WM_THIRD_PARTY_DIR /usr/local/src/OpenFOAM/ThirdParty-2.4.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 /usr/local/src/OpenFOAM/OpenFOAM-2.4.0 yes yes yes

$FOAM_APPBIN ...-2.4.0/platforms/linux64GccDPOpt/bin yes yes yes
$FOAM_SITE_APPBIN .../2.4.0/platforms/linux64GccDPOpt/bin no no
$FOAM_USER_APPBIN ...-2.4.0/platforms/linux64GccDPOpt/bin no no
$WM_DIR ...al/src/OpenFOAM/OpenFOAM-2.4.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.4.0/platforms/linux64GccDPOpt/lib yes yes yes
$FOAM_SITE_LIBBIN .../2.4.0/platforms/linux64GccDPOpt/lib no no
$FOAM_USER_LIBBIN ...-2.4.0/platforms/linux64GccDPOpt/lib no no
$MPI_ARCH_PATH ...0/platforms/linux64Gcc/openmpi-1.8.5 yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
flex 2.5.35 /usr/bin/flex
gcc 5.2.0 /usr/local/bin/gcc
g++ 5.2.0 /usr/local/bin/g++
gzip 1.3.12 /bin/gzip
tar 1.26 /bin/tar
icoFoam 2.4.0 ...M/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/icoFoam
-------------------------------------------------------------------------------


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

Done
wyldckat likes this.
lele is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 23:55.