Open hkk97 opened 7 months ago
Hello, this error may occur if the dlib
native library is not installed on the host machine. This can be resolved by installing the library using a package manager, or preparing it for linking by manually building or downloading the binary.
If this process is cumbersome and you want to proceed smoothly, you can configure it to build automatically by activating the build-native
feature when building cargo like: cargo build --features build-native
.
The reason this feature is turned off by default is because the build time takes quite a bit, over 30 minutes.
Thank you for answering and providing the suggested ideas. I think I should try running it on macOS and Windows.
To be honest, running cargo build --features build-native
works fine for me. However, it seems to fail to link with the dlib
library. I tried linking with the dlib
library by configuring the .vscode/c_cpp_properties.json
file as shown in the code below. After that, I ran cargo run again, and the built .o object file was able to link with thedlib
library on my PC. However, the src/wrapper.rs
file still fails to link with the header files from dlib
.
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/tester/Desktop/dlib"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "c++14",
"intelliSenseMode": "linux-clang-x64"
}
],
"version": 4
}
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, I want to try learning from this project and running the example, but I encountered a few issues. I have ensured that I have installed CMake, g++, and c++, and my versions are as follows. The build process of dlib should be without any issues, but I don't know why the
wrapper.rs
file is unable to link with the header files referenced from the target build folder. Could you please give me some tips or ideas on how to solve these issues?cmake --version
c++ --version
g++ --version
Cargo build errors