Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Can the same Eclipse project be used on both Linux and Windows?
Can the same Eclipse project be used on both Linux and Windows? [message #193519] Tue, 19 June 2007 04:12 Go to next message
Eclipse UserFriend
Originally posted by: objectivedynamics.homail.com

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
Re: Can the same Eclipse project be used on both Linux and Windows? [message #193841 is a reply to message #193519] Sat, 23 June 2007 11:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipsenews.richardmiskin.plus.com

I've got projects that build on both Windows and Linux so this is possible.

Are you sure you're copying everything that's needed to the Linux machine?
I'd clean the project, copy the entire project folder to your Linux box and
then import that.

Cheers,
Richard


"MikeB" <objectivedynamics@homail.com> wrote in message
news:f5835a$u2h$1@build.eclipse.org...
> 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
>
>
Re: Can the same Eclipse project be used on both Linux and Windows? [message #193989 is a reply to message #193841] Tue, 26 June 2007 01:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: objectivedynamics.homail.com

"Richard Miskin" <eclipsenews@richardmiskin.plus.com> wrote in message
news:f5jft9$kng$1@build.eclipse.org...
> I've got projects that build on both Windows and Linux so this is
> possible.
>

Richard,

thanks for the reply. I can get 'projects' to work on both platforms, it was
just their containing workspace that I was struggling with. I'm certain that
I was doing exactly what you suggested but Eclipse on the Linux machine
always complained that the workspace was in use when I tried to open it.

Replies I've had on the Subclipse mailing list suggested that Eclipse
*workspaces* don't cross the platforms well. In fact, replies there
recommended that I don't put the workspace under version control at all -
just the projects. Then, when I want to perform a checkout on one of my
platforms, I create a new directory to hold the workspace and from the
new -> project dialog , I create each project from the version control
system - Subversion in this case.

This procedure works on both platforms. The real pain in the neck of doing
it this way is that I lose any settings I had under Window->preferences and
they have to be re-entered.

Ah, well. It's my client's decision to go with Eclipse so they'll have to
live with it. I've already spent far too much of their money trying to find
an 'intuitive' way of working with it.

I guess nothing's perfect. Especially if it's free.
;o)

Rgds,
MikeB
Re: Can the same Eclipse project be used on both Linux and Windows? [message #194567 is a reply to message #193989] Fri, 29 June 2007 23:45 Go to previous message
Eclipse UserFriend
Hi Mike,

You can export the preferences in File->Export... and in selecting
General/preferences and imported in Linux.

I use that to migrate between windows, linux and mac OS X.

Drix

MikeB wrote:
> "Richard Miskin" <eclipsenews@richardmiskin.plus.com> wrote in message
> news:f5jft9$kng$1@build.eclipse.org...
>> I've got projects that build on both Windows and Linux so this is
>> possible.
>>
>
> Richard,
>
> thanks for the reply. I can get 'projects' to work on both platforms, it was
> just their containing workspace that I was struggling with. I'm certain that
> I was doing exactly what you suggested but Eclipse on the Linux machine
> always complained that the workspace was in use when I tried to open it.
>
> Replies I've had on the Subclipse mailing list suggested that Eclipse
> *workspaces* don't cross the platforms well. In fact, replies there
> recommended that I don't put the workspace under version control at all -
> just the projects. Then, when I want to perform a checkout on one of my
> platforms, I create a new directory to hold the workspace and from the
> new -> project dialog , I create each project from the version control
> system - Subversion in this case.
>
> This procedure works on both platforms. The real pain in the neck of doing
> it this way is that I lose any settings I had under Window->preferences and
> they have to be re-entered.
>
> Ah, well. It's my client's decision to go with Eclipse so they'll have to
> live with it. I've already spent far too much of their money trying to find
> an 'intuitive' way of working with it.
>
> I guess nothing's perfect. Especially if it's free.
> ;o)
>
> Rgds,
> MikeB
>
>
Previous Topic:What JRE is needed for Europa?
Next Topic:cdt4/RC1: selected text cannot bemaped to symbol name
Goto Forum:
  


Current Time: Tue Jul 22 22:13:39 EDT 2025

Powered by FUDForum. Page generated in 0.06194 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top