ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

Compile on linux #10

Closed EndErr closed 5 years ago

EndErr commented 5 years ago

How to use that library on a linux platform?

nabijaczleweli commented 5 years ago

You should be able to run make, then link to out/libinfoware.a and include files from the include/ folder to use the library, there are no required special steps to it on Linux. (There are optional ones, however, as forthlaid in the Configuration sexion in README.)

The only problem I encountered on my Linux machine just now when trying to build the library was the missing cpuid.h header; that is, however, a common issue, and you should be able to copy /usr/lib/gcc/{your-dist}/{some-version}/include/cpuid.h into /usr/include/ to alleviate it.

nabijaczleweli commented 5 years ago

Guessing you succeeded in building, then, @EndErr?