udev 182 交叉編譯

udev 182 交叉編譯

option: --disable-introspection --disable-gudev --disable-keymap --disable-manpages --disable-mtd_probe

出現錯誤:
undefined reference to `major'
undefined reference to `makedev'

參考:https://github.com/chaos/diod/issues/44

在每個有錯的 .c 檔加入以下:
#include <sys/sysmacros.h>

出現錯誤:
undefined reference to `mq_getattr'

連結 rt:
LDFLAGS="-lrt"

出現錯誤:
unknown type name ‘uint32_t’

在錯誤的 .c 加入:
#include <stdint.h>

留言

熱門文章