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   February 24, 2014, 19:22
Default Problems building foamyHexMesh: CGAL missing?
  #1
Member
 
laurentL
Join Date: Oct 2011
Location: new caledonia
Posts: 73
Rep Power: 15
laurent98 is on a distinguished road
Hi,
i just compile OF2.3 everythinks work fine except foamyHexMesh: in the log file there is:

/opt/OpenFOAM-2.3.0/bin/tools/RunFunctions: line 52: foamyHexMesh: command not found
any idea?
thank you. LL

here the error message when i try to wmake the application:
linux-dgf5:/opt/OpenFOAM-2.3.0/applications/utilities/mesh/generation # wmake foamyHexMesh
SOURCE=foamyHexMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -frounding-math -DNDEBUG -DCGAL_INEXACT -I/opt/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include -I/include -I/include -I/opt/ThirdParty-2.3.0/platforms/linux64Gcc/boost-system/include -IconformalVoronoiMesh/lnInclude -I/opt/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM-2.3.0/src/parallel/decompose/decompositionMethods/lnInclude -I/opt/OpenFOAM-2.3.0/src/edgeMesh/lnInclude -I/opt/OpenFOAM-2.3.0/src/fileFormats/lnInclude -I/opt/OpenFOAM-2.3.0/src/dynamicMesh/lnInclude -I/opt/OpenFOAM-2.3.0/src/triSurface/lnInclude -I/opt/OpenFOAM-2.3.0/src/sampling/lnInclude -I/opt/OpenFOAM-2.3.0/src/mesh/autoMesh/lnInclude -IvectorTools -IlnInclude -I. -I/opt/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/foamyHexMesh.o
In file included from conformalVoronoiMesh/lnInclude/CGALTriangulation3Ddefs.H:41:0,
from conformalVoronoiMesh/lnInclude/conformalVoronoiMesh.H:44,
from foamyHexMesh.C:36:
conformalVoronoiMesh/lnInclude/CGALTriangulation3DKernel.H:36:43: fatal error: CGAL/Delaunay_triangulation_3.h: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/foamyHexMesh.o] Error 1


it look likek i miss CGAL/Delaunay_triangulation_3.h ???

Last edited by laurent98; February 24, 2014 at 22:22.
laurent98 is offline   Reply With Quote

Old   February 25, 2014, 03:43
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Yes, foamyHexMesh needs CGAL library to be built (CGAL in turn depends on boost, gmp, and mpfr). CGAL is in ThirdParty source pack but it won't build without dependencies and consequently foamyHexMesh will refuse to build.
alexeym is offline   Reply With Quote

Old   February 25, 2014, 03:49
Default
  #3
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 647
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

I had a similar problem. I checked the thirdparty folder and ran the Allwmake script there a couple of times to make sure everything was compiled correctly. I also had to install or update some additional packages. Sometimes I had to update the environment variables in between running the Allwmake script. I suggest you start with the thirdparty folder and look at the error messages there. Probably you can work your way through them.

Regards,
Tom
tomf is offline   Reply With Quote

Old   February 25, 2014, 17:46
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Did you have to install the boost-dev package? I found I had to install that AND add the cgal library to the options file.
mturcios777 is offline   Reply With Quote

Old   February 25, 2014, 23:23
Default
  #5
Member
 
laurentL
Join Date: Oct 2011
Location: new caledonia
Posts: 73
Rep Power: 15
laurent98 is on a distinguished road
thanks to all,
@mturcios777
yes, i'am on opensuse,12.3, i did a:
zypper install cmake libqt4-devel boost-devel gnuplot
how do you install boost-devl? how do you add options?


i try to compile from source and follow exactly
http://www.openfoam.org/download/source.php..
but it look like it s not enough, openfoam paraFoam works well but not foamyHexMesh.
so i built gmp5.0.4 and mpfr3.1.0 manually doing now mpc0.9,
yast or zypper install boost 1.49, in general may be older version than openfoam need?
for example in Thirdparty when i do as su ./makeGcc, it ask for newer version of gmp or mpfr, than the one install with yast...

