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

[OpenFOAM.org] Installation issue - CGAL/Delaunay_triangulation_3.h

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 1 Post By wyldckat
  • 2 Post By wyldckat
  • 1 Post By lost.identity
  • 1 Post By wyldckat
  • 1 Post By lost.identity

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2015, 11:42
Unhappy Installation issue - CGAL/Delaunay_triangulation_3.h
  #1
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 17
lost.identity is on a distinguished road
Hi,

I'm trying to install OpenFOAM 2.3.1 on SUSE Linux Enterprise Server 11 SP3. I'm following the instructions on
http://openfoamwiki.net/index.php/In...#openSUSE_12.3

After some difficulty I've managed to build the ThirdParty folder without any errors. However, now when I try to compile the main OpenFOAM folder I get the following error

Code:
fata error: CGAL/Delaunay_triangulation_3.h: No such file or directory
I've had a look at the following thread to find out any answers
http://www.cfd-online.com/Forums/ope...myhexmesh.html

However, the difference to that thread is, I am able to compile CGAL library in the ThirdParty folder without any issues. I think my culprit might be cmake. My machine only has cmake-2.6 installed. However, I used the following explanation: https://forums.suse.com/showthread.p...ools-libraries, to install cmake version 2.8.12.2 and use it as a prefix as in

Code:
PATH="${HOME}/opt/cmake_2.8.12.2/bin/:${PATH}" ./Allwmake
Any ideas what might be going wrong?

Thanks!
lost.identity is offline   Reply With Quote

Old   January 29, 2015, 17:03
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 lost.identity,

If you're trying to build OpenFOAM 2.3.1, then please follow these instructions: http://openfoamwiki.net/index.php/In...#openSUSE_12.3 - and not the ones meant for OpenFOAM 2.3.0

As indicated in step #10, please follow the instructions therein:
Quote:
Code:
#Create a tarball in case you've seen any errors (it's the first error that matters)
#or if you don't understand the output
#and attach the file "make.log.tar.gz" to a post in the designated thread

tar -czf make.log.tar.gz make.log
In addition, please indicate what the following commands give you:
Code:
cmake --version

echo $CMAKE_ROOT
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 30, 2015, 06:35
Default
  #3
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 17
lost.identity is on a distinguished road
Hi Bruno,

Thanks for your reply. I ran Allclean in my ThirdParty folder before re-doing the installation again.

Now there are few hiccups on the way, mainly because I'm using the SUSE Enterprise and not openSUSE. I'll list them down here.

1) I think the equivalent pattern to devel_C_C++ in SLES is sdk_c_c++ so I installed that. Secondly, qt4-assistant-adp-devel, doesn't exist in any SDK repositories so it is no installed.

2) I do not have the correct versions of gmp, mpfr, mpc and gcc. Therefore, following this thread

http://www.cfd-online.com/Forums/ope...n-problem.html

I downloaded the right versions of these software into my ThirdParty directory and extracted there. Then I first ran makeGcc.

3) I do not have a recent version of cmake.
Code:
cmake --version
cmake version 2.6-patch 2
That's the output from my cmake. So as I mentioned before I installed cmake-2.8.12.2 and then used the following to compile

Code:
PATH="${HOME}/opt/cmake_2.8.12.2/bin/:${PATH}" ./Allwmake
I did not get any errors yesterday when I did this. But today I saw the following error

