command line build

bridged with qnx.development_tools
Post Reply
aletue

command line build

Post by aletue » Thu Nov 17, 2005 11:58 pm

hello :) i use qnx momentics ide on windows xp to compile 20 or so
projects in a workspace. i use the following command in a batch file
to open momentics with the workspace:

c:\qnx630\host\win32\x86\usr\qde\eclipse\qde.exe -data .\workspace
-showlocation -vmargs -Xms256M -Xmx512M

from the menu i then select Project->Rebuild All.

i want to automate the build process in a batch file. i am looking
for a command line argument i can add to the above command that will
rebuild everything and then exit momentics and give me some return
value so that i can determine whether or not everything built without
errors/warnings.

does anyone know what i need to do or where i can find more
information on command line arguments? is there some other way to
accomplish an automated build?

thanks in advance,
scott :)
saraujo@coemfg.com

aletue

RE: command line build

Post by aletue » Fri Nov 18, 2005 1:58 am

as an alternative, would i be better off creating a lower level script
just using calls to 'make'? i'd prefer not to since a simple 'build
all' call woud probably be easier to maintain.

scott :)
saraujo@coemfg.com

Rennie Allen

Re: command line build

Post by Rennie Allen » Sun Nov 27, 2005 6:00 am

aletue wrote:
as an alternative, would i be better off creating a lower level script
just using calls to 'make'? i'd prefer not to since a simple 'build
all' call woud probably be easier to maintain.

scott :)
saraujo@coemfg.com
A simple way to do this, is do the build from momentics, then copy the
command that momentics issued (visible in the build window).

Open an bash shell, cd to the project directory and paste... bingo.

Once you have verified that the build worked correctly, simply recall
the command line and redirect it to a script file.

gludewig

re:command line build

Post by gludewig » Tue Apr 18, 2006 5:57 pm

I'm a QNX newbie trying to figure out how to automate our QNX build
process by creating a script that can be run every night at a
scheduled time. I've created a Container Project that holds all of
the QNX C projects that are part of the system. If I'm using the IDE,
all I need to do is "import" the container project and then do a
Rebuild All. However, I haven't been able to figure out how to do an
import and a Rebuild All via the command line. Can someone help me
out, or point me to where I could find some documentation on using
the CLI?

I realize that I could do this by capturing the make command that is
generated when each individual project is built. In fact, I've built
a script that does just that. However, I'd prefer not to have to
update the script every time we add or remove one of the projects
from the Container. I'd rather just import the Container and rebuild
the projects.

Thanks in advance for any help!

Greg

Post Reply

Return to “qnx.development_tools”