Px4 build failed

I’m trying to build px4 using matlab.
Here is the error its showing:

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/home/Firmware/build/px4_fmu-v3_default is not a directory
make: *** [Makefile:226: px4_fmu-v3_default] Error 1
BUILDCOMPLETE_25-Jan-2024_13-01-51
BUILDSTARTING_26-Jan-2024_08-26-01
CMAKE Config selected : px4_fmu-v3_default

I had this same issue. I resolved it be going back to the tool chain GUI and clicking the remove from computer option. Setting Up Cygwin Toolchain and Downloading PX4 Source Code - MATLAB & Simulink

I then reinstalled it.

image

I also made it so PX4 is in the name of the path, see image above

Now can get it to build.
Also if you dont have a cube flight controller connected you should leave the build target as appears on the page so it builds for SITL.
image