Hi,
I would like to compile my code on a remote machine, so I selected "Build options", selected "Make commands" tab and changed "Build project/target" to the following:
ssh some_machine "cd /home/erezz/some_dir && make -j8"
and I got this error:
Using makefile: Makefile
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
What am I doing wrong?
Thanks,
Erez
I moved it to a script and put the full path to the script in "Build project/target". I get the same error:
Using makefile: Makefile
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
It looks like it's looking for a Makefile. One more (probably important) thing - when I checked "This is a custom Makefile" in the project properties, I saw a warning that "the file must exist, no Makefile will be auto-generated". Do I need to create a Makefile and call my ssh command from it?
Thanks,
Erez
I probably did something wrong...
I created a Makefile and placed it in the path that I found in the project properties under "Execution directory". The Makefile contains a single line:
ssh some_remote_machine "cd some_dir && make -j8"
Now, I selected "Build options" for the project and set "Build project/target" for the project to "$makefile". I hit ctrl+f9 and got this:
-------------- Build: Debug in my_proj_name ---------------
Using makefile: Makefile
Nothing to be done (all items are up-to-date).
Now, "Build project/target", "Compile single file", "Clean project/target", "Ask if rebuild is needed" & "Silent build" for the project are set to "$makefile". I guess that this is what you meant when you wrote "change the "Make" commands in the projects "Build options" to just $makefile".
The "Make commands" for Debug & Release are empty.
the Makefile is executable.
When I hit ctrl+F9. I get this:
-------------- Build: Debug in my_proj_name ---------------
Using makefile: Makefile
/bin/sh: Makefile: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)