diff options
Diffstat (limited to 'doc/book-enea-linux-user-guide/doc/using_eclipse.xml')
-rw-r--r-- | doc/book-enea-linux-user-guide/doc/using_eclipse.xml | 119 |
1 files changed, 56 insertions, 63 deletions
diff --git a/doc/book-enea-linux-user-guide/doc/using_eclipse.xml b/doc/book-enea-linux-user-guide/doc/using_eclipse.xml index 7484db4..0e8f335 100644 --- a/doc/book-enea-linux-user-guide/doc/using_eclipse.xml +++ b/doc/book-enea-linux-user-guide/doc/using_eclipse.xml | |||
@@ -3,72 +3,65 @@ | |||
3 | <title>Using Eclipse</title> | 3 | <title>Using Eclipse</title> |
4 | 4 | ||
5 | <section id="install_eclipse"> | 5 | <section id="install_eclipse"> |
6 | <title>Installing Eclipse</title> | 6 | <title>Installing Oxygen Eclipse IDE</title> |
7 | |||
8 | <note> | ||
9 | <para>Yocto Eclipse Plugins are discontinued, with the last Yocto version that provides them | ||
10 | being Yocto 2.5.</para> | ||
11 | </note> | ||
12 | |||
13 | <para>Configuration of the Eclipse Oxygen IDE should be done following the | ||
14 | <ulink url="http://www.yoctoproject.org/docs/2.5/sdk-manual/sdk-manual.html#adt-eclipse">Yocto | ||
15 | Project Application Development and the Extensible Software Development Kit | ||
16 | (eSDK)</ulink> documentation.</para> | ||
17 | |||
18 | <para>The installation instructions provided in Chapter 5.2.1.1 are no longer valid, please follow the | ||
19 | steps below in order to install Eclipse Oxygen: | ||
20 | </para> | ||
7 | 21 | ||
8 | <para>For instructions on how to install Eclipse Oxygen, please refer to | 22 | <orderedlist> |
9 | the <ulink | ||
10 | url="http://www.yoctoproject.org/docs/2.5/sdk-manual/sdk-manual.html#adt-eclipse">Yocto | ||
11 | Project Software Development Kit (SDK) Developer's Guide</ulink>, chapter | ||
12 | 4.3.2.1. Although the instructions listed there currently, refer to the | ||
13 | Neon release of Eclipse, the same steps still apply to the Oxygen release, | ||
14 | with some small differences:</para> | ||
15 | |||
16 | <itemizedlist> | ||
17 | <listitem> | 23 | <listitem> |
18 | <para>In <emphasis role="bold">step 1</emphasis> from chapter | 24 | <para>Download the <ulink |
19 | 4.3.2.1.1, the URL for downloading Eclipse should be <ulink | 25 | url="https://www.eclipse.org/downloads/packages/release/oxygen/2/eclipse-ide-cc-developers"> |
20 | url="http://www.eclipse.org/oxygen">http://www.eclipse.org/oxygen</ulink> | 26 | Eclipse Oxygen archive</ulink>. Make sure to select the correct architecture in the link provided, |
21 | instead.</para> | 27 | e.g. <filename>eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz</filename>. |
28 | </para> | ||
22 | </listitem> | 29 | </listitem> |
23 | 30 | ||
24 | <listitem> | 31 | <listitem> |
25 | <para>In <emphasis role="bold">step 3</emphasis> from chapter | 32 | <para>Unzip the Eclipse archive in your home directory and start the IDE: |
26 | 4.3.2.1.2, the correct option in the drop-down menu should look like: | 33 | <programlisting> |
27 | <emphasis>Oxygen - | 34 | $ tar xf ~/Downloads/eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz -C ~/ |
28 | http://download.eclipse.org/releases/oxygen</emphasis>.</para> | 35 | $ ~/eclipse/eclipse |
36 | </programlisting> | ||
37 | </para> | ||
29 | </listitem> | 38 | </listitem> |
30 | 39 | ||
31 | <listitem> | 40 | <listitem> |
32 | <para>In <emphasis role="bold">step 5</emphasis> from chapter | 41 | <para>Proceed to Chapter 5.2.1.2 in the Yocto documentation and configure Eclipse with |
33 | 4.3.2.1.2, under the category <emphasis role="bold">Mobile and Device | 42 | Oxygen. |
34 | Development</emphasis>, select <emphasis role="bold">C/C++ GDB | 43 | </para> |
35 | Hardware Debugging</emphasis> as well.</para> | ||
36 | </listitem> | 44 | </listitem> |
37 | </itemizedlist> | 45 | </orderedlist> |
46 | |||
47 | <note> | ||
48 | <para>For compatibility reasons, only use JDK version 1.8 on your host.</para> | ||
49 | </note> | ||
38 | </section> | 50 | </section> |
39 | 51 | ||
40 | <section id="install_yocto"> | 52 | <section id="install_yocto"> |
41 | <title>Installing Yocto Plug-ins</title> | 53 | <title>Installing Yocto Plugins</title> |
42 | 54 | ||
43 | <para>Retrieve the archive containing the Yocto Plug-ins from the Enea | 55 | <para>To install the Yocto Plugins in Eclipse, follow the instructions in the <ulink |
44 | Linux release location and save it on your local machine. The archive file | 56 | url="http://www.yoctoproject.org/docs/2.5/sdk-manual/sdk-manual.html#oxygen-setting-up-the-eclipse-ide"> |
45 | has the following format: | 57 | Yocto Project Application Development and the Extensible Software Development Kit |
46 | <filename>org.yocto.sdk-<release>-<date>-archive.zip</filename>.</para> | 58 | (eSDK)</ulink> documentation, Chapter 5.2.1.3. |
47 | 59 | </para> | |
48 | <para>To install the Yocto Plugins in Eclipse, follow the instructions in | 60 | <para> |
49 | <ulink | 61 | You have the option of installing pre-built plugins from the Yocto Project Eclipse |
50 | url="http://www.yoctoproject.org/docs/2.5/sdk-manual/sdk-manual.html#adt-eclipse">chapter | 62 | update site (Chapter 5.2.1.3.1) or to install the plugins using the latest source code |
51 | 4.3.2.1.3.2</ulink>. of the Yocto Manual, starting with <emphasis | 63 | (Chapter 5.2.1.3.2). We recommend for the first installation the use of pre-built plugins. |
52 | role="bold">step 8</emphasis>. In <emphasis role="bold">step 12</emphasis> | 64 | </para> |
53 | use the local archive that you downloaded previously.</para> | ||
54 | |||
55 | <para>To make sure that all required packages have been installed, go to | ||
56 | the menu <emphasis role="bold">Help > Install New Software > Eclipse | ||
57 | version</emphasis>, and select the version you use (e.g. Oxygen), to add | ||
58 | any missing packages. You can also check what packages are currently | ||
59 | installed by pressing the <emphasis role="bold">What is Already | ||
60 | Installed?</emphasis> link, as seen below.</para> | ||
61 | |||
62 | <mediaobject> | ||
63 | <imageobject role="fo"> | ||
64 | <imagedata align="center" contentwidth="600" | ||
65 | fileref="images/install_new_sw.svg" /> | ||
66 | </imageobject> | ||
67 | |||
68 | <imageobject role="html"> | ||
69 | <imagedata align="center" fileref="images/install_new_sw.png" /> | ||
70 | </imageobject> | ||
71 | </mediaobject> | ||
72 | </section> | 65 | </section> |
73 | 66 | ||
74 | <section id="eclipse_remote_connection"> | 67 | <section id="eclipse_remote_connection"> |
@@ -219,12 +212,12 @@ root 329 0.0 0.2 1864824 2600 ? Ssl 12:47 0:08 /usr/sbin/tcf-agent -d -L- -l0</p | |||
219 | </orderedlist> | 212 | </orderedlist> |
220 | 213 | ||
221 | <tip> | 214 | <tip> |
222 | <para>More details on how to configure the cross-compiler can be found | 215 | <para>Details on how to configure the cross-compiler can be found |
223 | in the <ulink | 216 | in the <ulink |
224 | url="http://www.yoctoproject.org/docs/2.5/sdk-manual/sdk-manual.html"><emphasis>Yocto | 217 | url="http://www.yoctoproject.org/docs/2.5/sdk-manual/sdk-manual.html">Yocto |
225 | Project Software Development Kit (SDK) Developer's Guide | 218 | Project Application Development and Extensible Software Development Kit |
226 | 2.5</emphasis></ulink>. Change the Yocto version in the link if | 219 | (eSDK) Manual</ulink>. |
227 | needed.</para> | 220 | </para> |
228 | 221 | ||
229 | <para>There is also a good cheat sheet available in Eclipse, under | 222 | <para>There is also a good cheat sheet available in Eclipse, under |
230 | <emphasis role="bold">Help > Cheat Sheets > Yocto Project > | 223 | <emphasis role="bold">Help > Cheat Sheets > Yocto Project > |
@@ -877,7 +870,7 @@ root 329 0.0 0.2 1864824 2600 ? Ssl 12:47 0:08 /usr/sbin/tcf-agent -d -L- -l0</p | |||
877 | <para>Under the <emphasis role="bold">Debugger</emphasis> tab, | 870 | <para>Under the <emphasis role="bold">Debugger</emphasis> tab, |
878 | fill in the <literal>GDB Debugger</literal> field with the | 871 | fill in the <literal>GDB Debugger</literal> field with the |
879 | path to the GDB binary from the SDK. Example path: | 872 | path to the GDB binary from the SDK. Example path: |
880 | <filename><extsdkdir>/tmp/sysroots/x86_64-linux/usr/bin/<arch>-enea-linux/<arch>-enea-linux-gdb</filename></para> | 873 | <filename><extsdkdir>/tmp/sysroots/x86_64/usr/bin/<arch>-enea-linux/<arch>-enea-linux-gdb</filename></para> |
881 | </listitem> | 874 | </listitem> |
882 | 875 | ||
883 | <listitem> | 876 | <listitem> |
@@ -934,7 +927,7 @@ root 329 0.0 0.2 1864824 2600 ? Ssl 12:47 0:08 /usr/sbin/tcf-agent -d -L- -l0</p | |||
934 | you can find it in the rootfs under the <literal>/boot</literal> | 927 | you can find it in the rootfs under the <literal>/boot</literal> |
935 | folder. If you build your own kernel using bitbake, it should be | 928 | folder. If you build your own kernel using bitbake, it should be |
936 | available in your build folder. Located in, for example: | 929 | available in your build folder. Located in, for example: |
937 | <filename><filename>tmp/work/corei7-64-intel-common-enea-linux/linux-intel-rt/4.14.59+gitAUTOINC+d64aec9793_6a0fa58d9e-r0/linux-corei7-64-intel-common-preempt-rt-build/vmlinux</filename></filename></para> | 930 | <filename><filename>tmp/work/corei7-64-intel-common-enea-linux/linux-intel/4.14.66+gitAUTOINC+d64aec9793_dd6a8b48d4-r0/linux-corei7-64-intel-common-standard-build/vmlinux</filename></filename></para> |
938 | </listitem> | 931 | </listitem> |
939 | 932 | ||
940 | <listitem> | 933 | <listitem> |
@@ -1042,7 +1035,7 @@ root 329 0.0 0.2 1864824 2600 ? Ssl 12:47 0:08 /usr/sbin/tcf-agent -d -L- -l0</p | |||
1042 | <para>Browse to the location of the <emphasis role="bold">GDB | 1035 | <para>Browse to the location of the <emphasis role="bold">GDB |
1043 | binary</emphasis> installed by the cross-compilation toolchain | 1036 | binary</emphasis> installed by the cross-compilation toolchain |
1044 | installer, by default: | 1037 | installer, by default: |
1045 | <filename><extsdkdir>/tmp/sysroots/x86_64/usr/bin/<arch>-enea-linux/<arch>-enea-linux-gdb</filename>.</para> | 1038 | <filename><extsdkdir>/tmp/sysroots/x86_64-linux/usr/bin/<arch>-enea-linux/<arch>-enea-linux-gdb</filename>.</para> |
1046 | </listitem> | 1039 | </listitem> |
1047 | 1040 | ||
1048 | <listitem> | 1041 | <listitem> |
@@ -1185,7 +1178,7 @@ root 329 0.0 0.2 1864824 2600 ? Ssl 12:47 0:08 /usr/sbin/tcf-agent -d -L- -l0</p | |||
1185 | cross-compilation toolchain, from your <emphasis | 1178 | cross-compilation toolchain, from your <emphasis |
1186 | role="bold">Sysroot Location</emphasis>. Example:</para> | 1179 | role="bold">Sysroot Location</emphasis>. Example:</para> |
1187 | 1180 | ||
1188 | <programlisting>$ <extsdkdir>/tmp/sysroots/x86_64/usr/bin/\ | 1181 | <programlisting>$ <extsdkdir>/tmp/sysroots/x86_64-linux/usr/bin/\ |
1189 | <arch>-enea-linux/<arch>-enea-linux-gdb</programlisting> | 1182 | <arch>-enea-linux/<arch>-enea-linux-gdb</programlisting> |
1190 | 1183 | ||
1191 | <para>where <filename><sdkdir></filename> is e.g. | 1184 | <para>where <filename><sdkdir></filename> is e.g. |