lfreist / hwinfo

cross platform C++ library for hardware information (CPU, RAM, GPU, ...)
MIT License
433 stars 74 forks source link

Msys2/MinGW build doesn't work on Windows #48

Closed lcjuanpa closed 9 months ago

lcjuanpa commented 1 year ago

Hello @lfreist

I have built successfully hwinfo on Windows 10 using Msys2 using next commands:

git clone https://github.com/lfreist/hwinfo cd hwinfo mkdir build cd build cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release .. make

However running Example.exe no hardware info is displayed. See next picture: hwinfoOutput I saw there is a version for Visual Studio however I am working with open source tools. Can you help me to fix this issue? Is it possible to use hwinfo with Msys2 environment?

lfreist commented 1 year ago

Hi!

HWinfo uses WMI classes for querying hardware information on windows. As far as I know, this is not supported with Msys2... However, I did not dive into this in depth, so if you manage to make it work with msys, I'd be happy if you let me know!