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

Unable to compile dlib due to some file encoding issue? #2953

Open
ManHinnn0509 opened this issue Apr 29, 2024 · 4 comments
Open

Unable to compile dlib due to some file encoding issue? #2953

ManHinnn0509 opened this issue Apr 29, 2024 · 4 comments

Comments

@ManHinnn0509
Copy link

What Operating System(s) are you seeing this problem on?

Windows

dlib version

19.24

Python version

3.9.13

Compiler

GCC 11.3.0, MSVC 14

Expected Behavior

Since CUDA and cuDNN was found, I expect to install dlib with CUDA support

Current Behavior

When I run cmake .. in build directory, it says "CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA." and CUDA is not going to be used in dlib. The error message seems to be related to some file encoding issue? The whole output is very long so I uploaded it as a gist raw file

Steps to Reproduce

cd dlib
mkdir build
cd build
cmake ..

^ The error occurs during in cmake ..

Anything else?

I also tried to build test_for_cuda and test_for_cudnn (As mentioned in another issue), test_for_cudnn has no error but test_for_cuda has error in cmake --build ., the output is also very long so I also uploaded it as a gist raw file

Tried to Google this and search it in here but by far couldn't find anything related to this... Please help

@davisking
Copy link
Owner

I can't say, other than it looks like something in your visual studio or cuda install is broken (i.e. something unrelated to dlib).

@ManHinnn0509
Copy link
Author

ManHinnn0509 commented May 7, 2024

I downgraded CUDA from 11.3 to 11.2, CUDA is working because Tensorflow is using my GPU and also upgraded VS2019 but the problem still exists.

I wonder if I can use VS2019 to compile dlib? Because I can't download VS2015 anymore and I plan to re-install VS2019 if it can be used to compile dlib

@davisking
Copy link
Owner

Yeah VS2019 is fine. As are newer versions of visual studio.

@ManHinnn0509
Copy link
Author

Got it, will try again soon and I will keep things updated in here.

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

2 participants