|
[Sponsors] |
[OpenFOAM.org] Installation issue - CGAL/Delaunay_triangulation_3.h |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 29, 2015, 11:42 |
Installation issue - CGAL/Delaunay_triangulation_3.h
|
#1 |
Senior Member
Join Date: Apr 2009
Posts: 118
Rep Power: 17 |
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 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 Thanks! |
|
January 29, 2015, 17:03 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
cmake --version echo $CMAKE_ROOT Bruno
__________________
|
||
January 30, 2015, 06:35 |
|
#3 |
Senior Member
Join Date: Apr 2009
Posts: 118
Rep Power: 17 |
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 Code:
PATH="${HOME}/opt/cmake_2.8.12.2/bin/:${PATH}" ./Allwmake Code:
cp: cannot stat `../bin/d[agm]*': No such file or directory make: [install] Error 1 (ignored) 4) I still see the same issue again when I try to compile main OpenFOAM directory. I've attached the compressed log file. Thanks. |
|
January 31, 2015, 06:21 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi lost.identity,
Just in case, please check which version of make you're using: Code:
make --version
Best regards, Bruno
__________________
|
|
January 31, 2015, 09:56 |
|
#5 |
Senior Member
Join Date: Apr 2009
Posts: 118
Rep Power: 17 |
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 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 Code:
PATH="${HOME}/opt/cmake_2.8.12.2/bin/:${PATH}" ./makeCGAL Thanks |
|
January 31, 2015, 10:39 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 Start a new terminal and it should be fully operational! Best regards, Bruno |
|
January 31, 2015, 12:41 |
|
#7 |
Senior Member
Join Date: Apr 2009
Posts: 118
Rep Power: 17 |
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 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. |
|
January 31, 2015, 13:16 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 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... |
|
January 31, 2015, 14:25 |
|
#9 |
Senior Member
Join Date: Apr 2009
Posts: 118
Rep Power: 17 |
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). |
|
December 15, 2016, 08:41 |
no targets specified
|
#10 | |
Member
|
Quote:
I am getting similar error Code:
+ make -j 8 make: *** No targets specified and no makefile found. Stop. + exit 1 |
||
December 15, 2016, 09:10 |
Got it
|
#11 | |
Member
|
Quote:
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 .. |
||
|
|
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 |