Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo build failures on windows ` #30

Open
eklemis opened this issue Dec 4, 2023 · 2 comments
Open

Cargo build failures on windows ` #30

eklemis opened this issue Dec 4, 2023 · 2 comments

Comments

@eklemis
Copy link

eklemis commented Dec 4, 2023

cargo build with dlib-face-recognition = {version = "0.3.2", features = ["embed-all"]} set in cargo.toml end up failed with message:
error: could not find native static library dlib, perhaps an -L flag is missing?

systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 11 Enterprise
OS Version: 10.0.22000 N/A Build 22000

cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33130 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

vcpkg list
blas:x64-windows 2023-03-25 Metapackage for packages which provide BLAS
lapack-reference:x64-windows 3.11.0#1 LAPACK - Linear Algebra PACKage
lapack-reference[blas-select]:x64-windows Use external optimized BLAS
lapack-reference[noblas]:x64-windows Use external optimized BLAS
lapack:x64-windows 2022-02-22#2 Metapackage for packages which provide LAPACK
openblas:x64-windows 0.3.25 OpenBLAS is an optimized BLAS library based on G...
sqlite3:x64-windows 3.43.2 SQLite is a software library that implements a s...
sqlite3[json1]:x64-windows Enable JSON functionality for sqlite3
vcpkg-cmake-config:x64-windows 2022-02-06#1
vcpkg-cmake:x64-windows 2023-05-04
vcpkg-gfortran:x64-windows 3#3 Metaport to install gfortran dependencies from m...

@JSanchesDovichi
Copy link
Contributor

Hello!

This error indicates that the dlib library was not found in the machine.
Recently this crate has changed it's behaviour to not include the entire download and installation of dlib by default, and also the feature flag to enable this was modified to "build-native"

The "build-native" flag will download and make a local install for dlib, but in case you dont wish this, do look for instructions on how to build and use it in Windows globally.

I did a quick test in my Win11 machine, and when changing the feature flag's name to "build-native", seems like it was built correctly.

There seems to be some bugs in the code however, i'll take a look at them shortly..

Do let us know if the problem persist!

@HoKim98
Copy link
Member

HoKim98 commented May 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants