|
[Sponsors] |
[OpenFOAM.com] OpenFOAM v2112 CGAL build fails - how to specify GMP library |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 2, 2022, 05:14 |
OpenFOAM v2112 CGAL build fails - how to specify GMP library
|
#1 |
New Member
Join Date: Jan 2015
Posts: 5
Rep Power: 11 |
Hi
I am installing OFv2112 on RH8.3. I am Using the system compiler (gcc 8.5.0) and cmake (3.20.2). GMP, MPFR and MPC packages were also installed. The bashrc file specified the system compiler be used. Compilation generally went well (Allwmake), except issues were reported with CGAL as follows. Code:
-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -fPIC -O3 -DNDEBUG' -- USING LDFLAGS = '-m64 ' -- Configuring incomplete, errors occurred! See also "/fsx/apps/OpenFOAM/ThirdParty-v2112/build/linux64Gcc/CGAL-4.14.3/CMakeFiles/CMakeOutput.log". --------------------------------------------------- Optional component (CGAL) had build issues OpenFOAM will nonetheless remain largely functional --------------------------------------------------- Code:
== Setting paths == == Setting paths (DONE) == == Generate version files == == Generate version files (DONE) == == Detect external libraries == == Detect external libraries (DONE) == == Generating build files == Configuring libCGAL CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find GMP (missing: GMP_LIBRARIES GMP_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindGMP.cmake:53 (find_package_handle_standard_args) cmake/modules/CGAL_SetupGMP.cmake:24 (find_package) cmake/modules/CGAL_SetupCGALDependencies.cmake:41 (include) src/CGAL/CMakeLists.txt:5 (include) How can I configure OF to build CGAL correctly and refer to the GMP libraries installed? The CGAL configure script appeared to only specify the GMP, MPC and MPFR version if the compiler variable is set to ThirdParty, mine is set to system. Thank you for any comments and advice. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Openfoam 2112 build fails with aocc and clang | NainaPatil | OpenFOAM Installation | 2 | April 22, 2022 13:59 |
How to develop OpenFOAM with CMake and popular IDEs | cosscholar | OpenFOAM Programming & Development | 0 | March 16, 2022 15:17 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 06:55 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 06:25 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 14:25 |