Run PX4 and Gazebo on different platform

I want to run PX4 on Windows and Gazebo on Ubuntu(Virtual machine).
I have tried the following things:

  1. Launch Gazebo first with the empty world and Quadcopter
    • Then in Windows, launched the make px4_sitl none
    • It threw the following error:
      *[13/18] Building CXX object src/modules/px4_simulink_app/C…les/modules__px4_simulink_app.dir/MW_PX4_TaskControl.cpp.o ninja: build stopped: subcommand failed. make: *** [Makefile:233: px4_sitl] Error 1

Any help in this regard…