i never add so much problems before to install older version of OpenFoam... it turm me crazy!!!
laurent98 is offline   Reply With Quote

Old   February 26, 2014, 04:36
Default
  #6
Member
 
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14
billie is on a distinguished road
Quote:
Originally Posted by laurent98 View Post
thanks to all,
@mturcios777
yes, i'am on opensuse,12.3, i did a:
zypper install cmake libqt4-devel boost-devel gnuplot
how do you install boost-devl? how do you add options?


i try to compile from source and follow exactly
http://www.openfoam.org/download/source.php..
but it look like it s not enough, openfoam paraFoam works well but not foamyHexMesh.
so i built gmp5.0.4 and mpfr3.1.0 manually doing now mpc0.9,
yast or zypper install boost 1.49, in general may be older version than openfoam need?
for example in Thirdparty when i do as su ./makeGcc, it ask for newer version of gmp or mpfr, than the one install with yast...

i never add so much problems before to install older version of OpenFoam... it turm me crazy!!!
I am not familiar with Suse, but did you really follow the instructions and install the dependent packages required for OpenSuSE using the following commands:

zypper install -t pattern devel_C_C++
zypper install cmake libqt4-devel boost-devel gnuplot

Were the commands successful?

I had the same problem on Ubuntu were boost was missing as well. After installing boost, cgal from Thirdparty compiled fine.

It would be helpful if you provide the first lines of output for the Thirdparty programs from the ./Allwmake script. Here it looks like this:

Code:
========================================
Start ThirdParty Allwmake
========================================

========================================
Build MPI libraries if required

    have OPENMPI shared library (openmpi-1.6.5)

========================================
Build Scotch decomposition library scotch_6.0.0
    /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/scotch_6.0.0
    scotch header in /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/scotch_6.0.0/include
    scotch libs   in /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64GccDPOpt/lib

========================================
Build PTScotch decomposition library scotch_6.0.0 (uses MPI)
    /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/scotch_6.0.0

    ptscotch header in /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/scotch_6.0.0/include/openmpi-1.6.5
    ptscotch libs   in /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64GccDPOpt/lib/openmpi-1.6.5

========================================
Build Metis decomposition
    optional component Metis was not found
========================================
Build CGAL
    CGAL headers in /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/CGAL-4.3/include
    CGAL libs    in /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/CGAL-4.3/lib

========================================
Done ThirdParty Allwmake
========================================
As you can see openmpi, scotch, ptscotch and cgal compiled fine. You should get error messages in the cgal section if there are dependencies missing.
billie is offline   Reply With Quote

Old   February 26, 2014, 12:05
Default
  #7
Member
 
laurentL
Join Date: Oct 2011
Location: new caledonia
Posts: 73
Rep Power: 15
laurent98 is on a distinguished road
Hi Billie,
HTML Code:
l
inux-dgf5:/home/laurent # zypper install -t pattern devel_C_C++ 
Retrieving repository 'openSUSE-12.3-Update' metadata ...............................................................................................................................................................................................[done]
Building repository 'openSUSE-12.3-Update' cache ....................................................................................................................................................................................................[done]
Loading repository data...
Reading installed packages...
'pattern:devel_C_C++' is already installed.
No update candidate for 'devel_C_C++-12.3-7.10.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
linux-dgf5:/home/laurent # zypper install cmake libqt4-devel boost-devel gnuplot
Loading repository data...
Reading installed packages...
'cmake' is already installed.
No update candidate for 'cmake-2.8.10.2-2.4.1.x86_64'. The highest available version is already installed.
'libqt4-devel' is already installed.
No update candidate for 'libqt4-devel-4.8.4-3.10.1.x86_64'. The highest available version is already installed.
'boost-devel' is already installed.
No update candidate for 'boost-devel-1.49.0-12.4.1.x86_64'. The highest available version is already installed.
'gnuplot' is already installed.
No update candidate for 'gnuplot-4.6.1-2.1.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
you are right it s good to start from the beginning, but it seems those commands were done well. also ./Allwmake seems ok...well except i have 2.3.0 and you 2.3.x !!!???
usually it is true that major release start with X instead of 0 .... could it be my problem?

