Cisco-Talos / clamav

ClamAV - Documentation is here: https://docs.clamav.net
https://www.clamav.net/
GNU General Public License v2.0
4.47k stars 707 forks source link

Can't find PThreadW32 on mingw #1351

Open Kreijstal opened 2 months ago

Kreijstal commented 2 months ago

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 commented 2 months ago

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"