Maybe belongs in an Eclipse forum on another site but the Momentics version we are using is from 6.3.2 days which makes the version of Eclipse about 10 years old now so not sure how much help I’d get.
I’ve been asked to turn our project into an Eclipse one for some new developers who are used to Eclipse/Visual Studio (I prefer building directly on QNX).
Our company SVN repository is setup as follows:
OurProduct | ------------------------------------ | | | Windows Common QNX
with Common being C++ code shared between QNX/Windows.
In the top of the Windows folder lies the Visual Studio .sln file. In the top of QNX lies my master Makefile (with relative paths to access code in Common). I want to put the Eclipse .project/.cdtproject files in that same top QNX folder so its setup like the Visual studio .sln.
So I created a Workspace called OurProduct. I used svn to check out the Common and QNX folders (just as developers would expect to do).
I then started Eclipse and told it to create a new standard Make C project. First thing I noticed is it put the .project/.cdtproject files in the parent OurProduct folder. That’s not where I want them since they absolutely don’t belong there. I deleted the project.
I then went into the QNX folder and created the new standard Make C project there. Now the files are in the right place. But when I do File-Import Filesystem inside Eclipse it can’t import the Common folder. Oh, I can copy the contents of Common into QNX and have a new Common folder there and Eclipse is happy with that. But it won’t work for checking files back into svn because developers would have to manually copy changed files back to Common (which is error prone and sucks)
Googling around I saw there is supposed to be a virtual folder option. But my version doesn’t seem to have that so I can’t do that. I do have a link option to files in an existing system. I might attempt to use that but I fear the link is a hard link and not virtual so if on my machine it’s in C:\Tim\OurProduct will this link be hard coded to C:\Tim\OurProduct so that it’s useless on another developers machine or will it be pathed properly?
I can’t believe Eclipse requires you to have every file physically reside under the directory your .project/cdtproject files are in. Please tell me that’s not true.