User forums > Using Code::Blocks

Compling on a remote machine

(1/3) > >>

erezz:
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:


--- Code: ---ssh some_machine "cd /home/erezz/some_dir && make -j8"

--- End code ---

and I got this error:

--- Code: --- 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

--- End code ---

What am I doing wrong?

Thanks,
Erez

erezz:
Of course, my home dir is mounted via nfs on the remote build machine.

oBFusCATed:
I don't think C::B can execute sh commands directly. Probably you can try to make a script and then execute the script instead of your ssh && make command.

erezz:
What is a script? A BASH script? Something else?

oBFusCATed:
Yes, a shell script. Bash, pure old sh script, whatever.

Navigation

[0] Message Index

[#] Next page

Go to full version