页次: 1
lvgl+lv_driver都用v8.2的版本
报错了。
[ 44%] Linking C static library ../lib/liblv_drivers.a
[ 44%] Built target lv_drivers
Scanning dependencies of target users
[ 45%] Building C object users/CMakeFiles/users.dir/Guider/gui_guider.c.o
In file included from /home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:12:0:
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.h:43:82: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.h:47:83: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.h:51:86: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.h:55:103: error: unknown type name 'lv_anim_deleted_cb_t'
uint32_t playback_delay, lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:49:82: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb)
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:75:83: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb)
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:101:86: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb)
^~~~~~~~~~~~~~~~~~~~
/home/lee/Documents/baozi/lv_port_linux_frame_buffer-z_bloziplayer/users/Guider/gui_guider.c:123:78: error: unknown type name 'lv_anim_deleted_cb_t'
lv_anim_start_cb_t start_cb, lv_anim_ready_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb)
^~~~~~~~~~~~~~~~~~~~
make[2]: *** [users/CMakeFiles/users.dir/build.make:63: users/CMakeFiles/users.dir/Guider/gui_guider.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:282: users/CMakeFiles/users.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
lv_anim_deleted_cb_t 请问在哪个版本中才有呀。
HOSTCC tools/aisimage.o
In file included from tools/../include/../lib/libfdt/libfdt.h:10,
from tools/../include/libfdt.h:1,
from tools/fdt_host.h:11,
from tools/imagetool.h:24,
from tools/aisimage.c:8:
/usr/include/libfdt_env.h:27:30: error: conflicting types for ‘fdt64_t’; have ‘uint64_t’ {aka ‘long unsigned int’}
27 | typedef uint64_t FDT_BITWISE fdt64_t;
| ^~~~~~~
In file included from <command-line>:
././include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ with type ‘fdt64_t’ {aka ‘long long unsigned int’}
19 | typedef __be64 fdt64_t;
| ^~~~~~~
In file included from ././include/libfdt_env.h:12,
from <command-line>:
/usr/include/libfdt_env.h:47:24: error: expected ‘)’ before ‘x’
47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)
| ^~~~~~~~~~~~
././include/compiler.h:72:12: error: expected ‘)’ before ‘&’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^
././include/compiler.h:72:26: error: expected ‘)’ before ‘>>’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^~
././include/compiler.h:72:33: error: expected ‘)’ before ‘|’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^
/usr/include/libfdt_env.h:51:23: error: expected ‘)’ before ‘x’
51 | static inline fdt32_t cpu_to_fdt32(uint32_t x)
| ^~~~~~~~~~~~
././include/compiler.h:72:12: error: expected ‘)’ before ‘&’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^
././include/compiler.h:72:26: error: expected ‘)’ before ‘>>’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^~
././include/compiler.h:72:33: error: expected ‘)’ before ‘|’ token
72 | ((((x) & 0xff000000) >> 24) | \
| ^
././include/compiler.h:105:33: error: redefinition of ‘uswap_64’
105 | # define cpu_to_be64(x) uswap_64(x)
| ^~~~~~~~
././include/compiler.h:108:33: note: previous definition of ‘uswap_64’ with type ‘uint64_t(fdt64_t)’ {aka ‘long unsigned int(long unsigned int)’}
108 | # define be64_to_cpu(x) uswap_64(x)
| ^~~~~~~~
make[1]: *** [scripts/Makefile.host:116: tools/aisimage.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1292: tools] Error 2
跟着教程走编译u-boot报错了。。求大佬帮助。。
页次: 1