1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_build.htm

66 lines
3.1 KiB
HTML
Raw Normal View History

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<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">
<!--
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>
-->
</head>
<body>
<div role="main"><h1>Building a project</h1>
2009-06-16 21:38:17 +00:00
<p>The make output and build progress information displays in the
<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>
<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>, 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>&nbsp;&nbsp;&nbsp;(Cannot run program "make": Launching failed)</samp></p><br>
<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>
installed on your system.</p><br><br></li>
<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.
If for some reason it's not present, you can open it by selecting <strong>Window > Show View > Console</strong>.
<br>
<br>
<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>
</ol>
<p><img src="../images/ngconcepts.gif" alt="Related concepts"
2005-07-22 22:53:05 +00:00
width="143" height="21">
<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>
<p><img src="../images/ngtasks.gif" alt="Related tasks"
2005-07-22 22:53:05 +00:00
width="143" height="21">
<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>
<p><img src="../images/ngref.gif" alt="Related reference"
2005-07-22 22:53:05 +00:00
width="143" height="21">
<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>
<p> <a href="cdt_w_debug.htm">
<img 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> <a href="cdt_w_newmake.htm">
<img 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>
</div></body>
2005-07-22 22:53:05 +00:00
</html>