carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/cheatsheets/cs_cdt_import_project.xml
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<cheatsheet title="Importing C/C++ Projects">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
   <intro>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
         This guide walks you though the process of importing a C/C++ project into CDT.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
   </intro>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
   <item title="C/C++ workbench setup" dialog="false" skip="false" href="/org.eclipse.cdt.doc.user/concepts/cdt_c_perspectives.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
         Start by setting up the CDT development environment.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
      <subitem label="Open C/C++ perspective." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
         <command serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.cdt.ui.CPerspective)" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
   <item title="Creating a C/C++ project" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_new_proj_wiz.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
         Create a C++ or C project by choosing one of the following wizards.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
      <subitem label="Click File &gt; New &gt; C++ Project to launch the new C++ project wizard." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
         <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard1)" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
      <subitem label="Click File &gt; New &gt; C Project to launch the new C project wizard." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
         <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard2)" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
      <subitem label="Choose Executable &gt; Hello World C/C++ Example from the Project types list." skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
      <subitem label="Type a project name, set its location, and select a Toolchain, then click Next." skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
      <subitem label="Enter Basic Project information, then click Next." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
      <subitem label="Select platforms and configurations to show in the Run/Debug menus, click Finish." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
   <item title="Importing files to the project" dialog="true" skip="false" href="/org.eclipse.platform.doc.user/tasks/tasks-53.xhtml">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
         For a project to work it needs files. In this step you import your old project files into your new C/C++ project.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
      <subitem label="Click File &gt; Import and then use one of the following import methods." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
		<!--
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
         <command serialization="org.eclipse.ui.file.import" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
		-->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
      <subitem label="To import files from another project, click General &gt; Existing Projects into Workspace." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
      <subitem label="To import files from the file system, click General &gt; File System." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
   <item title="Building projects and inspecting files" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
         Build the program to create a binary and examine it in Outline and C/C++ Project views.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
      <subitem label="Click Project &gt; Build All to create a binary of your source file." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
		<!--
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
         <command serialization="org.eclipse.ui.project.buildAll" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
		-->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
      <subitem label="In the Project Explorer view, open the Binaries element and examine the program&apos;s binary." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
      <subitem label="Open the .cpp file in the project and examine the Outline view." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
		<!--
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
         <command serialization="org.eclipse.cdt.ui.edit.open.outline" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
		-->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
   <item title="Setup project properties" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_prop_general_idx.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
         With the project imported and able to build, its time now to reset some project properties for easier development.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
      <subitem label="Right-click the project name in the Project Explorer view, then click Properties." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    77
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
      <subitem label="Click C/C++ Indexer, then select Full C/C++ Indexer from the Select Indexer list." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    80
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    81
   <item title="Running the program" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_run_dbg_main.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    82
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    83
         Create a run configuration that defines how the program is launched. Note you can define multiple run configurations if desired, each with its own settings.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    84
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    85
      <subitem label="Select the project and click Run As &gt; Open Run Dialog... to launch the program." skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    86
		<!--
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    87
		  <command serialization="org.eclipse.debug.ui.commands.OpenRunConfigurations" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    88
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    89
		-->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    90
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    91
      <subitem label="Create a run configuration by double-clicking the C/C++ Local Application item." skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    92
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    93
      <subitem label="Type a configuration name in the Name box." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    94
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    95
      <subitem label="If no binary name appears in the C/C++ Application box, click Search Project to select one in the Program Selection dialog." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    96
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    97
      <subitem label="Click Apply, then click Run to launch the program. The Console view displays the program output." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    98
         <command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.ui.views.ContentOutline)" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    99
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   100
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   101
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   102
</cheatsheet>