davisking/dlib

[Bug]: /usr/include/c++/11/cmath:45:15: fatal error: math.h: No such file or directory

Harshu2032000 opened this issue · 1 comments

What Operating System(s) are you seeing this problem on?

Linux (x86-64)

dlib version

19.24

Python version

No response

Compiler

gcc 11.4, nvcc 12.4, ubuntu 22.04

Expected Behavior

No response

Current Behavior

Dlib installation being terminated. Giving error as /usr/include/c++/11/cmath:45:15: fatal error: math.h: No such file or directory
*** 45 | #include_next <math.h>
*** | ^~~~~~~~
*** compilation terminated.
Screenshot from 2024-05-01 11-24-39

Steps to Reproduce

download and extract dlib.
go to examples directory.
create a build folder
inside build folder run command cmake ..

Anything else?

No response

This issue was because of multiple cuda installations. After fresh installation of Ubuntu and cuda the issue was resolved.