uniwin for remote compiling and debugging [message #172576] |
Tue, 11 July 2006 11:42  |
Eclipse User |
|
|
|
Hi,
I want to remotely compile and debug on a Linux mashine using eclipse cdt
under WindowsXP as host system. I found something called "Uniwin" via
another newsgroup post. This utility is quite interesting as it provides a
gnu toolchain that redirects all calls to gcc, gdb and the like via an ssh
session to a remote machine and routes all output back. This way CDT is
completely unaware everything happens remotely. Uniwin also synchronizes
the lokal project directory with directory on the remote build system.
The drawback is that there is something fishy about the origin of uniwin.
There is a shareware version for 39$. At the same time there's a
sourceforge project stating it is released under the GPL but doesn't offer
any source code. I havn't had any success in contacting the author.
May be somebody happens to know something about the matter.
As an alternative I tried to do this manually using plink. I could
successfully manage to get the remote compiling stuff running using
plink.exe from the putty home page.
For instance:
"putty -pw password login@host gcc"
can be used to invoke gcc remotely. But I cannot get the same running for
gdb. I managed to get it running to a point where gdb was started remotely
but CDT couldn't find any sources when hitting a breakpoint.
May be there is somebody who tried this before.
Any suggestions are welcome.
Regards,
Markus
|
|
|
|
Re: uniwin for remote compiling and debugging [message #185579 is a reply to message #172696] |
Wed, 21 February 2007 11:49  |
Eclipse User |
|
|
|
Originally posted by: spam-me.mattjor-googlemail.com
Markus Henschel wrote:
> Although I didn't got any further in the Uniwin issue I solved the
> problem with remote debugging. I had a hard time searching for the
> solution so I think it might be helpful to post my experience:
>
> Remote compiling:
> 1. Syncing the sources:
> This can easyly be done with a samba share exported from the build machine.
>
> 2. To remotely compile there where two solutions:
>
> a) execute make remotely:
> This would require to substitute the build command in the managed build
> settings with something like:
> plink -pw password user@host cd workspace/project/config; make
>
> Unfortunately the GUI for editing the build command wasn't designed for
> this kind of thing. It cut's the command and simply doesn't work.
> Manually editing the xml file did the job. In .cdtbuild:
> <builder arguments="-pw password user@host cd workspace/project/config;
> make" command="plink" ...
>
> But every time I renter the config dialog it was overwritten.
> b) execute make locally but gcc remotely:
> In the settings for the compiler and linker commands it is easily
> possible to substitute "gcc" with "plink -pw user@host cd
> workspace/project/config;gcc" and so on. Of course this requires a GNU
> make installed on the windows system.
>
> 3. Remote Debugging.
> This was the most tricky one. I didn't had any success to get gdb
> running through plink. Although it seemed to work with:
> plink -t -pw password user@host cd workspace/project/; gdm
> /config/executable there was always something wrong. Fortunatly CDT
> offers to work with gdbserver. The problem was to find a win32 version
> of gdb that was actually capable of doing that. The MinGW gdb didn't
> support TCP remote debugging. The newest cygwin gdb (6.5.5?) did but
> simply crashed when connecting to the build host. But going back to
> 6.3.5 worked.
>
> The only annoying thing is that there is no option to start gdbserver
> automatically every time I click on debug.
>
> May be this is of some help to somebody.
>
> Regards,
>
> Markus
>
Hello,
I have the same problem (almost).
I tried Uniwin, but it seems to only implement a remote gcc/g++ and I
need a remote Make as well.
I have then tried plink, which I can get working automatically for SSH
connections... but the server I am using only has telnet. When trying to
establish a telnet connection with plink it ignores my username and
password paramaters so will always prompt me for user/pass.
So anyone suggest a way to:
fix plink?
remote make with Uniwin?
Generally remote compile with CDT?
Kind regards,
Matt Jordan
|
|
|
Powered by
FUDForum. Page generated in 0.03421 seconds