Compiling px4 targets on linux

I am trying to compile on Linux for px4-v2 (or px4-v4) target with no success
Trying waf or traditional make gives me the same type of error about the missing
This file is indeed not here . I have tried many combination of cleaning to not avail.

make px4-v4

cp: cannot stat ‘/home/apm/ardupilot/modules/PX4NuttX/nuttx/’: No such file or directory
/home/apm/ardupilot/modules/PX4Firmware/Makefile.make:184: recipe for target ‘/home/apm/ardupilot/modules/PX4Firmware/Archives/px4fmu-v4.export’ failed
make[1]: *** [/home/apm/ardupilot/modules/PX4Firmware/Archives/px4fmu-v4.export] Error 1
make[1]: Leaving directory ‘/home/apm/ardupilot/modules/PX4Firmware’
…/mk/ recipe for target ‘/home/apm/ardupilot/modules/PX4Firmware/Archives/px4fmu-v4.export’ failed
make: *** [/home/apm/ardupilot/modules/PX4Firmware/Archives/px4fmu-v4.export] Error 2


Configuring NuttX for px4fmu-v2
Exporting NuttX for px4fmu-v2
CMakeFiles/nuttx_export_px4fmu-v2.dir/build.make:74: recipe for target ‘px4fmu-v2.export’ failed
CMakeFiles/Makefile2:644: recipe for target ‘CMakeFiles/nuttx_export_px4fmu-v2.dir/all’ failed
CMakeFiles/Makefile2:683: recipe for target ‘CMakeFiles/prebuild_targets.dir/rule’ failed
Makefile:442: recipe for target ‘prebuild_targets’ failed

/bin/cp: cannot stat â/home/apm/ardupilot/build/px4-v2/modules/PX4Firmware/px4fmu-v2/NuttX/nuttx/nuttx-export.zipâ: No such file or directory
make[3]: *** [px4fmu-v2.export] Error 1
make[2]: *** [CMakeFiles/nuttx_export_px4fmu-v2.dir/all] Error 2
make[1]: *** [CMakeFiles/prebuild_targets.dir/rule] Error 2
make: *** [prebuild_targets] Error 2

Waf: Leaving directory `/home/apm/ardupilot/build/px4-v2’
Build failed
-> task in ‘px4_prebuild_targets’ failed (exit status 2):
{task 139875662094800: cmake_build_task -> }
[’/opt/cmake-3.3.2/bin/cmake’, ‘–build’, ‘/home/apm/ardupilot/build/px4-v2/modules/PX4Firmware’, ‘–target’, ‘prebuild_targets’]

You are missing the zip package. Make sure you have all these packages in your distro:

ouch … thanks … it is much better now.
As I am using debian , some script did not work for me …
Thanks a lot