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

Build In Windows Error #4

Open
ftlong6666 opened this issue Nov 5, 2019 · 0 comments
Open

Build In Windows Error #4

ftlong6666 opened this issue Nov 5, 2019 · 0 comments

Comments

@ftlong6666
Copy link

ftlong6666 commented Nov 5, 2019

Hi I tried to build this code in windows but I have this error which failed to find pthread.h

./src/sal_metric.cpp(13): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

Then I tried to download the library here but I got another error here.

./pthreads.1\pthread.h(339): error C2011: 'timespec': 'struct' type redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\time.h(39): note: see declaration of 'timespec'
./src/sal_metric.cpp(14): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

Compiled in :
-Windows 10
-Cython 3.0
-Python 3.7
-Opencv 4.1.1

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

1 participant