|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 2.4.0 and Fedora 22: error building CGAL |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 12, 2015, 14:19 |
OpenFOAM 2.4.0 and Fedora 22: error building CGAL
|
#1 |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 |
Clean Fedora 22 installation with all required libraries installed.
When building OpenFOAM 2.4.0, I had the following error message when CGAL is built: Code:
== Generating build files == Configuring libCGAL -- Requested component: MPFR -- Requested component: GMP libCGAL is configured -- Sources for CGAL component library 'CGAL_Qt4/CMakeLists.txt' detected CMake Error at src/CMakeLists.txt:81 (add_subdirectory): add_subdirectory given source "/home/lining/OpenFOAM/ThirdParty-2.4.0/CGAL-4.6/src/CGAL_Qt4/CMakeLists.txt" which is not an existing directory. Call Stack (most recent call first): src/CMakeLists.txt:140 (configure_component) -- Sources for CGAL component library 'CGAL_ImageIO/CMakeLists.txt' detected CMake Error at src/CMakeLists.txt:81 (add_subdirectory): add_subdirectory given source "/home/lining/OpenFOAM/ThirdParty-2.4.0/CGAL-4.6/src/CGAL_ImageIO/CMakeLists.txt" which is not an existing directory. Call Stack (most recent call first): src/CMakeLists.txt:140 (configure_component) -- Sources for CGAL component library 'CGAL_Qt3/CMakeLists.txt' detected CMake Error at src/CMakeLists.txt:81 (add_subdirectory): add_subdirectory given source "/home/lining/OpenFOAM/ThirdParty-2.4.0/CGAL-4.6/src/CGAL_Qt3/CMakeLists.txt" which is not an existing directory. Call Stack (most recent call first): src/CMakeLists.txt:140 (configure_component) -- Sources for CGAL component library 'CGAL_Core/CMakeLists.txt' detected CMake Error at src/CMakeLists.txt:81 (add_subdirectory): add_subdirectory given source "/home/lining/OpenFOAM/ThirdParty-2.4.0/CGAL-4.6/src/CGAL_Core/CMakeLists.txt" which is not an existing directory. Call Stack (most recent call first): src/CMakeLists.txt:140 (configure_component) -- Sources for CGAL component libraries 'CGAL_Core/CMakeLists.txt;CGAL_ImageIO/CMakeLists.txt;CGAL_Qt3/CMakeLists.txt;CGAL_Qt4/CMakeLists.txt' detected == Generating build files (DONE) == -- Configuring incomplete, errors occurred! See also "/home/lining/OpenFOAM/ThirdParty-2.4.0/build/linux64Gcc/CGAL-4.6/CMakeFiles/CMakeOutput.log". + exit 1 ======================================== Done ThirdParty Allwmake ======================================== Strangely, OpenFOAM was build correctly even with the above error. Maybe that is because I also have the CGAL-devel package installed? BTW, I am using the system's cmake version 3.3.1. Might that be a problem? If I want to use the cmake distributed with OpenFOAM how can I do that? |
|
October 12, 2015, 19:39 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: I had tested Fedora 22 beta a long time ago with OpenFOAM 2.3.1, but only today did I look into this again. I've updated the wiki page accordingly: http://openfoamwiki.net/index.php/In...dora#Fedora_22
Indeed, the version CMake 2.8.12.1 that is provided with the ThirdParty package is compatible with CGAL 4.6, while CMake 3.3.x is not. To build and enable the custom build, run: Code:
cd $WM_THIRD_PARTY_DIR ./makeCmake > mkcmake.log 2>&1 wmSET $FOAM_SETTINGS Last edited by wyldckat; October 12, 2015 at 19:40. Reason: added missing link to the wiki |
|
October 13, 2015, 05:32 |
|
#3 |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 13 |
Thanks. I am able to build everything following the instructions on your wiki page. The only minor problem I can see is that one of the dependent library is called 'qtwebkit-devel' in Fedora - without the dash between 'qt' and 'webkit'.
|
|
October 17, 2015, 08:55 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Many thanks! My Fedora 22 installation is still associating the name "qt-webkit-devel" to "qtwebkit-devel", so I didn't notice that detail. I've updated the wiki page accordingly!
|
|
April 2, 2016, 23:01 |
|
#5 |
New Member
Steven
Join Date: Apr 2016
Posts: 3
Rep Power: 10 |
Clean installation of OpenFOAM-3.0.1 on Fedora 23 Workstation (x86_64)
I followed the instructions for compiling the source on Fedora 22 at https://openfoamwiki.net/index.php/I...M-2.4.0/Fedora with only a minor change to the process. Everything went smoothly up until ./makeCmake (step 7). It seems ThirdParty-3.0.1 does not come packaged with an older version of cmake and so tries to switch to a directory that doesn't exist. To work around I downloaded ThirdParty-2.4.0.tgz, unpacked, and copied the cmake-2.8.12.1 directory over into ThirdParty-3.0.1. I also had to go into ./makeCmake and change the variable cmakePACKAGE=cmake-3.2.1 to cmakePACKAGE=cmake-2.8.12.1. After that I ran into no issues and finished compiling everything in about 1.25 hours. Thanks for the instructions! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Problems installing OpenFOAM 2.4.0 on Fedora 23 | tlcoons | OpenFOAM Installation | 4 | October 18, 2017 10:27 |
[OpenFOAM.org] Trying to install openfoam 2.4.0 on fedora 26 | harsha_kulkarni | OpenFOAM Installation | 1 | August 18, 2017 17:31 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
OpenFOAM 1.6 ext - Compilation errors - Fedora 17(32bit) | toolpost | OpenFOAM Installation | 15 | September 21, 2012 10:38 |
OpenFOAM 1.7.1 installation problem on Fedora 14 | armonica | OpenFOAM Installation | 16 | March 31, 2011 14:16 |