jor = major(buf->st_rdev);`
`| ^~~~~`
`mksquashfs.c:1012:24: error: called object ‘minor’ is not a function or function pointer`
`1012 | unsigned int minor = minor(buf->st_rdev);`
`| ^~~~~`
`mksquashfs.c:1012:16: note: declared here`
`1012 | unsigned int minor = minor(buf->st_rdev);
解决:
修改: osdrv/tools/pc/squashfs4.3/Makefile
SQUASHFS := squashfs4.3
改为:
SQUASHFS := squashfs4.4
这里就是脚本补丁和readme中有差异的地方,为了解决这个错误,我们使用了squashfs4.4而不是squashfs4.3
示例二:
mksquashfs.c:987:24: error: called object ‘major’ is not a function or function pointer
987 | unsigned int major = major(buf->st_rdev);
解决:下载 squashfs4.4.tar.gz -- https://sourceforge.net/projects/squashfs/files/squashfs/
并存放到 osdrv/tools/pc/squashfs4.3 目录中,然后修改 Makefile 中 “squashfs4.3” 为 “squashfs4.4”
7、编译SDK报错
arm-himix200-linux-gcc: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
解决:首先 vi ~/.bashrc
然后在最后一行输入:export LC_CTYPE=C.UTF-8
8、编译Uboot报错
报错:
"mkimage" command not found - U-Boot images will not be built
解决办法:
sudo apt-get install u-boot-tools