davisking / dlib

A toolkit for making real world machine learning and data analysis applications in C++
http://dlib.net
Boost Software License 1.0
13.57k stars 3.38k forks source link

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

Closed Harshu2032000 closed 6 months ago

Harshu2032000 commented 6 months ago

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 | ^~~~ *** 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

Harshu2032000 commented 6 months ago

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