HTML Code:
linux-dgf5:/opt/ThirdParty-2.3.0 # ./Allwmake

========================================
Start ThirdParty Allwmake
========================================

========================================
Build MPI libraries if required

    have OPENMPI shared library (openmpi-1.6.5)

========================================
Build Scotch decomposition library scotch_6.0.0
    /opt/ThirdParty-2.3.0/platforms/linux64Gcc/scotch_6.0.0
    scotch header in /opt/ThirdParty-2.3.0/platforms/linux64Gcc/scotch_6.0.0/include
    scotch libs   in /opt/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib

========================================
Build PTScotch decomposition library scotch_6.0.0 (uses MPI)
    /opt/ThirdParty-2.3.0/platforms/linux64Gcc/scotch_6.0.0

    ptscotch header in /opt/ThirdParty-2.3.0/platforms/linux64Gcc/scotch_6.0.0/include/openmpi-1.6.5
    ptscotch libs   in /opt/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-1.6.5

========================================
Build Metis decomposition
    optional component Metis was not found
========================================
Build CGAL
    CGAL headers in /opt/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include
    CGAL libs    in /opt/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/lib

========================================
Done ThirdParty Allwmake
========================================
laurent98 is offline   Reply With Quote

Old   February 26, 2014, 12:53
Default
  #8
Member
 
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14
billie is on a distinguished road
Well I build from source like you but not from the official releases but from the git head of the OpenFOAM development. These versions use x for the micro version. This shouldn't make a difference however. I can see the Thirdparty tools all build fine, but still the cgal headers are not found.

Were is the file CGAL/Delaunay_triangulation_3.h located on your system? When you extract the Thirdparty tools it should be in ThirdParty-2.3.0/CGAL-4.3/include/CGAL/Delaunay_triangulation_3.h

After compilation of the cgal thirdparty tool they should as well under ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/Delaunay_triangulation_3.h

Do you still get the same failures when running ./Allwmake instead of running wmake inside the source for foamyHexMesh.
billie is offline   Reply With Quote

Old   February 26, 2014, 13:49
Default
  #9
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
@Laurent98:

I've installed on Ubunutu so I used the Ubuntu name of the boost developers library. Have you tried compiling the CGAL library included in ThirdParty-2.3 folder?
mturcios777 is offline   Reply With Quote

Old   February 27, 2014, 00:28
Default
  #10
Member
 
laurentL
Join Date: Oct 2011
Location: new caledonia
Posts: 73
Rep Power: 15
laurent98 is on a distinguished road
ok thanks to all for reply,
i think the problems come from my computer... i did all my commands with a log
./Allwmake > allwmake.log 2>&1
i found the glu.h was missing to compile cgal, i had i glu-dev and recompile cgal from thirdParty2.3.0 . it was ok from thirdParty2.3.0 ...
then
linux-dgf5:/opt/OpenFOAM-2.3.0/applications/utilities/mesh/generation # ./Allwmake > allwmake.log 2>&1

