Relative paths with Momentics...

Hi,

Here is a message that I posted in the qnxrtp.newuser newsgroup a fortnight
ago.
On Judy’s advices, I try to repost it in this newgroup ! :wink:

Thanks for your help,
Regards,
David.

\

Hi everyone,

I’m working with the QNX Momentics R1.0 Build 0.137 on a XP platform.
In the “make properties editor (common.mk)” >> “extra [sources, include or
library] directory” >> “Add from disk” treeview list, it seems impossible to
define an external project element with a relative path. Could you tell me
if it will be possible in the next IDE release ?

Moreover, I was wondering how to add a new relative variable (like
$PROJECT_ROOT) in the IDE graphical environnement ? Does anyone know how to
do ?

Thanks,
Sincerely,
David.

“David Raimond” <david.raimond@lotsys.com> wrote in message
news:aho5lu$okm$1@inn.qnx.com

| Hi everyone,
|
| I’m working with the QNX Momentics R1.0 Build 0.137 on a XP platform.
| In the “make properties editor (common.mk)” >> “extra [sources, include or
| library] directory” >> “Add from disk” treeview list, it seems impossible
to
| define an external project element with a relative path. Could you tell me
| if it will be possible in the next IDE release ?

Hi David,
The only way I found to do this is to edit the common.mk source. As you
found out … the UI always prepends the default directory or the directory
visible in the filebrowser.

Use a variable like PROJECT_ROOT as the base to which your directories are
relative.
EXTRA_INCVPATH+=${PROJECT_ROOT}/includes


I’ve added a PR for this issue, as I agree that you should be able to set
the path as relative within the IDE.

|
| Moreover, I was wondering how to add a new relative variable (like
| $PROJECT_ROOT) in the IDE graphical environnement ? Does anyone know how
to
| do ?
|

I am not sure what you mean by this. ${PROJECT_ROOT} is a variable
understood by the QNX makefiles. It is not specific to the IDE.

-Judy

| Thanks,
| Sincerely,
| David.
|
|
|