目录
问题
1.找不到某个版本的so库类问题
- 问题1:prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
见https://blog.csdn.net/Jyw_Gmz/article/details/141108136, 通过建立软链接指向已经存在的版本的文件。 - 问题2:prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
2.Invalid filesystem option set: has_journal,extent,huge_file,flex_bg,metadata_csum,metadata_csum_seed,64bit,dir_nlink,extra_isize,orphan_file
这个错误在百度是搜索不到任何相关的资料的,google搜索倒是搜索到几条相同的错误。
1)搜索1
https://gist.github.com/Roker2/f9a6422a70840435880a11d12902bafc
https://www.reddit.com/r/LineageOS/comments/18lej4b/if_your_build_is_failing_with_an_error_regarding/
解决方式有给e2fsprogs软件包降级、降级ubuntu版本。
给e2fsprogs软件包降级还得编译其源码,降级ubuntu版本又得重新装ubuntu和下载编译源码,代价过大,且不确定是否又会出现同样问题。
2)搜索2
https://unix.stackexchange.com/questions/784897/which-options-is-mke2fs-t-ext4-compatible-with
disable orphan_file in /etc/mke2fs.conf,没有报此错误,但是会有新的错误。
3.device/generic/goldfish/tools/mk_combined_img.py: 无法执行:找不到需要的文件
注意,这里找不到文件并不是mk_combined_img.py这个文件找不到,而是mk_combined_img.py文件的第一行/usr/bin/python找不到。根据经验,创建/usr/bin/python软链接指向/usr/bin/python3,但是会报语法错误。
4.SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
这是语法兼容性的问题,上面将/usr/bin/python软链接指向/usr/bin/python3,导致语法不兼容。要么修改这个python文件,修改语法为python3的语法(可能存在其它的文件也有同样的问题),或者想办法将python或者python2安装上。
探索了一下python文件内容,果然很多print语句,如果强制修改语法显示不可取的,所以只能安装低python版本。
但是python2无法通过apt来安装,只能下载源码编译安装,见http://xinyiworld.top/wordpress_it/?p=15489
安装好python2,将/usr/bin/python指向python2即可。
编译成功
编译成功会有#### build completed successfully (4 seconds) ####
的输出,如果是nohup make -j8 &
后台编译的话,这行日志不会输出到nohup.out文件中。
0 条评论