were there is :
Code:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libautoMesh.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libconformalVoronoiMesh.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libfiniteVolume.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdecompositionMethods.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libextrudeModel.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: liblagrangian.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libsampling.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libconversion.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libsampling.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libPstream.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::fvPatchField<Foam::Tensor<double> >::patchMapperConstructorTablePtr_'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::emptyFvsPatchField<double>::typeName'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::fvsPatchField<Foam::Tensor<double> >::patchMapperConstructorTablePtr_'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libsampling.so: undefined reference to `Foam::particle::wallImpactDistance(Foam::Vector<double> const&) const'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::fvPatchField<Foam::SphericalTensor<double> >::patchConstructorTablePtr_'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::fvMeshSubset::pointMap() const'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libconformalVoronoiMesh.so: undefined reference to `Foam::OBJstream::write(Foam::line<Foam::Vector<double>, Foam::Vector<double> const&> const&)'
@billie, yes i have exactly same places like you for Delaunay_triangulation_3.h ...
don't know what to do, maybe clean every thinks and reinstall opensuse 13.1...
have a good day LL
laurent98 is offline   Reply With Quote

Old   February 27, 2014, 04:49
Default
  #11
Member
 
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14
billie is on a distinguished road
Quote:
Originally Posted by laurent98 View Post
ok thanks to all for reply,
i think the problems come from my computer... i did all my commands with a log
./Allwmake > allwmake.log 2>&1
i found the glu.h was missing to compile cgal, i had i glu-dev and recompile cgal from thirdParty2.3.0 . it was ok from thirdParty2.3.0 ...
Reading the output from Allwmake in your last comment from yesterday it seems that cgal did compile fine else the output would look different. I mean there are no warnings or errors there.

Quote:
Originally Posted by laurent98 View Post
then
linux-dgf5:/opt/OpenFOAM-2.3.0/applications/utilities/mesh/generation # ./Allwmake > allwmake.log 2>&1

were there is :
Code:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libautoMesh.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libconformalVoronoiMesh.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libfiniteVolume.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdecompositionMethods.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libextrudeModel.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: liblagrangian.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libsampling.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libconversion.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libsampling.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libPstream.so, needed by /opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::fvPatchField<Foam::Tensor<double> >::patchMapperConstructorTablePtr_'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::emptyFvsPatchField<double>::typeName'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::fvsPatchField<Foam::Tensor<double> >::patchMapperConstructorTablePtr_'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libsampling.so: undefined reference to `Foam::particle::wallImpactDistance(Foam::Vector<double> const&) const'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::fvPatchField<Foam::SphericalTensor<double> >::patchConstructorTablePtr_'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libdynamicMesh.so: undefined reference to `Foam::fvMeshSubset::pointMap() const'
/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libconformalVoronoiMesh.so: undefined reference to `Foam::OBJstream::write(Foam::line<Foam::Vector<double>, Foam::Vector<double> const&> const&)'
@billie, yes i have exactly same places like you for Delaunay_triangulation_3.h ...
don't know what to do, maybe clean every thinks and reinstall opensuse 13.1...
have a good day LL
From the messages above it seems there are a lot of other things missing to make foamyHexMesh build. Try running the Allwmake script to compile everything which might be missing and not only selected parts of the source code.

If this fails I would not reinstall the complete OS, this should be the last resort. It looks like all dependencies are installed now, so before reinstalling I would first try to recompile OpenFOAM and the Thirdparty tools completely. You can start from scratch by cleaning out everything which has been built with this two scripts:
Code:
/opt/OpenFOAM-2.3.0/wmake/wcleanAll
/opt/ThirdParty-2.3.0/Allclean
wcleanAll should be run from /opt/OpenFOAM-2.3.0 as it recursivly cleans out everything below the current directory. Or just delete the files in /opt and untar from the downloaded archives again.

After that run the Allwmake script. It is good practice to run the Allwmake script a second time as wmake then only tries to build things which failed earlier. This way errors are easier to spot.
billie is offline   Reply With Quote

Old   February 28, 2014, 05:18
Default
  #12
Member
 
laurentL
Join Date: Oct 2011
Location: new caledonia
Posts: 73
Rep Power: 15
laurent98 is on a distinguished road
hi to all, thank again for ideas...
here the begining of the log file made with ./Allwmake;
Code:
gcc -m64  -Wall -O3   -fPIC dirToString.c -o /home/laurent/OpenFOAM//OpenFOAM-2.3.0/wmake/platforms/linux64Gcc/dirToString
flex wmkdep.l
gcc -m64  -Wall -O3   -fPIC lex.yy.c -o /home/laurent/OpenFOAM//OpenFOAM-2.3.0/wmake/platforms/linux64Gcc/wmkdep
lex.yy.c:1379:17: warning: ‘yyunput’ defined but not used [-Wunused-function]
lex.yy.c:1420:16: warning: ‘input’ defined but not used [-Wunused-function]
g++ -m64  -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100  -fPIC \
     wmkdepend.cpp wmkdependParser.cpp wmkdependScanner.cpp \
    -o /home/laurent/OpenFOAM//OpenFOAM-2.3.0/wmake/platforms/linux64Gcc/wmkdepend

