Firefly开源社区

打印 上一主题 下一主题

[Android] roc-rk3328-pc 报错 编译Android不通过急!急!急!求救

40

积分

0

威望

0

贡献

技术小白

积分
40

roc-rk3328-pc 报错 编译Android不通过急!急!急!求救

发表于 2020-6-28 22:50:11      浏览:6448 | 回复:2        打印      只看该作者   [复制链接] 楼主
编译环境是ubuntu1604, 报错说编译不成功 ,  编译到build TAS时  报错  FAILD: TAs


No need to regenerate ninja file
[  0% 401/70613] Target buildinfo: out...em_build_prop_intermediates/build.prop
Target buildinfo from: device/rockchip/rk3328/rk3328_roc_pc_box/system.prop
[  0% 633/70613] Ensuring Jack server is installed and started
Jack server already installed in "/root/.jack-server"
Server is already running
[  3% 2143/70613] build TAs
FAILED: TAs
/bin/bash -c "(make -j1 -C /home/rk/Android8.1/external/rk_tee_user O=/home/rk/Android8.1/external/rk_tee_user TA_DEV_KIT_DIR=/home/rk/Android8.1/external/rk_tee_user/export-user_ta clean ) && (make -j1 -C /home/rk/Android8.1/external/rk_tee_user CROSS_COMPILE=\$(pwd)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-         CROSS_COMPILE_HOST=\$(pwd)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-         CROSS_COMPILE_TA=\$(pwd)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-         CROSS_COMPILE_user_ta=\$(pwd)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-         TA_DEV_KIT_DIR=/home/rk/Android8.1/external/rk_tee_user/export-user_ta         O=/home/rk/Android8.1/external/rk_tee_user )"
make: Entering directory '/home/rk/Android8.1/external/rk_tee_user'
make[1]: Entering directory '/home/rk/Android8.1/external/rk_tee_user/ta'
make[2]: Entering directory '/home/rk/Android8.1/external/rk_tee_user/ta/testapp'
  CLEAN   .
make[2]: Leaving directory '/home/rk/Android8.1/external/rk_tee_user/ta/testapp'
make[2]: Entering directory '/home/rk/Android8.1/external/rk_tee_user/ta/testapp_storage'
  CLEAN   .
make[2]: Leaving directory '/home/rk/Android8.1/external/rk_tee_user/ta/testapp_storage'
make[1]: Leaving directory '/home/rk/Android8.1/external/rk_tee_user/ta'
make: Leaving directory '/home/rk/Android8.1/external/rk_tee_user'
make: Entering directory '/home/rk/Android8.1/external/rk_tee_user'
make[1]: Entering directory '/home/rk/Android8.1/external/rk_tee_user/ta'
make[2]: Entering directory '/home/rk/Android8.1/external/rk_tee_user/ta/testapp'
  CC      /home/rk/Android8.1/external/rk_tee_user/ta/testapp/testapp_ta.o
  CC      /home/rk/Android8.1/external/rk_tee_user/ta/testapp/user_ta_header.o
  CPP     /home/rk/Android8.1/external/rk_tee_user/ta/testapp/ta.lds
  LD      /home/rk/Android8.1/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.elf
  OBJDUMP /home/rk/Android8.1/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.dmp
  OBJCOPY /home/rk/Android8.1/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.stripped.elf
  SIGN    /home/rk/Android8.1/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.ta
Traceback (most recent call last):
  File "/home/rk/Android8.1/external/rk_tee_user/export-user_ta/scripts/sign.py", line 80, in <module>
    main()
  File "/home/rk/Android8.1/external/rk_tee_user/export-user_ta/scripts/sign.py", line 40, in main
    from Crypto.Signature import PKCS1_v1_5
ImportError: No module named Crypto.Signature
/home/rk/Android8.1/external/rk_tee_user/export-user_ta/mk/link.mk:60: recipe for target '/home/rk/Android8.1/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.ta' failed
make[2]: *** [/home/rk/Android8.1/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.ta] Error 1
make[2]: Leaving directory '/home/rk/Android8.1/external/rk_tee_user/ta/testapp'
Makefile:37: recipe for target 'ta' failed
make[1]: *** [ta] Error 2
make[1]: Leaving directory '/home/rk/Android8.1/external/rk_tee_user/ta'
Makefile:27: recipe for target 'ta' failed
make: *** [ta] Error 2
make: Leaving directory '/home/rk/Android8.1/external/rk_tee_user'
[  3% 2158/70613] //external/protobuf:.../google/protobuf/descriptor.cc [linux]
ninja: build stopped: subcommand failed.

回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2020-6-29 08:54:06        只看该作者  沙发
确认一下是否python版本的问题
回复

使用道具 举报

40

积分

0

威望

0

贡献

技术小白

积分
40
发表于 2021-9-11 15:20:22        只看该作者  板凳
解决 ImportError: No module named Crypto.Signature

编译OPTEE的时候出现了以上这个错误,安装完python 跟 pycrypto的时候还是有问题还需要再安装dev

如下

sudo apt-get install python-dev

Or

sudo aptitude install python-dev
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表