DJI PSDK Fail to compile on Raspberry Pi 4B (aarch64)
CompletedGood day,
Following the steps in https://developer.dji.com/doc/payload-sdk-tutorial/en/quick-start/quick-guide/raspberry-pi.html.
After installing all the dependencies, when I run from root 'Payload-SDK':
mkdir build && cd build
cmake -S .. -B .
make
It returns the following error:
/usr/bin/ld: [skipped path]/psdk_lib/lib/aarch64-linux-gnu-gcc/libpayloadsdk.a: error adding symbols: file format not recognized
collect2: error: ld returned 1 exit status
Checked libpayloadsdk.a file structure and all files inside the .a seem to be indeed ELF64 AArrch64 with:
readelf -h psdklib/lib/aarch64-linux-gnu-gcc/libpayloadsdk.a
OS info:
uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
hostnamectl
[skipped]
Operating System: Raspbian GNU/Linux 11 (bullseye)
Kernel: Linux 6.1.21-v8+
Architecture: arm64
Any suggestion?
-
Dear Developer, Hello, thank you for contacting DJI. Which version are you using? What is strange is that the Raspberry Pi 4B we used for debugging did not have this problem. Have you modified the CMakeLists.txt file? Thank you for your support of DJI products. Best Regards, DJI Dajiang innovation SDK technical support -
Hello developers, You can download the Raspberry Pi image here and try to flash it. This image is consistent with the development board we debugged. You can try flashing it and then download the PSDK program for compilation. We have verified the image. It is available. https://pan-sec.djicorp.com/s/cn78s3Gn2zcagon dji123
Please sign in to leave a comment.
Comments
4 comments