========================================
Start ThirdParty Allwmake
========================================

========================================
Build MPI libraries if required

+ cd openmpi-1.6.5
+ make distclean
+ rm -rf /home/laurent/OpenFOAM//ThirdParty-2.3.0/platforms/linux64Gcc/openmpi-1.6.5
+ configOpt=--with-sge
+ ./configure --prefix=/home/laurent/OpenFOAM//ThirdParty-2.3.0/platforms/linux64Gcc/openmpi-1.6.5 --disable-orterun-prefix-by-default --enable-shared --disable-static --libdir=/home/laurent/OpenFOAM//ThirdParty-2.3.0/platforms/linux64Gcc/openmpi-1.6.5/lib64 --disable-mpi-f77 --disable-mpi-f90 --disable-mpi-cxx --disable-mpi-profile --with-sge
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu

============================================================================
== Configuring Open MPI
============================================================================

*** Startup tests
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
Code:
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libtriSurface.so, needed by /home/laurent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so, not found (try using -rpath or -rpath-link)
is it normal that at beginning it s x86_64-unknown-linux then its x86_64-suse-linux/
just wandering what in my config make that error came!
end of log file :
Code:
/home/laurent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::pointToPointPlanarInterpolation::pointToPointPlanarInterpolation(Foam::Field<Foam::Vector<double> > const&, Foam::Field<Foam::Vector<double> > const&, double)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/laurent/OpenFOAM//OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam] Error 1
make[2]: Leaving directory `/home/laurent/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[1]: *** [solidEquilibriumDisplacementFoam] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/laurent/OpenFOAM/OpenFOAM-2.3.0/applications/solvers/stressAnalysis'
make: *** [stressAnalysis] Error 2
make: Target `application' not remade because of errors.


i will try tomorrow to firt compile gcc and other for Thirdparty...

Last edited by laurent98; February 28, 2014 at 09:00.
laurent98 is offline   Reply With Quote

Old   March 1, 2014, 20:12
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 to all!

@laurent98: If you're still using openSUSE 12.3 and trying to build OpenFOAM 2.3.0, hopefully the following instructions will solve your problems: http://openfoamwiki.net/index.php/In...#openSUSE_12.3

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 2, 2014, 19:04
Default
  #14
Member
 
laurentL
Join Date: Oct 2011
Location: new caledonia
Posts: 73
Rep Power: 15
laurent98 is on a distinguished road
Dear Bruno,
after a week of different trying, i finally follow you instruction and it's work right away!
even paraFoam with python i just did:
./makeParaView4 -python

it s great! thank you so much!
good day to all LL
laurent98 is offline   Reply With Quote

Old   December 2, 2016, 06:16
Default conformalVoronoiMesh(CGAL) compilation error
  #15
New Member
 
Sohail
Join Date: Mar 2012
Posts: 11
Rep Power: 14
iqbalsk8 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

@laurent98: If you're still using openSUSE 12.3 and trying to build OpenFOAM 2.3.0, hopefully the following instructions will solve your problems: http://openfoamwiki.net/index.php/In...#openSUSE_12.3

Best regards,
Bruno
Hi All,

First of all, I apologize if I am asking the question in the wrong thread but the error message seemed similar to the problem I have.

I am trying to compile OpenFOAM-v1606+ on a RedHat-6.8 machine in my $HOME/OpenFOAM directory. I followed the instructions from the webpage https://openfoamwiki.net/index.php/I...HEL#CentOS_6.6.

