Skip to main content
summaryrefslogtreecommitdiffstats
blob: 1fa7a18fdc22810ef81670bdb98af1ac977c0e21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html lang="en">
<head>
  <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">
  <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>
</head>
<body>
<h1>Building a project</h1>

<p>The make output and build progress information displays in the
Console view. The Make Targets view displays makefile actions, and the
Tasks view displays compile warnings or errors.</p>
<p>To build a project:</p>
<ol>
  <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>
  <li>Click <strong>Project &gt; Build Project</strong>.
  <br>You can also hit the hammer icon <img src="../images/hammer-icon.png" alt="build icon"> on the toolbar.
  </li>
  <p>If you see an error message, such as:</p>
   <p><samp>&nbsp;&nbsp;&nbsp;(Cannot run program "make": Launching failed)</samp></p>
  <p>then CDT cannot locate the build command, usually <samp>make</samp>.
Either your path is not configured correctly, or you do not have <samp>make</samp>
installed on your system.</p>
<li>You can see the output and results of the build command in the <strong>Console</strong> view.
Click on its tab to bring the view forward if it is not currently visible.
If for some reason it's not present, you can open it by selecting Window > Show View > Console.
<p> <br> 
<a href="javascript:void(0)" onClick="newWin('../images/cdt_w_newmake03.png')">Click here to see an illustration (displayed in a separate window)
</a>.</p> 



</li>
</ol>
<p><img border="0" src="../images/ngconcepts.gif" alt="Related concepts"
 width="143" height="21">
<br>
<a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br>
<a href="../concepts/cdt_c_build_over.htm">Build overview</a><br>
</p>
<p><img border="0" src="../images/ngtasks.gif" alt="Related tasks"
 width="143" height="21">
<br>
<a href="../tasks/cdt_o_build_task.htm">Building projects</a><br>
</p>
<p><img border="0" src="../images/ngref.gif" alt="Related reference"
 width="143" height="21">
<br>
<a href="../reference/cdt_u_newproj_buildset.htm">Make Builder page,
C/C++ Properties window</a><br>
</p>
<p> <a href="cdt_w_debug.htm">
<img border="0" src="../images/ngnext.gif" width="16" height="16" alt="Next icon"></a> <strong><a
 href="cdt_w_debug.htm">Next: Debugging a project</a></strong></p>
<p align="left"> <a href="cdt_w_newmake.htm">
<img border="0" src="../images/ngback.gif" width="16" height="16" alt="Previous icon"></a> <strong><a
 href="cdt_w_newmake.htm">Back: Creating a makefile</a></strong></p>
<p>
<img src="../images/ng00_04a.gif" alt="QNX Copyright Statement"></p>
</body>
</html>

Back to the top