Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Building QNX C++ Project with linked resources: (4 Items)
   
Building QNX C++ Project with linked resources  
Hello,

We are using QNX 6.6. Currently our projects are built as QNX C++ projects for multiple platform. Due to some internal 
needs this single large project must be broken into a smaller set of sub-projects.

In the example shown below Project1 may pull in func2.cpp, func22.cpp and some files from /cmn. I used "Linked Resources
" and managed to pick the specific files/folders of interest for a given project. This scheme does not build all the 
sources files in the case of QNX C++ project. On creating a "C++ Project" linked resources scheme works fine. Appreciate
 if someone can help on solving this for a "QNX C++ project". I am guessing "Linked Resouces" updates .project/.cproject
 but does nothing to makefiles.

Eg:
/cmn
/src
        /featureA
             func1.cpp, func2.cpp etc..
        /featureB
             func11.cpp, func22.cpp etc..
       etc...
/NewProj
       /Project1
            main.cpp
            .cproject
            .project
            common.mk
            Makefile
       /Project2
             main.cpp
            .cproject
            .project
            common.mk
            Makefile
Re: Building QNX C++ Project with linked resources  
Hi Sesh,

I'm not an expert in the IDE, but I think you're right; I don't think the make engine looks at "Linked Resources" to 
select source files.

Maybe try this:
-> Right-clock on the project in the 'Project Explorer', choose 'Properties'
-> Click "QNX C/C++ Project"
-> Click the 'Compiler' tab
-> Change the 'Category' drop down at the top to "Extra Sources Paths"
-> Choose 'Project' to browse the workspaces; select the folder with your desired sources.

Note it is not possible to add just one source file this way -- only an entire folder.

You can do the same with include files on the 'Extra Include Paths' category.

Good luck,
-Will
Re: Building QNX C++ Project with linked resources  
Thanks Will. 
As a first step i was able to selectively pick files and folders with a "C++ project" and linked resources and get this 
to work. I am still trying to figure out a solution for "QNX C++" projects as they do not seem to recognize linked 
sources during project builds.
Re: Building QNX C++ Project with linked resources  
Solved this issue by combining SRCVPATH and SRCS to selectively pick source files.
Using EXTRA_SRCVPATH to build entire directory.