ulagbulag / dlib-face-recognition

Unofficial Rust wrappers to the C++ library dlib, face recognition tools
BSD 3-Clause "New" or "Revised" License
45 stars 28 forks source link

failed to run custom build command for `dlib-face-recognition v0.3.0` on Fedora 38 #21

Closed albx79 closed 1 year ago

albx79 commented 1 year ago

I'm getting the error above when trying to build using cargo on Fedora 38 with g++ 13.

The failure seems to be due to a number of ... function uses ‘auto’ type specifier without trailing return type errors. (I'm attaching the output of cargo build 2> error.log).

According to StackOverflow (https://stackoverflow.com/questions/44798728/warning-function-uses-auto-type-specifier-without-trailing-return-type), that code can only be compiled with C++14. I've noticed that the latest release of gcc is version 13, so I wonder how can this code be compiled at all.

Any help is greatly appreciated.

Thanks

error.log

JSanchesDovichi commented 1 year ago

This seems to be a duplicate on #18 . Dlib started using c++14 standard, and that has caused some breaks, but otherwise, a easy fix. (Fixed in #22.) The GCC collection version 13 does not correlate to the c++ standard version. c++14 had initial support in GCC 4.9, so this shoudn`t be a problem.

HoKim98 commented 1 year ago

Could you check the latest commit?

albx79 commented 1 year ago

I can confirm that it works with the latest commit, thanks!