<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sigizmund.com &#187; eclipse</title>
	<atom:link href="http://sigizmund.com/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://sigizmund.com</link>
	<description>Geeky fairytales</description>
	<lastBuildDate>Wed, 29 Feb 2012 10:51:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Developing using Eclipse CDT, remote Linux server and rsync</title>
		<link>http://sigizmund.com/developing-using-eclipse-cdt-remote-linux-server-and-rsync/</link>
		<comments>http://sigizmund.com/developing-using-eclipse-cdt-remote-linux-server-and-rsync/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:30:00 +0000</pubDate>
		<dc:creator>sigizmund</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[geek]]></category>

		<guid isPermaLink="false">http://sigizmund.wordpress.com/2010/01/27/developing-using-eclipse-cdt-remote-linux-server-and-rsync</guid>
		<description><![CDATA[<p>&#160;</p> <p style="margin-top:0;">For quite a while I used to have a huge pain in my arse &#8212; namely, programming in C++&#160;for Linux&#160;on my&#160;Mac.</p> <p>I think I said this before, but I like IDEs &#8212; especially, I like Eclipse: it saves my time and allows me to develop stuff much faster and more efficiently, it is [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p style="margin-top:0;">For quite a while I used to have a huge pain in my arse &mdash; namely, programming in C++&nbsp;<em>for Linux</em>&nbsp;on my&nbsp;<em>Mac</em>.</p>
<p>I think I said this before, but I like IDEs &mdash; especially, I like Eclipse: it saves my time and allows me to develop stuff much faster and more efficiently, it is also great when you&rsquo;re learning some new code (and if you have a very large project at hands, that means pretty much all the time).</p>
<p>The problem was, I should still build the project on Linux. That means I was doomed to put all the sources on the network drive, which was accessible both from my Mac and from Linux server, and build it all there. Not convenient and slow. Very slow, in fact &mdash; builds were taking ages and ages. Other guys were using stuff like vim and emacs, and I didn&rsquo;t find it useful at all: these tools are old, and give you next to none help when it comes to writing the code. So I kept struggling with using Eclipse in this hostile environment, until I come out with the idea, which is best of all described by these few lines of&nbsp;<code style="font-size:12px;font-family:LuxiMono, Bitstream Vera Sans Mono, Monaco, Courier New, monospace;color:#1c360c;margin-top:0;">Makefile</code>:</p>
<pre style="font-size:12px;font-family:LuxiMono, Bitstream Vera Sans Mono, Monaco, Courier New, monospace;background-color:#f0f0f0;border-color:#cccbba;border-style:solid;border-width:1px;padding:10px 10px 10px 20px;"><code style="font-size:12px;font-family:LuxiMono, Bitstream Vera Sans Mono, Monaco, Courier New, monospace;color:#1c360c;margin-top:0;">build:
       rsync -rvz . my.dev.server:/path/to/project
       ssh my.dev.server 'cd /path/to/project &amp;&amp; build'

test: build
       ssh my.dev.server 'cd /path/to/project &amp;&amp; make test' </code></pre>
<p>Now, when I finish editing the files (or want to check something) I simply do on my&nbsp;<em>local</em>&nbsp;machine:</p>
<pre style="font-size:12px;font-family:LuxiMono, Bitstream Vera Sans Mono, Monaco, Courier New, monospace;background-color:#f0f0f0;border-color:#cccbba;border-style:solid;border-width:1px;padding:10px 10px 10px 20px;"> <code style="font-size:12px;font-family:LuxiMono, Bitstream Vera Sans Mono, Monaco, Courier New, monospace;color:#1c360c;margin-top:0;">kirillov:/local/source/dir $ make test </code></pre>
<p>And voila &mdash; all sources are synchronised, built and tested! An extra benefit of this approach is that I have no object files, .d files, executable files and other useless stuff in my dev-folder (and, consequently, visible in my project). An only downside is, if your source tree is&nbsp;<em>very</em>&nbsp;large,&nbsp;<code style="font-size:12px;font-family:LuxiMono, Bitstream Vera Sans Mono, Monaco, Courier New, monospace;color:#1c360c;">rsync</code>&nbsp;can take a good deal of time (that is why I&rsquo;m syncing only my subproject in my real&nbsp;<code style="font-size:12px;font-family:LuxiMono, Bitstream Vera Sans Mono, Monaco, Courier New, monospace;color:#1c360c;">Makefile</code>).</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sigizmund.com/developing-using-eclipse-cdt-remote-linux-server-and-rsync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

