Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Building outside of Momentics with application projects that inlcude library projects: (3 Items)
   
Building outside of Momentics with application projects that inlcude library projects  
I am using subversion and a multi level directory layout for my project.  Some subdirectories contain Momentics projects
 for libraries, while others contain projects for applications. For example here is a view of the code layout in the 
repository:
Trunk
|-Apps
|--Foo
|-Libs
|--FooLib

In order to build application Foo which relies on library FooLib I check out both projects from subversion. I build the 
FooLib project first, followed by the Foo project.  The Foo project links to FooLib in the project properties linker 
options and the include path for the library references the workspace project location for FooLib.

This builds fine inside Momentics, but when I try to build it from the command prompt it doesn't know what $
(PROJECT_ROOT_FooLib) is defined as, and the Foo application doesn't know how to link to the FooLib library.  Is there a
 better way to work around this instead of changing the include path for the library to $(PROJECT_ROOT)/../FooLib/?

Re: Building outside of Momentics with application projects that inlcude library projects  
I would guess you can define make macro PROJECT_ROOT_FooLib to point to 
correct location.

Andy Pekarske wrote:
>
> I am using subversion and a multi level directory layout for my 
> project.  Some subdirectories contain Momentics projects for 
> libraries, while others contain projects for applications. For example 
> here is a view of the code layout in the repository:
>
> Trunk
> |-Apps
> |--Foo
> |-Libs
> |--FooLib
>
> In order to build application Foo which relies on library FooLib I 
> check out both projects from subversion. I build the FooLib project 
> first, followed by the Foo project.  The Foo project links to FooLib 
> in the project properties linker options and the include path for the 
> library references the workspace project location for FooLib.
>
> This builds fine inside Momentics, but when I try to build it from the 
> command prompt it doesn't know what $(PROJECT_ROOT_FooLib) is defined 
> as, and the Foo application doesn't know how to link to the FooLib 
> library.  Is there a better way to work around this instead of 
> changing the include path for the library to $(PROJECT_ROOT)/../FooLib/?
>
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post8322
>
Re: Building outside of Momentics with application projects that  
I don't want to modify the make file because this is automatically generated inside of Momentics.  I tried defining the 
environment variable PROJECT_ROOT_FooLib=../FooLib, but it still doesn't add that as an include path when running make 
all from the command prompt.