It seems that the OpenFOAM utilities using the CGAL library are not compiling as they are looking for the <gmp.h> file.

Rest of the packages compiled successfully. Also the I am able to compile paraview successfully. Any help would be much appreciated.

I am using openmpi-1.10 and gcc-4.9.2 for compilation. Also I am don't have the rights to use 'sudo' command.
Attached Files
File Type: txt AllwmakeLog.txt (181.7 KB, 7 views)
iqbalsk8 is offline   Reply With Quote

Old   December 2, 2016, 07:22
Default
  #16
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 answer: There are instructions on the wiki for installing OpenFOAM+ v1606+ in CentOS 6.x: https://openfoamwiki.net/index.php/I...HEL#CentOS_6.7 - which should also work on RHEL 6.8...

But, OK, since you already have most of the installation going as intended, what's missing is the path to GMP, which is likely on your built GCC stack.
  • How exactly are you choosing to use GCC 4.9?
  • You can also find where gcc is installed by running:
    Code:
    which gcc
  • Because you will need to find the path to GMP's files (headers (*.h) and libraries (*.so or *.a))
  • The idea is that after you've found the path to GMP, you need to set the path to it in the respective environment variable:
    Code:
    export GMP_ARCH_PATH=/opt/gcc-4.9/gmp
  • For more details, check the file "wmake/rules/General/CGAL" for the environment variables needed.
__________________
wyldckat is offline   Reply With Quote

Old   December 2, 2016, 12:00
Default foamyHexMesh compilation
  #17
New Member
 
Sohail
Join Date: Mar 2012
Posts: 11
Rep Power: 14
iqbalsk8 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: There are instructions on the wiki for installing OpenFOAM+ v1606+ in CentOS 6.x: https://openfoamwiki.net/index.php/I...HEL#CentOS_6.7 - which should also work on RHEL 6.8...

But, OK, since you already have most of the installation going as intended, what's missing is the path to GMP, which is likely on your built GCC stack.
  • How exactly are you choosing to use GCC 4.9?
  • You can also find where gcc is installed by running:
    Code:
    which gcc
  • Because you will need to find the path to GMP's files (headers (*.h) and libraries (*.so or *.a))
  • The idea is that after you've found the path to GMP, you need to set the path to it in the respective environment variable:
    Code:
    export GMP_ARCH_PATH=/opt/gcc-4.9/gmp
  • For more details, check the file "wmake/rules/General/CGAL" for the environment variables needed.
Hi Bruno,

Thank you for the reply. I will try to answer your every question one by one.
  • I have gcc-4.9.2 version available so I am exporting its path in the alias command in my local .bashrc.
My 'GMP' and 'MPFR' header path is $WM_THIRD_PARTY_DIR/platforms/linux64. So I extended my alias command to export the path as below i.e.

Code:
alias of1606+='export PATH=$PATH:/opt/gcc49/bin;
export MPFR_ARCH_PATH=/home/iqbalsk8/OpenFOAM/ThirdParty-v1606+OpenCFD/platforms/linux64/mpfr-3.1.2;
export GMP_ARCH_PATH=/home/iqbalsk8/OpenFOAM/ThirdParty-v1606+OpenCFD/platforms/linux64/gmp-5.1.2;
source $HOME/OpenFOAM/OpenFOAM-v1606+OpenCFD/etc/bashrc'
  • As you suggested I made changes to wmake/rules/GeneralCGAL and changed it as
Code:
CGAL_INC = \
    -I$(CGAL_ARCH_PATH)/include \
    -I$(MPFR_ARCH_PATH)/include \
    -I$(GMP_ARCH_PATH)/include \
    -I$(BOOST_ARCH_PATH)/include
CGAL_LIBS = \
    -L$(MPFR_ARCH_PATH)/lib64 \
    -L$(GMP_ARCH_PATH)/lib64 \
    -L$(BOOST_ARCH_PATH)/lib \
    -L$(CGAL_ARCH_PATH)/lib \
    -lCGAL \
    -lmpfr \
    -lgmp
