Building from the command line

To build one or more projects in the IDE workspace from the command line, use the following command:

mkbuild -ws <workspace> [options] 
mkbuild [-project] <full_project_path> [options] 
mkbuild -ws <workspace> -projects <project1,project2> [options]

Where:


If a project doesn't support a target, the default target would be built. By default, for make projects, no targets are defined; make targets have to be created from the UI in order to use named targets.

Examples

To build a default target and variant for the project projectA:

mkbuild /home/user/workspace/projectA

To build all projects in a specified workspace:

mkbuild -ws /home/user/workspace

To build using another IDE installation:

QDE=/home/user/IDE4.6 mkbuild ... 

To build the projectA and projectB projects with clean, all targets, and the x86 variant/configuration:

mkbuild -ws /home/user/workspace -projects projectA,projectB -target \
clean,all -variant x86
Related concepts
Configuring automated builds
Building a single project
Adding a use message
Related tasks
Enabling the autobuild feature for QNX C/C++ projects
Enabling the autobuild feature for non QNX C/C++ projects
Building all projects
Building selected projects
Cleaning and rebuilding all projects
Cleaning selected projects
Autosave before building
Creating custom options
Creating a QNX target system Project
Creating a launch configuration