2011-03-31 13:59:18 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2003-11-28 21:50:02 +00:00
< html lang = "en" >
< head >
2005-07-22 22:53:05 +00:00
< meta http-equiv = "Content-Language" content = "en-us" >
< meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" >
< title > Building your project< / title >
< link rel = "stylesheet" type = "text/css" href = "../help.css" >
2011-03-31 13:59:18 +00:00
<!--
2009-06-16 21:38:17 +00:00
< script language = "JavaScript" >
function newWin(url) {
window.open(url, 'install_cdt', 'width=750, height=700, menubar=no, toolbar=no, status=no, resizable=yes, location=no, scrollbars=yes');
}
< / script >
2011-03-31 13:59:18 +00:00
-->
2003-11-28 21:50:02 +00:00
< / head >
< body >
2012-09-19 17:16:24 -04:00
< div role = "main" > < h1 > Building a project< / h1 >
2009-06-16 21:38:17 +00:00
2007-06-19 19:34:42 +00:00
< p > The make output and build progress information displays in the
2010-07-04 20:11:14 +00:00
< a href = "../reference/cdt_u_console_view.htm" > Console< / a > view. The < a href = "../reference/cdt_u_make_targets_view.htm" > Make Targets< / a > view displays makefile actions, and the
< a href = "../reference/cdt_u_problems_view.htm" > Problems< / a > view displays compile warnings or errors.< / p >
< h2 > To build a project:< / h2 >
2003-11-28 21:50:02 +00:00
< ol >
2010-03-31 01:34:27 +00:00
< li > In the < strong > Project Explorer< / strong > view, select your project. For the tutorial, you can select the < strong > HelloWorld< / strong > project you created earlier. < p > < br > < / p > < / li >
2011-03-31 13:59:18 +00:00
< li > Click < strong > Project > Build Project< / strong > , or click the build icon < img src = "../images/hammer-icon.png" alt = "build icon" > on the toolbar.
< br > < br > < p > If you see an error message, such as:< / p > < br >
< p > < samp > (Cannot run program "make": Launching failed)< / samp > < / p > < br >
2010-07-04 20:11:14 +00:00
< p > then CDT cannot locate the build command, usually < samp class = "typewriter" > make< / samp > .
Either your path is not configured correctly, or you do not have < samp class = "typewriter" > make< / samp >
2011-03-31 13:59:18 +00:00
installed on your system.< / p > < br > < br > < / li >
2010-07-04 20:11:14 +00:00
< li > You can see in the < strong > Console< / strong > view the output and results of the build command.
2009-06-16 21:38:17 +00:00
Click on its tab to bring the view forward if it is not currently visible.
2010-07-04 20:11:14 +00:00
If for some reason it's not present, you can open it by selecting < strong > Window > Show View > Console< / strong > .
< br >
< br >
2010-07-12 19:31:25 +00:00
< img src = "../images/cdt_w_newmake03.png" alt = "Console view in C/C++ Perspective" width = "842" height = "633" > < br >
2009-06-16 21:38:17 +00:00
< / li >
2003-11-28 21:50:02 +00:00
< / ol >
2011-03-31 13:59:18 +00:00
< p > < img src = "../images/ngconcepts.gif" alt = "Related concepts"
2005-07-22 22:53:05 +00:00
width="143" height="21">
2003-11-28 21:50:02 +00:00
< br >
< a href = "../concepts/cdt_c_projects.htm" > CDT Projects< / a > < br >
2005-07-22 22:53:05 +00:00
< a href = "../concepts/cdt_c_build_over.htm" > Build overview< / a > < br >
< / p >
2011-03-31 13:59:18 +00:00
< p > < img src = "../images/ngtasks.gif" alt = "Related tasks"
2005-07-22 22:53:05 +00:00
width="143" height="21">
2003-11-28 21:50:02 +00:00
< br >
2008-07-24 17:25:00 +00:00
< a href = "../tasks/cdt_o_build_task.htm" > Building projects< / a > < br >
2005-07-22 22:53:05 +00:00
< / p >
2011-03-31 13:59:18 +00:00
< p > < img src = "../images/ngref.gif" alt = "Related reference"
2005-07-22 22:53:05 +00:00
width="143" height="21">
2003-11-28 21:50:02 +00:00
< br >
2005-07-22 22:53:05 +00:00
< a href = "../reference/cdt_u_newproj_buildset.htm" > Make Builder page,
C/C++ Properties window< / a > < br >
< / p >
2003-11-28 21:50:02 +00:00
< p > < a href = "cdt_w_debug.htm" >
2011-03-31 13:59:18 +00:00
< img src = "../images/ngnext.gif" width = "16" height = "16" alt = "Next icon" > < / a > < strong > < a
2010-03-31 01:34:27 +00:00
href="cdt_w_debug.htm">Next: Debugging a project< / a > < / strong > < / p >
2011-03-31 13:59:18 +00:00
< p > < a href = "cdt_w_newmake.htm" >
< img src = "../images/ngback.gif" width = "16" height = "16" alt = "Previous icon" > < / a > < strong > < a
2010-03-31 01:34:27 +00:00
href="cdt_w_newmake.htm">Back: Creating a makefile< / a > < / strong > < / p >
2003-11-28 21:50:02 +00:00
< p >
2007-06-19 19:34:42 +00:00
< img src = "../images/ng00_04a.gif" alt = "QNX Copyright Statement" > < / p >
2012-09-19 17:16:24 -04:00
< / div > < / body >
2005-07-22 22:53:05 +00:00
< / html >