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

Can't find PThreadW32 on mingw #1351

Open
Kreijstal opened this issue Aug 29, 2024 · 1 comment
Open

Can't find PThreadW32 on mingw #1351

Kreijstal opened this issue Aug 29, 2024 · 1 comment

Comments

@Kreijstal
Copy link

Kreijstal commented Aug 29, 2024

Describe the bug

I am trying to compile clamav but despite having mingw-w64-ucrt-x86_64-winpthreads-git installed I get the error

-- Could NOT find PThreadW32 (missing: PThreadW32_LIBRARIES) 
****** mempool support disabled (mmap() not available or not usable)

How to reproduce the problem

install msys2 and msys2-rust + dependencies
do cmake -B build
see error.

@micahsnyder
Copy link
Contributor

We don't support building under mingw. I have no idea if it will work. You might get it to detect PThreadW32 by using something like

cmake .. \
   -D PThreadW32_INCLUDE_DIR="/path/to/your/include" \
   -D PThreadW32_LIBRARY="/path/to/your/lib/pthreadVC3.lib" 

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