nvtop icon indicating copy to clipboard operation
nvtop copied to clipboard

error: use of undeclared identifier 'kIOMainPortDefault'

Open ryandesign opened this issue 1 year ago • 0 comments

nvtop 3.1.0 fails to build on macOS 11:

src/extract_gpuinfo_apple.m:92:66: error: use of undeclared identifier 'kIOMainPortDefault'
    const io_service_t gpu_service = IOServiceGetMatchingService(kIOMainPortDefault, IORegistryEntryIDMatching(registry_id));
                                                                 ^
1 error generated.

Indeed kIOMainPortDefault was introduced in macOS 12.

I couldn't find a statement of which macOS versions are supported so I don't know if this limitation is intentional.

ryandesign avatar Mar 16 '24 12:03 ryandesign