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

[OpenFOAM.org] OpenFOAM 2.4.0 and Fedora 22: error building CGAL

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 3 Post By wyldckat
  • 1 Post By macelee
  • 1 Post By C4l4M1TY

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2015, 13:19
Default OpenFOAM 2.4.0 and Fedora 22: error building CGAL
  #1
New Member
 
Join Date: Nov 2013
Posts: 13
Rep Power: 12
macelee is on a distinguished road
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
========================================
Everything before that looks fine - that is all libraries CGAL needs are found properly.

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?
macelee is offline   Reply With Quote

Old   October 12, 2015, 18:39
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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: 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
Peter_600, SailorLiu and meth like this.

Last edited by wyldckat; October 12, 2015 at 18:40. Reason: added missing link to the wiki
wyldckat is offline   Reply With Quote

Old   October 13, 2015, 04:32
Default
  #3
New Member
 
Join Date: Nov 2013
Posts: 13
Rep Power: 12
macelee is on a distinguished road
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'.
wyldckat likes this.
macelee is offline   Reply With Quote

Old   October 17, 2015, 07:55
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 macelee View Post
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'.
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!
wyldckat is offline   Reply With Quote

Old   April 2, 2016, 22:01
Default
  #5
New Member
 
Steven
Join Date: Apr 2016
Posts: 3
Rep Power: 10
C4l4M1TY is on a distinguished road
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!
wyldckat likes this.
C4l4M1TY 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.org] Problems installing OpenFOAM 2.4.0 on Fedora 23 tlcoons OpenFOAM Installation 4 October 18, 2017 09:27
[OpenFOAM.org] Trying to install openfoam 2.4.0 on fedora 26 harsha_kulkarni OpenFOAM Installation 1 August 18, 2017 16:31
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
OpenFOAM 1.6 ext - Compilation errors - Fedora 17(32bit) toolpost OpenFOAM Installation 15 September 21, 2012 09:38
OpenFOAM 1.7.1 installation problem on Fedora 14 armonica OpenFOAM Installation 16 March 31, 2011 13:16


All times are GMT -4. The time now is 03:06.