Author Topic: Remote compiling and debugging  (Read 6251 times)

Offline ystoffman

  • Single posting newcomer
  • *
  • Posts: 3
Remote compiling and debugging
« on: November 18, 2017, 07:43:46 pm »
Hi,

I would like to use Code::Blocks from Windows to compile and debug an application on a remote Linux server (Ubuntu/AWS linux) all I could find is an old link (~10 years old) regarding UniWin. I that the acceptable method?  or is there a new and better way now days?

Thanks,
Yoni.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Remote compiling and debugging
« Reply #1 on: November 18, 2017, 07:49:11 pm »
Debugging should be no problem with gdb. Simply set the remote debugging settings in Project->Properties

Compiling is a other thing. You do NOT want to cross compile, but to remote compile?

Offline ystoffman

  • Single posting newcomer
  • *
  • Posts: 3
Re: Remote compiling and debugging
« Reply #2 on: November 18, 2017, 09:14:59 pm »
Yes, I would like to remote compile. That the actual compilation will take place on the server. Cross compilation is not a viable option at this point. 



Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Remote compiling and debugging
« Reply #3 on: November 18, 2017, 10:44:56 pm »
For remote building i am afraid that there is no easy way to go. There are a lot problems to solve:
* code sync between remote and local machine
* Building on remote machine
* This all over some secure connection, probably ssh

one way would be:
http://wiki.codeblocks.org/index.php?title=Using_Xming_for_remote_compilation
but this seems to be incomplete...