Code:
cp: cannot stat `../bin/d[agm]*': No such file or directory
make: [install] Error 1 (ignored)
But I'm ignoring that error and there are no further errors in the ThirdParty make.

4) I still see the same issue again when I try to compile main OpenFOAM directory. I've attached the compressed log file.

Thanks.
Attached Files
File Type: gz make.log.tar.gz (10.9 KB, 3 views)
lost.identity is offline   Reply With Quote

Old   January 31, 2015, 06:21
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 lost.identity,

Just in case, please check which version of make you're using:
Code:
make --version
As for a possible fix, the following steps are based on these: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10
  1. The "Boost" library/toolbox in your system also seems to be considerably old. Therefore, let's get a more recent one:
    Code:
    foam
    sed -i -e 's=boost-system=boost_1_54_0=' etc/config/CGAL.sh
    
    cd $WM_THIRD_PARTY_DIR
    alias wget="wget --no-check-certificate"
    wget "https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getBoost"
    chmod +x getBoost
    
    ./getBoost
    sed -i -e 's=boost-system=boost_1_54_0=' makeCGAL
  2. Now try building only CGAL:
    Code:
    ./makeCGAL > mkcgal.log 2>&1
  3. Check the contents of the file "mkcgal.log" and check if there exists an error message at the end and if it's as cryptic at the one you've gotten so far or not:
    Code:
    == Generating build files (DONE) ==
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/flacs/OpenFOAM/ThirdParty-2.3.1/CGAL-4.3
    + make -j 8
    make: *** No targets specified and no makefile found.  Stop.
    + exit 1

Best regards,
Bruno
lost.identity likes this.
__________________
wyldckat is offline   Reply With Quote

Old   January 31, 2015, 09:56
Default
  #5
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 17
lost.identity is on a distinguished road
Hi Bruno,

Thanks again for your reply. This is the output for make --version

Code:
make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-unknown-linux-gnu
The machine I'm trying to install the OpenFOAM does not have internet access, but I've downloaded boost tar file from another machine and copied it to the ThirdParty folder and tried to follow the instructions as close as possible.

if I run ./makeCGAL on it's own I get the following error (my guess it's not using the correct cmake)

Code:
CMake Error: Error in cmake code at
/home/flacs/OpenFOAM/ThirdParty-2.3.1/CGAL-4.3/cmake/modules/CGAL_Macros.cmake:213:
Parse error.  Function missing ending ")".  Instead found left paren with text "(".
CMake Error at CMakeLists.txt:340 (include):
  include could not find load file:

    /home/flacs/OpenFOAM/ThirdParty-2.3.1/CGAL-4.3/cmake/modules/CGAL_Macros.cmake


CMake Error at CMakeLists.txt:341 (cgal_setup_module_path):
  Unknown CMake command "cgal_setup_module_path".


-- Configuring incomplete, errors occurred!
+ exit 1
In fact the only way I could compile anything is if I prefix the installation as

Code:
PATH="${HOME}/opt/cmake_2.8.12.2/bin/:${PATH}" ./makeCGAL
The above compilation does not give any errors. Is there a way to somehow to make the system always take cmake-2.8.12.2 rather than cmake-2.6.2?

Thanks
lost.identity is offline   Reply With Quote

Old   January 31, 2015, 10:39
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 lost.identity,

Run the following commands:
Code:
mkdir -p $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER

ln -s ${HOME}/opt/cmake_2.8.12.2 $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/cmake-2.8.12.1
it creates a symbolic link for the folder where OpenFOAM expects to find the latest CMake version installed.

Start a new terminal and it should be fully operational!

Best regards,
Bruno
lost.identity and jfolio like this.
wyldckat is offline   Reply With Quote

Old   January 31, 2015, 12:41
Default
  #7
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 17
lost.identity is on a distinguished road
Hi Bruno,

When I created a symbolic link CGAL worked. However, I still had the same issue with the main OpenFOAM compilation.

So I did a Allclean and then tried to install everything again. However, now even though I followed the same steps I get the same

Code:
CMake Error: Error in cmake code at
/home/flacs/OpenFOAM/ThirdParty-2.3.1/CGAL-4.3/cmake/modules/CGAL_Macros.cmake:213:
Parse error.  Function missing ending ")".  Instead found left paren with text "(".
CMake Error at CMakeLists.txt:340 (include):
  include could not find load file:

    /home/flacs/OpenFOAM/ThirdParty-2.3.1/CGAL-4.3/cmake/modules/CGAL_Macros.cmake


CMake Error at CMakeLists.txt:341 (cgal_setup_module_path):
  Unknown CMake command "cgal_setup_module_path".


-- Configuring incomplete, errors occurred!
+ exit 1
Even though the symbolic link is there. I tried it on another system (with identical setup) and it still doesn't work

EDIT: I had to run makeCmake in ThirdParty directory to get it to work. I don't understand it.

Anyways I'm able to run makeCGAL and Allwmake in ThirdParty directory without any issues. The issue with CGAL/Delaunay_triangulation_3.h still remains.
jfolio likes this.
lost.identity is offline   Reply With Quote

Old   January 31, 2015, 13:16
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Remember when I wrote in the other post that I had based my commands on this wiki page: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10

Well... on that page there are a lot of instructions that might come in handy for your installation!

If my diagnosis is correct, the clean up you've done removed the symbolic link, which is why CMake stopped behaving properly. In addition, when you ran makeCmake, you either didn't start a new terminal or did not run this command:
Code:
wmSET $FOAM_SETTINGS
see step #10 to see what I mean


If this fails, then honestly, my suggestion is that you start a new OpenFOAM installation (you can simply rename the current folders, just in case you prefer to go back to where you once were) and then you can roughly follow those instructions that are meant for CentOS 5.10 on your system, because SLES 11 should be about as old as CentOS 5
I say this, because those steps have been carefully tailored and tested (by me) to have all of the necessary steps to have a fully working build of OpenFOAM, along with ParaView.

Nonetheless, if you do not want to start over, then try to study a bit more those instructions, to see if you can spot what you might be missing so far...
lost.identity likes this.
wyldckat is offline   Reply With Quote

Old   January 31, 2015, 14:25
Default
  #9
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 17
lost.identity is on a distinguished road
Many thanks Bruno.

I downloaded the source code again and started from scratch and now it works. I had to basically download mpfr, mpc, gmp, gcc, Qt, cmake as my machine didn't have the correct versions. Then compiled them in the ThirdParty directory.

I also had to make sure that the make files had the correct version numbers (had to modify etc/config/settings.sh in the OpenFOAM directory).
wyldckat likes this.
lost.identity is offline   Reply With Quote

Old   December 15, 2016, 08:41
Default no targets specified
  #10
Member
 
rahulksoni's Avatar
 
Rahul Kumar Soni
Join Date: Oct 2013
Location: Bhubaneswar, India
Posts: 68
Rep Power: 13
rahulksoni is on a distinguished road
Send a message via Skype™ to rahulksoni
Quote:
Originally Posted by wyldckat View Post
Hi lost.identity,

Just in case, please check which version of make you're using:
Code:
make --version
As for a possible fix, the following steps are based on these: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10
  1. The "Boost" library/toolbox in your system also seems to be considerably old. Therefore, let's get a more recent one:
    Code:
    foam
    sed -i -e 's=boost-system=boost_1_54_0=' etc/config/CGAL.sh
    
    cd $WM_THIRD_PARTY_DIR
    alias wget="wget --no-check-certificate"
    wget "https://raw.github.com/wyldckat/scripts4OpenFOAM3rdParty/master/getBoost"
    chmod +x getBoost
    
    ./getBoost
    sed -i -e 's=boost-system=boost_1_54_0=' makeCGAL
  2. Now try building only CGAL:
    Code:
    ./makeCGAL > mkcgal.log 2>&1
  3. Check the contents of the file "mkcgal.log" and check if there exists an error message at the end and if it's as cryptic at the one you've gotten so far or not:
    Code:
    == Generating build files (DONE) ==
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/flacs/OpenFOAM/ThirdParty-2.3.1/CGAL-4.3
    + make -j 8
    make: *** No targets specified and no makefile found.  Stop.
    + exit 1

Best regards,
Bruno
Hi Bruno

I am getting similar error
Code:
+ make -j 8
make: *** No targets specified and no makefile found.  Stop.
+ exit 1
What is causing that error?
rahulksoni is offline   Reply With Quote

Old   December 15, 2016, 09:10
Cool Got it
  #11
Member
 
rahulksoni's Avatar
 
Rahul Kumar Soni
Join Date: Oct 2013
Location: Bhubaneswar, India
Posts: 68
Rep Power: 13
rahulksoni is on a distinguished road
Send a message via Skype™ to rahulksoni
Quote:
Originally Posted by rahulksoni View Post
Hi Bruno

I am getting similar error
Code:
+ make -j 8
make: *** No targets specified and no makefile found.  Stop.
+ exit 1
What is causing that error?
Got it surprisingly if I go to ThirdParty-2.3.0/CGAL-4.3 and then execute make and make install then it works.
I also tried it by forcing to go to CGAL directory and then run make and make install in makeCGAL file. It works
Code:
$CGAL_SOURCE_DIR \
&& cd $CGAL_SOURCE_DIR \
&& make -j $WM_NCOMPPROCS \
&& make install || exit 1 \
&& cd ..
Its peculiar why it is not entering the source directory and executing the commands!!!
rahulksoni 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] Multiple Installation Issue: Parallel Processing No Longer Works dancfd OpenFOAM Installation 11 November 20, 2018 17:08
Convergence issue in natural convection problem chrisf90 FLUENT 5 March 5, 2016 09:30
Meshing related issue in Flow EFD appu FloEFD, FloWorks & FloTHERM 1 May 22, 2011 09:27
Installation problems indy OpenFOAM Installation 7 April 3, 2009 10:40
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 00:30.