Closed SwordofMorning closed 2 years ago
It's a linking problem, in CML2, add:
LINK_LIBRARIES("/home/xjt/SF6_RV1126/RV1126/buildroot/output/rockchip_rv1126_rv1109_dcir/host/arm-linux-gnueabihf/sysroot/usr/lib/libdrm.so")
TARGET_LINK_LIBRARIES(demo libdrm.so)
I tried to use DRM as the display interface of the project, but I encountered some problems when compiling:
I use CMake to build my project, my cc tool chain is
arm-linux-gnueabihf-
whic is produced by Buildroot. Here is my project tree:CMakeLists 1:
CMakeLists 2:
CMakeLists 3 & 4 are similar :
But when i use fb instead of drm, it compiles fine. Here is my main.c: