The PX4 firmware build fails consistently for SITL

16 ビュー (過去 30 日間)
Dhruvil
Dhruvil 2023 年 10 月 30 日
編集済み: John conner 2024 年 2 月 28 日
Hello,
I am trying to use simulink and px4 to perform SITL. but when i am setting up the hardware, i am not able to buide the firmware. I tried multiple time but no success.
This is the error i am getting. I tried selecting Pixhwak 6X, still i am not able to build firmware.
MathWorks PX4 Log File
BUILDSTARTING_13-Jun-2023_09-07-26
CMAKE Config selected : px4_sitl_default
BUILDCOMPLETE_13-Jun-2023_09-07-26
BUILDSTARTING_03-Jul-2023_15-48-51
CMAKE Config selected : px4_fmu-v6x_multicopter
BUILDSTARTING_03-Jul-2023_16-33-54
CMAKE Config selected : px4_sitl_default
BUILDSTARTING_05-Jul-2023_10-58-58
CMAKE Config selected : px4_fmu-v6x_multicopter
BUILDSTARTING_16-Aug-2023_15-32-28
CMAKE Config selected : px4_sitl_default
make: *** [Makefile:226: px4_sitl_default] Error 1
BUILDCOMPLETE_16-Aug-2023_15-32-28
BUILDSTARTING_16-Aug-2023_15-38-16
CMAKE Config selected : px4_sitl_default
make: *** [Makefile:226: px4_sitl_default] Error 1
BUILDCOMPLETE_16-Aug-2023_15-38-16
BUILDSTARTING_30-Oct-2023_08-53-42
CMAKE Config selected : px4_sitl_default
make: *** [Makefile:226: px4_sitl_default] Error 1
BUILDCOMPLETE_30-Oct-2023_08-53-42
BUILDSTARTING_30-Oct-2023_09-10-53
CMAKE Config selected : px4_sitl_default
make: *** [Makefile:226: px4_sitl_default] Error 1
BUILDCOMPLETE_30-Oct-2023_09-10-53
BUILDSTARTING_30-Oct-2023_16-05-54
CMAKE Config selected : px4_fmu-v6x_default
CMake Error at cmake/px4_add_library.cmake:41 (add_library):
Cannot find source file:
monocypher/src/monocypher.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Call Stack (most recent call first):
src/lib/crypto/CMakeLists.txt:34 (px4_add_library)
CMake Error at cmake/px4_add_library.cmake:41 (add_library):
No SOURCES given to target: monocypher
Call Stack (most recent call first):
src/lib/crypto/CMakeLists.txt:34 (px4_add_library)
Error: /cygdrive/c/PX4_cygwin/home/Firmware/build/px4_fmu-v6x_default is not a directory
make: *** [Makefile:226: px4_fmu-v6x_default] Error 1
BUILDCOMPLETE_30-Oct-2023_16-05-54
BUILDSTARTING_30-Oct-2023_16-19-31
CMAKE Config selected : px4_sitl_default
CMake Error at cmake/px4_add_library.cmake:41 (add_library):
Cannot find source file:
monocypher/src/monocypher.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Call Stack (most recent call first):
src/lib/crypto/CMakeLists.txt:34 (px4_add_library)
CMake Error at cmake/px4_add_library.cmake:41 (add_library):
No SOURCES given to target: monocypher
Call Stack (most recent call first):
src/lib/crypto/CMakeLists.txt:34 (px4_add_library)
Error: /cygdrive/c/PX4_cygwin/home/Firmware/build/px4_sitl_default is not a directory
make: *** [Makefile:226: px4_sitl_default] Error 1
BUILDCOMPLETE_30-Oct-2023_16-19-31

回答 (4 件)

Ankur Bose
Ankur Bose 2023 年 11 月 16 日
Can you try reinstalling the Cygwin toolchain?

Ali Andic
Ali Andic 2023 年 11 月 25 日
Error: /cygdrive/c/PX4/home/Firmware/build/px4_fmu-v5_fixedwing is not a directory
make: *** [Makefile:226: px4_fmu-v5_fixedwing] Error 1
BUILDCOMPLETE_18-Nov-2023_17-38-41
BUILDSTARTING_18-Nov-2023_17-52-31
CMAKE Config selected : px4_fmu-v5_fixedwing
CMake Error at cmake/px4_add_library.cmake:41 (add_library):
Cannot find source file:
monocypher/src/monocypher.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Maybe a mistake here ??? ->
px4_add_library(monocypher
monocypher/src/monocypher.c
monocypher/src/optional/monocypher-ed25519.c
)
target_include_directories(monocypher
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/monocypher/src
)
# There is a one shadow warning in monocypher 3.1.2, ignore it
target_compile_options(monocypher PRIVATE -Wno-shadow)

Ali Andic
Ali Andic 2023 年 11 月 25 日
Maybe a mistake here ??? -> C:\PX4\home\Firmware\src\lib\crypto :
px4_add_library(monocypher
monocypher/src/monocypher.c
monocypher/src/optional/monocypher-ed25519.c
)
target_include_directories(monocypher
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/monocypher/src
)
# There is a one shadow warning in monocypher 3.1.2, ignore it
target_compile_options(monocypher PRIVATE -Wno-shadow)

John conner
John conner 2024 年 2 月 28 日
編集済み: John conner 2024 年 2 月 28 日
It seems that the problem is on "cygdrive/c/PX4_cygwin/home/Firmware/build/px4_sitl_default"
make sure that the firmware folder is on home directory not in "home/mypx4" or anything else.
also it is suggested to install on "C:\PX4" instead of "C:\PX4_cygwin"
can you access C drive to write something? i mean are you an administrator user?

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by