Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - command line dietician ?: (7 Items)
   
command line dietician ?  
I have a customer trying to reduce boot image size, using the command line build process today for their BSP.

I read the docs, but see no mention of how to run the dietician from the command line 

Is there a way to squeeze the libraries down without using the IDE ?

Thanks !

Dave
Re: command line dietician ?  
Hi, Dave,

The dietician function is implemented entirely in the IDE.

However, the IDE can be automated in a command-line build to build
System Builder projects in much the same way that the mkbuild script
automates building of C/C++ projects.

Execute this on Linux:

$QNX_HOST/usr/qde/eclipse/qde -application
com.qnx.tools.ide.builder.core.CommandLineBuilder \
        -data /path/to/your/workspage -project sbproject

or this on Windows:

%QNX_HOST%\usr\qde\eclipse\eclipsec.exe -application
com.qnx.tools.ide.builder.core.CommandLineBuilder \
        -data C:\path\to\your\workspage -project sbproject

where "path/to/your/workspace" is replaced by -- you guessed it -- the
workspace directory path and "sbproject" is replaced by the name of your
SystemBuilder project.

Note the use of eclipsec.exe on Windows:  this is important to get
console output from the project build.

HTH,

Christian


On Fri, 2009-11-13 at 11:22 -0500, Dave Bott wrote:

> I have a customer trying to reduce boot image size, using the command line build process today for their BSP.
> 
> I read the docs, but see no mention of how to run the dietician from the command line 
> 
> Is there a way to squeeze the libraries down without using the IDE ?
> 
> Thanks !
> 
> Dave
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post41923
> 


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems
RE: command line dietician ?  
Hi Christian,
 
Thanks for the great feedback - is this in the docs yet ?
 
It is certainly a lot better than nothing, but still requires the project to get imported in order to use the dietician.
 That's a real shame, given how it mangles the build file...
 
Cheers
 
Dave

________________________________

From: Christian Damus [mailto:community-noreply@qnx.com]
Sent: Fri 11/13/2009 8:40 AM
To: general-ide
Subject: Re: command line dietician ?



Hi, Dave,

The dietician function is implemented entirely in the IDE.

However, the IDE can be automated in a command-line build to build
System Builder projects in much the same way that the mkbuild script
automates building of C/C++ projects.

Execute this on Linux:

$QNX_HOST/usr/qde/eclipse/qde -application
com.qnx.tools.ide.builder.core.CommandLineBuilder \
        -data /path/to/your/workspage -project sbproject

or this on Windows:

%QNX_HOST%\usr\qde\eclipse\eclipsec.exe -application
com.qnx.tools.ide.builder.core.CommandLineBuilder \
        -data C:\path\to\your\workspage -project sbproject

where "path/to/your/workspace" is replaced by -- you guessed it -- the
workspace directory path and "sbproject" is replaced by the name of your
SystemBuilder project.

Note the use of eclipsec.exe on Windows:  this is important to get
console output from the project build.

HTH,

Christian


On Fri, 2009-11-13 at 11:22 -0500, Dave Bott wrote:

> I have a customer trying to reduce boot image size, using the command line build process today for their BSP.
>
> I read the docs, but see no mention of how to run the dietician from the command line
>
> Is there a way to squeeze the libraries down without using the IDE ?
>
> Thanks !
>
> Dave
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post41923
>


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems




_______________________________________________

General
http://community.qnx.com/sf/go/post41925



Attachment: Text winmail.dat 5.02 KB
RE: command line dietician ?  
Hi, Dave,

It doesn't appear to be documented, no.  I'm not even sure that it's an
officially supported function, so it's probably best to treat it as
"experimental" or "unspported" or "us at your own risk."  I tried it,
and it *seems* to work.  :-D

I expect that official support for this would entail either enhancement
of mkbuild to include System Builder projects or construction of a
mkbuild-like script to encapsulate the details of launching an
Eclipse/Equinox application.

cW

 
On Fri, 2009-11-13 at 11:44 -0500, Dave Bott wrote:

> Hi Christian,
> 
> Thanks for the great feedback - is this in the docs yet ?
> 
> It is certainly a lot better than nothing, but still requires the
> project to get imported in order to use the dietician. That's a real
> shame, given how it mangles the build file...
> 
> Cheers
> 
> Dave
> 
> ________________________________
> 
> From: Christian Damus [mailto:community-noreply@qnx.com]
> Sent: Fri 11/13/2009 8:40 AM
> To: general-ide
> Subject: Re: command line dietician ?
> 
> 
> 
> Hi, Dave,
> 
> The dietician function is implemented entirely in the IDE.
> 
> However, the IDE can be automated in a command-line build to build
> System Builder projects in much the same way that the mkbuild script
> automates building of C/C++ projects.
> 
> Execute this on Linux:
> 
> $QNX_HOST/usr/qde/eclipse/qde -application
> com.qnx.tools.ide.builder.core.CommandLineBuilder \
>         -data /path/to/your/workspage -project sbproject
> 
> or this on Windows:
> 
> %QNX_HOST%\usr\qde\eclipse\eclipsec.exe -application
> com.qnx.tools.ide.builder.core.CommandLineBuilder \
>         -data C:\path\to\your\workspage -project sbproject
> 
> where "path/to/your/workspace" is replaced by -- you guessed it -- the
> workspace directory path and "sbproject" is replaced by the name of
> your
> SystemBuilder project.
> 
> Note the use of eclipsec.exe on Windows:  this is important to get
> console output from the project build.
> 
> HTH,
> 
> Christian
> 
> 
> On Fri, 2009-11-13 at 11:22 -0500, Dave Bott wrote:
> 
> > I have a customer trying to reduce boot image size, using the
> command line build process today for their BSP.
> >
> > I read the docs, but see no mention of how to run the dietician from
> the command line
> >
> > Is there a way to squeeze the libraries down without using the IDE ?
> >
> > Thanks !
> >
> > Dave
> >
> >
> >
> > _______________________________________________
> >
> > General
> > http://community.qnx.com/sf/go/post41923
> >
> 
> 
> ________________________________________________________________________
> 
> Christian W. Damus
> Software Developer, IDE Team
> QNX Software Systems
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post41925
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post41927
> 
> 


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems
Re: RE: command line dietician ?  
it should be documented as mksbp command (command line)
http://www.qnx.com/developers/docs/6.4.1/ide_en/user_guide/builder.html
search for mksbp
RE: RE: command line dietician ?  
Hi Elena,
 
Yes, it is there, and there is an entry for mksbp
http://www.qnx.com/developers/docs/6.4.1/neutrino/utilities/m/mksbp.html
 
However, it is buried in a paragraph, with no subheading like 'building projects from the command line' so I doubt that 
many users would even find it. I strongly suggest that it get a separate paragraph and heading so it is easier to find..
.
 
Thanks !
 
Dave

________________________________

From: Elena Laskavaia [mailto:community-noreply@qnx.com]
Sent: Fri 11/13/2009 9:04 AM
To: general-ide
Subject: Re: RE: command line dietician ?



it should be documented as mksbp command (command line)
http://www.qnx.com/developers/docs/6.4.1/ide_en/user_guide/builder.html
search for mksbp



_______________________________________________

General
http://community.qnx.com/sf/go/post41930



Re: RE: command line dietician ?  
Ah!  A much better solution.

Thanks, Elena.

cW


On Fri, 2009-11-13 at 12:04 -0500, Elena Laskavaia wrote:

> it should be documented as mksbp command (command line)
> http://www.qnx.com/developers/docs/6.4.1/ide_en/user_guide/builder.html
> search for mksbp
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post41930
> 


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems