Closed ambs closed 2 weeks ago
Ok, this post helped me: https://stackoverflow.com/questions/26333823/clang-doesnt-see-basic-headers
Basically:
clang -v
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12 # <========
Candidate multilib: .;@m64
Selected multilib: .;@m64
I was missing libstdc++-12-dev
in the system. Installing it solved everything.
Linux Mint (bookworm/sid)
Using apt and official package version
OpenCV 4.5.4
rustc --version
1.79.0
Extra:
Thanks for any help. By the way, newbie on Rust, so, lost on the how to debug the build system