News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

C::B & Uniwin

Started by Rigel, November 21, 2006, 11:09:24 AM

Previous topic - Next topic

Rigel

#15
Here is some kind tutorial to make it work on Windows 5.0 and later:

You will need PuTTY package. You can get it here.

Compiler batch files
@echo off
set SELF=%~n0
set LOGIN=%1
shift
set REMOTE=%1
shift
set SRCDIR=%1
shift

:next
if "%1" == "" goto end
        set PARAMS=%PARAMS% %1
        shift
        goto next
:end

set PARAMS=%PARAMS:\=/%

c:\bin\putty\plink.exe -C -batch -l %LOGIN% %REMOTE% cd %SRCDIR%; %SELF% %PARAMS%


At C::B you need to make copy of "GNU GCC Compiler" and name it "Remote GNU GCC Compiler".
Go to Settings>Compiler and Debugger>Remote GNU GCC Compiler>Other>Advanced and add
$(login) $(remote) $(srcdir)

to each profile after first variable.
At C::B in Build options you need to set custom variables login, remote, srcdir for targets.

MortenMacFly

#16
Quote from: Rigel on November 22, 2006, 07:35:39 AM
Here is some kind tutorial to make it work on Windows 5.0 and later:
Very nice! Thanks! :D ...and luckily it worked. ;-)
I'll now try to do the same and then place an article into the WiKi.
With regards, Morten.

Edit: There it goes: What version of Uniwin are you using? It seems there are two - the (outdated?!) sourceforge.net and a commercial one...?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Rigel

I was using sf.net's version of uniwin.

mandrav

#18
I have updated C::B to work with compilers that expect forward slashes as path separators so it is now much easier to setup Uniwin with C::B.

Full documentation can be found here. Enjoy :).
Be patient!
This bug will be fixed soon...

Rigel


MortenMacFly

Quote from: mandrav on December 06, 2006, 01:57:26 PM
I have updated C::B to work with compilers that expect forward slashes as path separators so it is now much easier to setup Uniwin with C::B.
That is sooooo great! :D I struggled around with the setup but actually were facing exactly this problem. I was wondering anyway how somebody already could use uniwin...?! Nice stuff... will try immediately because this could be really of help at work...
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mandrav

Another update, regarding debugging through Uniwin.

The good news is that it works :).
The bad news is that a small patch is needed for Uniwin's proxy gdb.exe.
Attached to this message you can find the patched gdb.exe which you should copy in Uniwin's folder, replacing the existing one. And you also need C::B revision 3350 and up ;).

[attachment deleted by admin]
Be patient!
This bug will be fixed soon...

wbest116

#22
Thanks for update about forward slashes, but I have confused yet because of mismatch of correted file.

For example...

If I modify a file "test.cpp" and save modified file in C::B then "test.cpp" is removed in linux because I set Uniwin's option "Operations on deleting" to "always deleted".

but "not delete" option gives occation to remain "test.cpp.backup" in linux and "test.cpp" does not exist.

Here is the Uniwin's log:
  File Name Changed:C:/work/test.cpp to: C:/work/test.cpp.backup
    => mv /home/test.cpp /home/test.cpp.backup
  File Name Changed:C:/work/test.cpp.cbTemp to: C:/work/test.cpp
    => mv /home/test.cpp.cbTemp /home/test.cpp
  local: C:/work/test.cpp
            ==>  remote:  /home/test.cpp
  File Removed: C:/work/test.cpp.backup
            ==> rm -fr /home/test.cpp.backup

Here is the Linux's .bash_history:
  mv "/home/test.cpp" "/home/test.cpp.backup"
  mv "/home/test.cpp.cbTemp" "/home/test.cpp"

More confused is mismatch result with two logs.

It is not for use gdb.exe just for modify a file which does not pass by compile course.

Thanks.

tfoell

I will use uniwin for a new project.
CodeBlocks run under winxp and i will debug/compile on a ubuntu machine.
1. Uniwin is running ! Test button for ssh and sftp is working.
2. But if i change a file on the winxp via CodeBlocks this file is renamed on the remote ubuntu from main.c to main.c.backup ???????
If i use Visual Studion instead of CodeBlocks it seem to work !

But i will use CodeBlocks !
Any Idea ?

3. Is there another way to do remote debugging ?

tobias

seanhoo

Quote from: tfoell on March 17, 2008, 10:36:20 AM
I will use uniwin for a new project.
CodeBlocks run under winxp and i will debug/compile on a ubuntu machine.
1. Uniwin is running ! Test button for ssh and sftp is working.
2. But if i change a file on the winxp via CodeBlocks this file is renamed on the remote ubuntu from main.c to main.c.backup ???????
If i use Visual Studion instead of CodeBlocks it seem to work !

But i will use CodeBlocks !
Any Idea ?

3. Is there another way to do remote debugging ?


tobias



no answer YET?

ZooLoo

Hi

I'm using private key to logon the remote host (putty ppk file).
The question is what to do with all the stuff in this case?

Uniwin doesn't have settings to setup the private key file instead of "login/password"
Here is always place for Ы.

Rigel

Quote from: ZooLoo on April 19, 2011, 09:19:54 AM
Hi

I'm using private key to logon the remote host (putty ppk file).
The question is what to do with all the stuff in this case?

Uniwin doesn't have settings to setup the private key file instead of "login/password"
Just load *.ppk into your pagent

ZooLoo

Thaks Rigel I'll try this...
Here is always place for Ы.