eclipse question

hi. all
I’m using eclipse 1.2.0 and I 'm developing a multi-platform application. I
made a project on eclipse for qnx and add extra source files. then the
eclipse generated extra source path in common.mk file.
but the problem is extra source path is not relative path but absolute path.
so I tried to modify the path to relative path. but the eclipse seemed to
don’t recognized the relative path.

so my question is how I can use relative path as extra source path or extra
include path.

thanks.

so my question is how I can use relative path as extra source path or extra
include path.

Try doing it like this…

EXTRA_SRCVPATH+=$(PROJECT_ROOT)/extrasrc
EXTRA_SRCVPATH+=$(PROJECT_ROOT)/…/otherproject/src

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Hello,
is it also possible to add an extra single source file to a project? I did
not find a way to do this in eclipse.
Werner

“Chris McKillop” <cdm@qnx.com> schrieb im Newsbeitrag
news:cfm4b9$a6m$4@inn.qnx.com

so my question is how I can use relative path as extra source path or
extra
include path.


Try doing it like this…

EXTRA_SRCVPATH+=$(PROJECT_ROOT)/extrasrc
EXTRA_SRCVPATH+=$(PROJECT_ROOT)/…/otherproject/src

chris

\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Hi Werner…

Go to ‘File → import’, select ‘file system’ browse to where you have
the source file, select it, and you are done. If this does not work the
first time, try again.

Also, you may want to read the ‘help’ on Eclipse. Be aware that you can
only have one main() program per project (I think).


Regards…

Miguel.

Werner Benz wrote:

Hello,
is it also possible to add an extra single source file to a project? I did
not find a way to do this in eclipse.
Werner

Hello Miguel,
thank you for your hints, but what I meant was some thing different: I want
to include an externly common used source file to the project, that means
that the source file remains at its place and no local copy should be done.
Its like include extra source path into the project, but should be only a
single file. Is this possible, I did not find this in the help content of
eclipse.
Regards,
Werner

“Miguel Simon” <simon@ou.edu> schrieb im Newsbeitrag
news:cfr2ak$1dv$1@inn.qnx.com

Hi Werner…

Go to ‘File → import’, select ‘file system’ browse to where you have
the source file, select it, and you are done. If this does not work the
first time, try again.

Also, you may want to read the ‘help’ on Eclipse. Be aware that you can
only have one main() program per project (I think).


Regards…

Miguel.

Werner Benz wrote:
Hello,
is it also possible to add an extra single source file to a project? I
did
not find a way to do this in eclipse.
Werner

Hi Werner…

I see what you mean. You could do several things. The easiest one to
try would be to open the common.mk (i.e. double click on it), and add a
line with the proper link:

EXTRA_INCVPATH+=/home/mydir/mydev/common/include

or

EXTRA_SRCVPATH+=/home/mydir/mydev/common/source

I am not sure if it will work, but you can try. If you mess around with
the different settings you may actually do this the clean way. For example:

  1. right click on the project,
  2. select properties
  3. select the ‘compile’ tag
  4. in the ‘category’ drop down menu, select either ‘external source’
    or ‘external include’
  5. select ‘disk’
  6. navigate to the proper place
  7. do likewise with libraries, links, etc…

This should work (and do the same as directly modifying the common.mk
file). Alternatively, if you commit to use the Momentics IDE, you may
want to bring the external development within the IDE framework, and go
from there. You may want to create libraries, etc.

Regards…

Miguel.



Werner Benz wrote:

Hello Miguel,
thank you for your hints, but what I meant was some thing different: I want
to include an externly common used source file to the project, that means
that the source file remains at its place and no local copy should be done.
Its like include extra source path into the project, but should be only a
single file. Is this possible, I did not find this in the help content of
eclipse.
Regards,
Werner