First time here? Checkout the FAQ!
x
0 votes
by (420 points)

Hi all,

During the installation of the latest version from source on macOS (12.4), while running cmake --build _build, the following error message occurred:

* creating archive: utils/libmtutils.a

* linking: meshtool

warning: unknown warning option '-Wno-format-overflow'; did you mean '-Wno-shift-overflow'? [-Wunknown-warning-option]

1 warning generated.

ld: library not found for -lomp

clang-13: error: linker command failed with exit code 1 (use -v to see invocation)

make[4]: *** [meshtool] Error 1

make[3]: *** [parbuild] Error 2

make[2]: *** [external/meshtool/src/meshtool-stamp/meshtool-build] Error 2

make[1]: *** [external/CMakeFiles/meshtool.dir/all] Error 2

make: *** [all] Error 2

Thank you so much for your help.

1 Answer

0 votes
by (3.4k points)

Hello,

It seems that your compiler does not support openMP, which is necessary to build the external tool meshtool.

You can either look for a solution for using another compiler supporting openMP, or decide to install openCARP without the external tools by using:

cmake -S. -B_build -DDLOPEN=ON -DBUILD_EXTERNAL=OFF -DCMAKE_BUILD_TYPE=Release

In this case, you will have to install carputils separately (see the instructions: https://opencarp.org/download/installation#installing-carputils)

meshtool won't be included and you also have to install it separately if you need it: https://bitbucket.org/aneic/meshtool/src/master/

by (3.4k points)
As a side note, I am using Homebrew and was able to install the OpenMP library with:

brew install libomp
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...