MATLAB px4 Toolbox has build error in preparation set up

18 visualizaciones (últimos 30 días)
종원 이
종원 이 el 21 de Ag. de 2023
Comentada: 종원 이 el 16 de Nov. de 2023
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.

Respuesta aceptada

Angelo Yeo
Angelo Yeo el 22 de Ag. de 2023
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 comentarios
arun krishnan
arun krishnan el 15 de Nov. de 2023
I build px4 directly with cygwin. But still its showing the same error. Please let us know how to go ahead
종원 이
종원 이 el 16 de Nov. de 2023
Can you give exact error message?

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by