フィルターのクリア

MATLAB px4 Toolbox has build error in preparation set up

10 ビュー (過去 30 日間)
종원 이
종원 이 2023 年 8 月 21 日
コメント済み: 종원 이 2023 年 11 月 16 日
Hello, I recently updated MATLAB to R2023a version and UAV Toolbox Support Package for PX4 Autopilots to version 23.1.1.
I deleted previous PX4 folder and newly installed PX4 software as Cygwin Toolchain, which is already installed before.
After that, I do the Hardware setup as a preparation step and build error occur.
Below is the MW_px4_log.txt file content.
MathWorks PX4 Log File
BUILDSTARTING_2023-08-22_00-31-30
CMAKE Config selected : cubepilot_cubeorange_default
/cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/NuttX/nuttx/tools/incdir.sh: line 34: $'\r': command not found
/cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/NuttX/nuttx/tools/incdir.sh: line 36: $'\r': command not found
/cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/NuttX/nuttx/tools/incdir.sh: line 42: $'\r': command not found
/cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/NuttX/nuttx/tools/incdir.sh: line 44: syntax error near unexpected token `$'in\r''
/cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/NuttX/nuttx/tools/incdir.sh: line 44: ` case $1 in
'
/cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/NuttX/nuttx/tools/copydir.sh: line 48: $'\r': command not found
/cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/NuttX/nuttx/tools/copydir.sh: line 51: $'\r': command not found
/cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/NuttX/nuttx/tools/copydir.sh: line 53: $'\r': command not found
/cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/NuttX/nuttx/tools/copydir.sh: line 101: syntax error: unexpected end of file
make[1]: *** [tools/Makefile.unix:268: include/arch] Error 2
make: *** [Makefile:226: cubepilot_cubeorange_default] Error 1
BUILDCOMPLETE_2023-08-22_00-31-30
Also, Matlab prompt shows such lines(Not entire lines. I just pick some important things)
-- cmake build type: MinSizeRel
-- The CXX compiler identification is GNU 7.3.1
-- The C compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /cygdrive/c/PX4/toolchain/gcc-arm/bin/arm-none-eabi-gcc.exe
-- Check for working CXX compiler: /cygdrive/c/PX4/toolchain/gcc-arm/bin/arm-none-eabi-g++.exe
-- Check for working CXX compiler: /cygdrive/c/PX4/toolchain/gcc-arm/bin/arm-none-eabi-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - failed
-- Check for working C compiler: /cygdrive/c/PX4/toolchain/gcc-arm/bin/arm-none-eabi-gcc.exe
-- Check for working C compiler: /cygdrive/c/PX4/toolchain/gcc-arm/bin/arm-none-eabi-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - failed
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "3")
-- build type is MinSizeRel
-- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-591-gb3fed06
-- Configuring done
-- Generating done
-- Build files have been written to: /cygdrive/c/PX4/home/Firmware/build/cubepilot_cubeorange_default/external/Build/bootloader_firmware
ninja: build stopped: subcommand failed.
It seems this is internal error in your matlab toolbox code, related to the compatibility with UNIX.
Please tell me whether this is internal error or not, and if not, how can I fix this situation.
Please notice me if there are more needed information.
Thank you in advance.

採用された回答

Angelo Yeo
Angelo Yeo 2023 年 8 月 22 日
Hello,
1) Can you try to build PX4 directly on Cygwin?
2) If the above does not solve your issue, please contact Technical Support with full log from the Simulink Diagnostic viewer for further investiation.
https://www.mathworks.com/support/contact_us.html
  4 件のコメント
arun krishnan
arun krishnan 2023 年 11 月 15 日
I build px4 directly with cygwin. But still its showing the same error. Please let us know how to go ahead
종원 이
종원 이 2023 年 11 月 16 日
Can you give exact error message?

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by