extra dirs & source w/IDE Photon Ap

How can one add additional source files in separate directoriess
in the IDE into an existing Photon application project?
The reason for separate directories is to avoid too many files
in one directory, and to organise files logically.

The same thing can presumably be done as a library project,
but assuming you don’t want to do that, waht would be way to do this?

The main application is a Photon application, and the functions
in the extra source files will be called from the Photon app.
Thanks in advance

I think if you create subfolder, you just can add its sources using page
Extra Sources Paths in the project properties dialog. Of course I’m talking
about QDE project. If you are using old project not compatible with QDE
structure, you have to edit your make files manually…

<acellarius@yahoo.com> wrote in message news:1103_1052399026@192.168.0.5

How can one add additional source files in separate directoriess
in the IDE into an existing Photon application project?
The reason for separate directories is to avoid too many files
in one directory, and to organise files logically.

The same thing can presumably be done as a library project,
but assuming you don’t want to do that, waht would be way to do this?

The main application is a Photon application, and the functions
in the extra source files will be called from the Photon app.
Thanks in advance

That’s what I tried but it’s refusing to go in there & call make.
Looks like you have to go in and manually change some of the
Makefiles or .mk’s
The project was created with the 6.2.1 PE IDE.
Do you have a step by step procedure for me?

Alex Chapiro wrote:

I think if you create subfolder, you just can add its sources using page
Extra Sources Paths in the project properties dialog. Of course I’m talking
about QDE project. If you are using old project not compatible with QDE
structure, you have to edit your make files manually…

acellarius@yahoo.com> > wrote in message news:1103_1052399026@192.168.0.5
How can one add additional source files in separate directoriess
in the IDE into an existing Photon application project?
The reason for separate directories is to avoid too many files
in one directory, and to organise files logically.

The same thing can presumably be done as a library project,
but assuming you don’t want to do that, waht would be way to do this?

The main application is a Photon application, and the functions
in the extra source files will be called from the Photon app.
Thanks in advance

Yes, you are right: for PHab project it doesn’t work. And I know why. But I
cannot say you right now is it a bug and how to work around it. I’ll try to
answer you later today.
For general QNX project it works perfect.

Alex.


<acellarius@yahoo.com> wrote in message news:3EBAC1F5.A26D8105@yahoo.com

That’s what I tried but it’s refusing to go in there & call make.
Looks like you have to go in and manually change some of the
Makefiles or .mk’s
The project was created with the 6.2.1 PE IDE.
Do you have a step by step procedure for me?

Alex Chapiro wrote:

I think if you create subfolder, you just can add its sources using page
Extra Sources Paths in the project properties dialog. Of course I’m
talking
about QDE project. If you are using old project not compatible with QDE
structure, you have to edit your make files manually…

acellarius@yahoo.com> > wrote in message
news:1103_1052399026@192.168.0.5
How can one add additional source files in separate directoriess
in the IDE into an existing Photon application project?
The reason for separate directories is to avoid too many files
in one directory, and to organise files logically.

The same thing can presumably be done as a library project,
but assuming you don’t want to do that, waht would be way to do this?

The main application is a Photon application, and the functions
in the extra source files will be called from the Photon app.
Thanks in advance

Yes, it is a bug, it has been fixed but this fixing has not been included to
6.2.1A. To work around it now you can to replace EXTRA_SRCVPATH line with:

override EXTRA_SRCVPATH+=$(PROJECT_ROOT)/src $(PROJECT_ROOT_xxxxxxx)/yyyyyyy




Alex


<acellarius@yahoo.com> wrote in message news:3EBAC1F5.A26D8105@yahoo.com

That’s what I tried but it’s refusing to go in there & call make.
Looks like you have to go in and manually change some of the
Makefiles or .mk’s
The project was created with the 6.2.1 PE IDE.
Do you have a step by step procedure for me?

Alex Chapiro wrote:

I think if you create subfolder, you just can add its sources using page
Extra Sources Paths in the project properties dialog. Of course I’m
talking
about QDE project. If you are using old project not compatible with QDE
structure, you have to edit your make files manually…

acellarius@yahoo.com> > wrote in message
news:1103_1052399026@192.168.0.5
How can one add additional source files in separate directoriess
in the IDE into an existing Photon application project?
The reason for separate directories is to avoid too many files
in one directory, and to organise files logically.

The same thing can presumably be done as a library project,
but assuming you don’t want to do that, waht would be way to do this?

The main application is a Photon application, and the functions
in the extra source files will be called from the Photon app.
Thanks in advance

Must I add this line (I suppose in common.mk, right?) after the
#QNX internal end
line?
If I don’t, I suppose the change could be overwritten by some of the
tools at a later stage?

The line currently looks like this:
EXTRA_SRCVPATH := $(EXTRA_SRCVPATH_$(CPUDIR)$(DEBUG_SUFFIX))
$(EXTRA_SRCVPATH$(DEBUG_SUFFIX))
$(EXTRA_SRCVPATH_$(CPUDIR)) $(EXTRA_SRCVPATH)

You say I should replace it with:
EXTRA_SRCVPATH+=$(PROJECT_ROOT)/src $(PROJECT_ROOT_xxxxxxx)/yyyyyyy

What should xxx and yyy be?

Alex Chapiro wrote:

