Firefly开源社区

标题: roc-rk3328-pc 报错 编译Android不通过急!急!急!求救 [打印本页]

作者: luyinlong    时间: 2020-6-28 22:50
标题: roc-rk3328-pc 报错 编译Android不通过急!急!急!求救
编译环境是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.


作者: jpchen    时间: 2020-6-29 08:54
确认一下是否python版本的问题
作者: luyinlong    时间: 2021-9-11 15:20
解决 ImportError: No module named Crypto.Signature

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

如下

sudo apt-get install python-dev

Or

sudo aptitude install python-dev





欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1