The last line '-lgmp' I added my self as without it I was getting libgmp.so.10 not found error.

After that I ran Allwmake from $WM_PROJECT_DIR and the libraries were compiled successfully. However, I wanted to ask you whether exporting the
'MPFR_ARCH_PATH' and 'GMP_ARCH_PATH' using the alias is common practice. What is the standard way for exporting those path or in which files must those path be set to make it more clean/standard.

Regards

Sohail
iqbalsk8 is offline   Reply With Quote

Old   December 3, 2016, 13:40
Default
  #18
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 iqbalsk8 View Post
However, I wanted to ask you whether exporting the
'MPFR_ARCH_PATH' and 'GMP_ARCH_PATH' using the alias is common practice. What is the standard way for exporting those path or in which files must those path be set to make it more clean/standard.
Quick answer: MPFR and GMP locations are usually configured in the file "OpenFOAM-v1606+/etc/config.sh/compiler". But it will only be used if you set the following variable and value in bashrc or in your alias command:
Code:
WM_COMPILER_TYPE=ThirdParty
Furthermore, you might want do double-check if you don't have MPFR and GMP installed at "/opt/gcc49/".
And you can configure the path to "/opt/gcc49" in "OpenFOAM-v1606+/etc/config.sh/compiler" as well... er, wait... the paths to the compiler and MPFR and GMP are actually defined here: "OpenFOAM-v1606+/etc/config.sh/settings"
wyldckat is offline   Reply With Quote

Old   February 15, 2017, 11:24
Default foamyHexMesh compilation reports missing lCGAL
  #19
New Member
 
Syed Ashruf
Join Date: Nov 2012
Location: Chennai, India
Posts: 11
Rep Power: 14
ashrufsyed is on a distinguished road
I have gone through the discussion thread, and tried different things but nothing seems to work out. Everything has compiled quite well, except foamyMesh folder.

I'm attaching the snippet below from wmake where the first error occurs. FYI I'm trying to compile OpenFOAM-dev with custom CGAL-4.9 and ThirdParty libs (gmp, and mpfr)


wmake refineMesh
wmake renumberMesh
[100%] Built target PVblockMeshReader_SM
Allwmake applications/utilities/mesh/manipulation/renumberMesh
Allwmake applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader
wmake rotateMesh
wmake vtkPVFoam
/home/syed/OpenFOAM/ThirdParty-dev/platforms/linux64/gcc-6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCGAL
collect2: error: ld returned 1 exit status
make[2]: *** [/home/syed/OpenFOAM/OpenFOAM-dev/platforms/linux64Gcc63DPInt64Opt/lib/libconformalVoronoiMesh.so] Error 1
make[2]: Target `libso' not remade because of errors.
wmake conformalVoronoi2DMesh
wmake setSet
Allwmake applications/utilities/mesh/manipulation/setSet
found <readline/readline.h> -- enabling readline support.
wmake setsToZones
wmake singleCellMesh
ashrufsyed is offline   Reply With Quote

Old   February 17, 2017, 07:26
Default
  #20
New Member
 
Syed Ashruf
Join Date: Nov 2012
Location: Chennai, India
Posts: 11
Rep Power: 14
ashrufsyed is on a distinguished road
Sorry, was able to resolve the error with a simple install of mpfr-devel and gmp-devel using package manager which allowed a proper build and linkage. CGAL was able to find these libraries from their respective locations during its compilation and build process, and so does the foamyMesh utility!
wyldckat likes this.
ashrufsyed 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 12:12
Problems running in parallel - missing controlDict Argen OpenFOAM Running, Solving & CFD 4 June 7, 2012 04:50
Problems with Industrial Building Ventilation jjperez FLUENT 0 February 8, 2012 11:46
Doxygen documentation Tanay OpenFOAM Installation 9 September 23, 2011 12:40
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 01:48


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