【技巧-PSDK-代码编译】如何编译适用于树莓派(armv7l)的PSDK2.0代码

关注

评论

2 条评论

  • 1198452591

    PSDK3.2版本的代码,按照上述方法依然cmake报错

    0
    评论操作 固定链接
  • DURAND Hugo

    Dear Bruce Cheung, dear DJI,

    I'm currently on the PSDK version 3.5. I followed your compilation process modifying the corresponding files CMakeLists.txt. 

    I'm compiling on the Raspberry Pi 4 model b, 

    I've been trying the gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi.tar.xz, gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz.

     

    - With aarch64-linux-gnu-gcc, after running the command : make -->  I'm getting the following error :

    /usr/bin/ld: ../../../../../../samples/sample_c/platform/linux/raspberryPi2MbV1.1_armv7l_eabi/../../../../../psdk_lib/lib/aarch64-linux-gnu-gcc/libpayloadsdk.a: error adding symbols: file format not recognized

     

    - With arm-linux-gnueabi-gcc/, after running the command : make -->  I'm getting the following error :

    /usr/bin/ld: error: ../../../../../bin/dji_sdk_demo_linux uses VFP register arguments, ../../../../../../samples/sample_c/platform/linux/raspberryPi2MbV1.1_armv7l_eabi/../../../../../psdk_lib/lib/arm-linux-gnueabi-gcc/libpayloadsdk.a(dji_flight_controller_param_config.c.o) does not
    /usr/bin/ld: failed to merge target specific data of file ../../../../../../samples/sample_c/platform/linux/raspberryPi2MbV1.1_armv7l_eabi/../../../../../psdk_lib/lib/arm-linux-gnueabi-gcc/libpayloadsdk.a(dji_flight_controller_param_config.c.o)

     

    I look forward to your reply,
    Respectfully,

    DURAND Hugo

    0
    评论操作 固定链接

登录写评论。

close