Yes, it is a bug, it has been fixed but this fixing has not been included to
6.2.1A. To work around it now you can to replace EXTRA_SRCVPATH line with:

override EXTRA_SRCVPATH+=$(PROJECT_ROOT)/src $(PROJECT_ROOT_xxxxxxx)/yyyyyyy

Alex

acellarius@yahoo.com> > wrote in message news:> 3EBAC1F5.A26D8105@yahoo.com> …
That’s what I tried but it’s refusing to go in there & call make.
Looks like you have to go in and manually change some of the
Makefiles or .mk’s
The project was created with the 6.2.1 PE IDE.
Do you have a step by step procedure for me?

Alex Chapiro wrote:

I think if you create subfolder, you just can add its sources using page
Extra Sources Paths in the project properties dialog. Of course I’m
talking
about QDE project. If you are using old project not compatible with QDE
structure, you have to edit your make files manually…

acellarius@yahoo.com> > wrote in message
news:1103_1052399026@192.168.0.5
How can one add additional source files in separate directoriess
in the IDE into an existing Photon application project?
The reason for separate directories is to avoid too many files
in one directory, and to organise files logically.

The same thing can presumably be done as a library project,
but assuming you don’t want to do that, waht would be way to do this?

The main application is a Photon application, and the functions
in the extra source files will be called from the Photon app.
Thanks in advance

have another more simple solution for you. You just can go to
$(QNX_TARGET)\qnx6\usr\include\mk and edit qphabtarg.mk. Replace line
EXTRA_SRCVPATH = $(PROJECT_ROOT)/src
with
EXTRA_SRCVPATH := $(PROJECT_ROOT)/src

It fixes the problem forever.
After that follow the scenario I wrote in the beginning of thread (adding
extra src paths to project).

If you still don’t want to change system files, you should add extra src
directories in a regular way and then modify added to common.mk file new
line

EXTRA_SRCVPATH :=dir1 dir2 dir3

to

override EXTRA_SRCVPATH := dir1 dir2 dir3

where dir1, …, dirN - directories where your project sources are located.

Alex



<acellarius@yahoo.com> wrote in message news:3EBBBAB8.2DE86351@yahoo.com

Must I add this line (I suppose in common.mk, right?) after the
#QNX internal end
line?
If I don’t, I suppose the change could be overwritten by some of the
tools at a later stage?

The line currently looks like this:
EXTRA_SRCVPATH := $(EXTRA_SRCVPATH_$(CPUDIR)$(DEBUG_SUFFIX))
$(EXTRA_SRCVPATH$(DEBUG_SUFFIX))
$(EXTRA_SRCVPATH_$(CPUDIR)) $(EXTRA_SRCVPATH)

You say I should replace it with:
EXTRA_SRCVPATH+=$(PROJECT_ROOT)/src $(PROJECT_ROOT_xxxxxxx)/yyyyyyy

What should xxx and yyy be?

Alex Chapiro wrote:

Yes, it is a bug, it has been fixed but this fixing has not been
included to
6.2.1A. To work around it now you can to replace EXTRA_SRCVPATH line
with:

override EXTRA_SRCVPATH+=$(PROJECT_ROOT)/src
$(PROJECT_ROOT_xxxxxxx)/yyyyyyy

Alex

acellarius@yahoo.com> > wrote in message
news:> 3EBAC1F5.A26D8105@yahoo.com> …
That’s what I tried but it’s refusing to go in there & call make.
Looks like you have to go in and manually change some of the
Makefiles or .mk’s
The project was created with the 6.2.1 PE IDE.
Do you have a step by step procedure for me?

Alex Chapiro wrote:

I think if you create subfolder, you just can add its sources using
page
Extra Sources Paths in the project properties dialog. Of course I’m
talking
about QDE project. If you are using old project not compatible with
QDE
structure, you have to edit your make files manually…

acellarius@yahoo.com> > wrote in message
news:1103_1052399026@192.168.0.5
How can one add additional source files in separate directoriess
in the IDE into an existing Photon application project?
The reason for separate directories is to avoid too many files
in one directory, and to organise files logically.

The same thing can presumably be done as a library project,
but assuming you don’t want to do that, waht would be way to do
this?

The main application is a Photon application, and the functions
in the extra source files will be called from the Photon app.
Thanks in advance

Alex Chapiro wrote:

have another more simple solution for you. You just can go to
$(QNX_TARGET)\qnx6\usr\include\mk and edit qphabtarg.mk. Replace line
EXTRA_SRCVPATH = $(PROJECT_ROOT)/src
with
EXTRA_SRCVPATH := $(PROJECT_ROOT)/src

If I do this, the existing source file in the src directory doesn’t get
compiled.

Sorry, my mistake. Works fine if you use “+=” instead of “:=”.
<acellarius@yahoo.com> wrote in message news:3EBBF396.9D40FA35@yahoo.com

Alex Chapiro wrote:

have another more simple solution for you. You just can go to
$(QNX_TARGET)\qnx6\usr\include\mk and edit qphabtarg.mk. Replace line
EXTRA_SRCVPATH = $(PROJECT_ROOT)/src
with
EXTRA_SRCVPATH := $(PROJECT_ROOT)/src


If I do this, the existing source file in the src directory doesn’t get
compiled.