Skip to content

Building within Raspberry Pi 4 OS Lite, fails with make? #326

Answered by xiaohuirong
Ciantic asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't compiled v3d support separately before and forgot to add device_discovery_linux.c to the source files. You can try the following patch or enable Intel support.

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 169e112..9ba7a9a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -60,7 +60,7 @@ if(ASCEND_SUPPORT)
   target_link_libraries(nvtop PRIVATE "${DCMI_LIBRARY_PATH}/libdcmi.so")
 endif()
 
-if(AMDGPU_SUPPORT OR INTEL_SUPPORT)
+if(AMDGPU_SUPPORT OR INTEL_SUPPORT OR V3D_SUPPORT)
   if((SYSTEMD_FOUND AND UDEV_FOUND AND USE_LIBUDEV_OVER_LIBSYSTEMD) OR(NOT SYSTEMD_FOUND AND UDEV_FOUND))
     target_compile_definitions(nvtop PRIVATE USING_LIBUDEV)
     target_lin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ciantic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants