[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] Off-topic: Question about Eclipse and working on both Linux and Windows

From: Michael Baker <mike_at_objectivedynamics.co.uk>
Date: 2007-06-19 11:31:41 CEST

Hi,

I've posted this question to eclipse.tools.cdt but I've also posted it here
because response here is so much quicker and very helpful.

I'm currently developing code for a system which must be portable across
both Windows and Linux.

I am looking for a way to set up my project such that I only have to
maintain a single set of source files but that I am able to build the
project on both Windows and Linux.

I can't get it to work with a single project (see original post at the
bottom of this message). I can get it to work with separate projects for
Windows and Linux as follows:

linux_project
    .cproject
    .project
windows_project
    .cproject
    .project
src
    file1.h
    file1.cpp

Now, in order to get the above to work, I needed to specify src as a linked
folder in the settings for each project. The problem with this is that when
I use SubClipse to import either project into Subversion, it doesn't import
file1.h and file1.cpp.

Is anyone else here doing cross platform development with Eclipse or can
anyone point me in the direction of any documentation which would show how
to do it ?

Regards and thanks for tolerating my newbie questions ;o)
MikeB
-------------------Original Post to eclipse.tools.cdt ----------------------
Subject: Can the same Eclipse project be used on both Linux and Windows?

I'm using Europa (3.2.100) and CDT 4.0.0 RC3 and I can't get it to work.

This is how I've been trying to do it:

On windows:
1/ Create a new Eclipse workspace
2/ Add a new project (Project1) to the workspace
3/ Add a single sourcefile (main.cpp) to the project
4/ Close Eclipse and copy .cproject, .project and main.cpp over to a linux
machine.

On Linux:
1/ Create a new workspace
2/ Import Project1 into the workspace

The project fails to build with the following error:
Errors running builder 'CDT Builder' on project 'Project1'.
Parent of resource: /blah/../Project1/Debug is marked as read-only

Can anyone confirm that what I'm trying to do isn't possible?

Rgds,
MikeB

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Tue Jun 19 11:32:08 2007

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.