Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing c++ std headers on M1 15.1 mac + solution #65

Open
EddieTheHead opened this issue Nov 6, 2024 · 0 comments
Open

Missing c++ std headers on M1 15.1 mac + solution #65

EddieTheHead opened this issue Nov 6, 2024 · 0 comments

Comments

@EddieTheHead
Copy link

The compilation on my machine was failing because of missing c++ standard library headers:

xxxxxxx@Huberts-MacBook-Air libuldaq-1.2.1 % make
/Library/Developer/CommandLineTools/usr/bin/make  all-recursive
Making all in src
  CXX      CtrInfo.lo
In file included from CtrInfo.cpp:7:
In file included from ./CtrInfo.h:10:
./ul_internal.h:11:10: fatal error: 'cstring' file not found
   11 | #include <cstring>
      |          ^~~~~~~~~
1 error generated.
make[2]: *** [CtrInfo.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I had to specify:

/configure LDFLAGS="-L/opt/homebrew/lib" CPPFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1"

on configure step to get it to compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant