Installation issue - CGAL/Delaunay_triangulation_3.h
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! |
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 Bruno |
1 Attachment(s)
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 Code:
PATH="${HOME}/opt/cmake_2.8.12.2/bin/:${PATH}" ./Allwmake Code:
cp: cannot stat `../bin/d[agm]*': No such file or directory 4) I still see the same issue again when I try to compile main OpenFOAM directory. I've attached the compressed log file. Thanks. :) |
Hi lost.identity,
Just in case, please check which version of make you're using: Code:
make --version
Best regards, Bruno |
Hi Bruno,
Thanks again for your reply. This is the output for make --version Code:
make --version 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 Code:
PATH="${HOME}/opt/cmake_2.8.12.2/bin/:${PATH}" ./makeCGAL Thanks |
Hi lost.identity,
Run the following commands: Code:
mkdir -p $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER Start a new terminal and it should be fully operational! Best regards, Bruno |
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 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. |
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... |
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). |
no targets specified
Quote:
I am getting similar error Code:
+ make -j 8 |
Got it
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 \ |
All times are GMT -4. The time now is 23:31. |