Syllo / nvtop

GPU & Accelerator process monitoring for AMD, Apple, Huawei, Intel, NVIDIA and Qualcomm
Other
7.69k stars 281 forks source link

Compilation error from macOS on Apple ARM #285

Open Faizanq opened 3 months ago

Faizanq commented 3 months ago

Darwin Faizans-MacBook-Pro.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:27 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T8103 x86_64

-- The C compiler identification is AppleClang 15.0.0.15000100 -- The CXX compiler identification is AppleClang 15.0.0.15000100 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Setting build type to 'Release' as none was specified. -- Looking for cbreak in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libncurses.tbd -- Looking for cbreak in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libncurses.tbd - found -- Found Curses: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/lib/libcurses.tbd
-- Performing Test HAS_REALLOCARRAY -- Performing Test HAS_REALLOCARRAY - Failed -- Could NOT find UDev (missing: UDEV_LIBRARY UDEV_INCLUDE_DIR) (found version "") -- Could NOT find Systemd (missing: SYSTEMD_LIBRARY SYSTEMD_INCLUDE_DIR) (found version "") CMake Error at src/CMakeLists.txt:71 (message): Neither libsystemd nor libudev were found; These are required for AMDGPU and INTEL support

servusdei2018 commented 2 months ago

libsystemd and libudev are required if you are building nvtop with the -DAMDGPU_SUPPORT=ON and -DINTEL_SUPPORT=ON flags. These libraries are not present on macOS, and neither are AMD or Intel GPUs so you should not be building nvtop with those flags enabled.