Closed gkhnv closed 4 months ago
Hi, it seems that the system library dlib
you installed has not found by our build.rs
. Could you register an environment variable DEP_DLIB_INCLUDE
to your dlib path? It's likely be a __YOUR_LIBRARY_PATH__/dlib-19.24
if you downloaded it from the official homepage.
Hello, thanks for the answer. At first I installed dlib by using vcpkg. I registered that to the environment variable, yet it doesn't seem to solve the problem. Then I tried to install it from dlib's official page. I tried to include the source code path for the env variable, both root directory and the "dlib" directory inside of the "dlib-19.24" folder. None of them helps. When I downloaded the source code from the website, I wanted to compile the examples using cmake, however it still gives errors. Maybe there is some problem with my cmake installation. I downloaded the binary from the official website and followed instructions. I also installed CUDA and CUDNN into my machine.
When i try to build the dlib examples it gives this error, which I couldn't find anything from the web:
CMake Deprecation Warning at CMakeLists.txt:35 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
CMake Deprecation Warning at C:/dlib-19.24/dlib/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Error at C:/dlib-19.24/dlib/CMakeLists.txt:4 (include):
include could not find requested file:
../use_cpp_11.cmake
CMake Warning (dev) at C:/dlib-19.24/dlib/CMakeLists.txt:8 (find_package):
Policy CMP0146 is not set: The FindCUDA module is removed. Run "cmake
--help-policy CMP0146" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at C:/dlib-19.24/dlib/CMakeLists.txt:13 (include):
include could not find requested file:
find_cudnn.txt
OpenCV not found, so we won't build the webcam_face_pose_ex example.
-- Configuring incomplete, errors occurred!
Thanks for your attention in advance.
I have solved the problem. I was trying to install the dlib-face-recognition library into a already existing project. I don't know why, but it somehow gave the error that I mentioned in the very first comment. When I tried it with a new project it worked just fine. Thanks for your attention.
Hello, I am currently working on a Tauri project that needs to use face recognition. I have python code for such functionality, however i need to rewrite the code in rust to make it work on my desktop app. I added the crate to the cargo.toml, I have all the mentioned prerequisites in my machine. I already installed cmake (version 3.29.2) and dlib (installed through vcpkg). When I try to build the program it gives the following error:
However, when I try to build it using "build-native" feature, it gives the following error:
I would really appreciate any help. Thanks.