Make: *** [px4_fmu-v2_default] Error 2 in windows10

Hello, everybody! When i tried “make px4_fmu-v2_default”,errors occurred! I have no idea what to do. It’s shown like this:

$ make px4_fmu-v2_default
CMakeFiles/git_nuttx_apps.dir/build.make:56: *** target pattern contains no `%'.  Stop.
make[2]: *** [CMakeFiles/git_nuttx_apps.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/git_nuttx.dir/build.make:56: *** target pattern contains no `%'.  Stop.
make[2]: *** [CMakeFiles/git_nuttx.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [px4_fmu-v2_default] Error 2

"build.make" has shown like this:
# CMAKE generated file: DO NOT EDIT!
# Generated by "MSYS Makefiles" Generator, CMake Version 3.4

# Delete rule output on recipe failure.

# Special targets provided by cmake.

# Disable implicit rules so canonical targets will work.

# Remove some rules from gmake that .SUFFIXES does not remove.

.SUFFIXES: .hpux_make_needs_suffix_list

# Suppress display of executed commands.

# A target that is always out of date.

.PHONY : cmake_force

# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh

# The CMake executable.
CMAKE_COMMAND = "/C/Program Files (x86)/CMake/bin/cmake.exe"

# The command to remove a file.
RM = "/C/Program Files (x86)/CMake/bin/cmake.exe" -E remove -f

# Escaping for special characters.

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /D/px4/workspace/Firmware

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /D/px4/workspace/Firmware/build/px4_fmu-v2_default

# Utility rule file for git_nuttx.

# Include the progress variables for this target.
include CMakeFiles/git_nuttx.dir/progress.make

_CMakeFiles/git_nuttx: git_init_D:px4_workspace_Firmware_platforms_nuttx_cmake____NuttX_nuttx.stamp (the line is No.56)

git_init_D:_px4_workspace_Firmware_platforms_nuttx_cmake____NuttX_nuttx.stamp: ../../.gitmodules
git_init_D:_px4_workspace_Firmware_platforms_nuttx_cmake____NuttX_nuttx.stamp: ../../platforms/nuttx/NuttX/nuttx/.git
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/D/px4/workspace/Firmware/build/px4_fmu-v2_default/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "git submodule platforms/nuttx/NuttX/nuttx"
	cd /D/px4/workspace/Firmware && Tools/ platforms/nuttx/NuttX/nuttx
	cd /D/px4/workspace/Firmware && "/c/Program Files (x86)/CMake/bin/cmake.exe" -E touch D:/px4/workspace/Firmware/build/px4_fmu-v2_default/git_init_D:_px4_workspace_Firmware_platforms_nuttx_cmake____NuttX_nuttx.stamp

git_nuttx: CMakeFiles/git_nuttx
git_nuttx: git_init_D:_px4_workspace_Firmware_platforms_nuttx_cmake____NuttX_nuttx.stamp
git_nuttx: CMakeFiles/git_nuttx.dir/build.make

.PHONY : git_nuttx

# Rule to build all files generated by this target.
CMakeFiles/git_nuttx.dir/build: git_nuttx

.PHONY : CMakeFiles/git_nuttx.dir/build

	$(CMAKE_COMMAND) -P CMakeFiles/git_nuttx.dir/cmake_clean.cmake
.PHONY : CMakeFiles/git_nuttx.dir/clean

	$(CMAKE_COMMAND) -E cmake_depends "MSYS Makefiles" /D/px4/workspace/Firmware /D/px4/workspace/Firmware /D/px4/workspace/Firmware/build/px4_fmu-v2_default /D/px4/workspace/Firmware/build/px4_fmu-v2_default /D/px4/workspace/Firmware/build/px4_fmu-v2_default/CMakeFiles/git_nuttx.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/git_nuttx.dir/depend

Appreciate every answer. Thanks!

This is very hard to read.
Can you please edit your post and put ``` around code, thanks.

I’ve edited this post and put “&&&” around the code.

Thanks again!

No, not &&&. ``` is what I meant. Anyway, I’m just going to edit your post :smile:

@MaEtUgR do you see anything here?

:smile:Thank you for your help!

Which instructions were you following by the way?

I executed three instructions in the following order:

  1. git clone git://
  2. git submodule update --init --recursive
  3. make px4_fmu-v2_default

And you are using cygwin as described here?

Thank you ! I !
I’ve just made a mistake.I always used the Windows Msys Toolchain without following official instructions.
Now,it’s working. Thank you for your advice.:smiley:


Thanks for helping out @JulianOes :thumbsup:

1 Like