diff options
| author | Scott Rifenbark <srifenbark@gmail.com> | 2018-06-13 14:14:16 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-15 11:26:47 +0100 |
| commit | 052c49367b4d63e411f5b30f99290c2f831e7523 (patch) | |
| tree | fdf9ceff1f59f461ccd4f4be1211839ba7f36d63 | |
| parent | 402b7ce9df5522b08b9d3d547407f137938a3ffe (diff) | |
| download | poky-052c49367b4d63e411f5b30f99290c2f831e7523.tar.gz | |
sdk-manual: Edits to the Oxygen section
Found several items that were slightly off after working through the
procedure. Updates to bring it into line with reality.
(From yocto-docs rev: 0f34afe3c37dedda28a1a5714703787a5dfe649d)
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | documentation/sdk-manual/sdk-eclipse-project.xml | 120 |
1 files changed, 64 insertions, 56 deletions
diff --git a/documentation/sdk-manual/sdk-eclipse-project.xml b/documentation/sdk-manual/sdk-eclipse-project.xml index 5ad9c45ae7..c45d0874af 100644 --- a/documentation/sdk-manual/sdk-eclipse-project.xml +++ b/documentation/sdk-manual/sdk-eclipse-project.xml | |||
| @@ -19,8 +19,8 @@ | |||
| 19 | 19 | ||
| 20 | <para> | 20 | <para> |
| 21 | The following figure and supporting list summarize the | 21 | The following figure and supporting list summarize the |
| 22 | application development general workflow that employs both the | 22 | general workflow for application development that uses the |
| 23 | SDK Eclipse. | 23 | SDK within the Eclipse IDE. |
| 24 | </para> | 24 | </para> |
| 25 | 25 | ||
| 26 | <para> | 26 | <para> |
| @@ -259,15 +259,17 @@ | |||
| 259 | </para></listitem> | 259 | </para></listitem> |
| 260 | <listitem><para> | 260 | <listitem><para> |
| 261 | <emphasis>Install the Software:</emphasis> | 261 | <emphasis>Install the Software:</emphasis> |
| 262 | Accept the default "cpp-oxygen" directory and | 262 | Click "Install" to begin the installation. |
| 263 | click "Install". | 263 | Accept all the certificates and any license |
| 264 | Accept any license agreements and approve any | 264 | agreements. |
| 265 | certificates. | 265 | Click "Install" again to finish the installation. |
| 266 | </para></listitem> | 266 | </para></listitem> |
| 267 | <listitem><para> | 267 | <listitem><para> |
| 268 | <emphasis>Launch Oxygen:</emphasis> | 268 | <emphasis>Launch Oxygen:</emphasis> |
| 269 | Click the "Launch" button and accept the | 269 | Accept the default "workspace" and click the |
| 270 | default "workspace". | 270 | "Launch" button. |
| 271 | You should see the Eclipse welcome page from which | ||
| 272 | can click "workbench" to enter your workspace. | ||
| 271 | </para></listitem> | 273 | </para></listitem> |
| 272 | </orderedlist> | 274 | </orderedlist> |
| 273 | </para> | 275 | </para> |
| @@ -278,17 +280,29 @@ | |||
| 278 | 280 | ||
| 279 | <para> | 281 | <para> |
| 280 | Follow these steps to configure the Oxygen Eclipse IDE. | 282 | Follow these steps to configure the Oxygen Eclipse IDE. |
| 281 | <note> | 283 | <note><title>Notes</title> |
| 282 | Depending on how you installed Eclipse and what | 284 | <itemizedlist> |
| 283 | you have already done, some of the options will | 285 | <listitem><para> |
| 284 | not appear. | 286 | Depending on how you installed Eclipse and what |
| 285 | If you cannot find an option as directed by the | 287 | you have already done, some of the options will |
| 286 | manual, it has already been installed. | 288 | not appear. |
| 289 | If you cannot find an option as directed by the | ||
| 290 | manual, it has already been installed. | ||
| 291 | </para></listitem> | ||
| 292 | <listitem><para> | ||
| 293 | If you want to see all items regardless of | ||
| 294 | whether they are installed or not, deselect the | ||
| 295 | "Hide items that are already installed" | ||
| 296 | check box. | ||
| 297 | </para></listitem> | ||
| 298 | </itemizedlist> | ||
| 287 | </note> | 299 | </note> |
| 288 | <orderedlist> | 300 | <orderedlist> |
| 289 | <listitem><para> | 301 | <listitem><para> |
| 290 | Be sure Eclipse is running and you are in your | 302 | Be sure Eclipse is running and you are in your |
| 291 | workbench. | 303 | workbench. |
| 304 | Just click "workbench" if you are not in your | ||
| 305 | default workspace. | ||
| 292 | </para></listitem> | 306 | </para></listitem> |
| 293 | <listitem><para> | 307 | <listitem><para> |
| 294 | Select "Install New Software" from the "Help" | 308 | Select "Install New Software" from the "Help" |
| @@ -341,7 +355,7 @@ | |||
| 341 | <para> | 355 | <para> |
| 342 | You can install the Eclipse Yocto Plug-in into the | 356 | You can install the Eclipse Yocto Plug-in into the |
| 343 | Eclipse IDE one of two ways: use the Yocto Project's | 357 | Eclipse IDE one of two ways: use the Yocto Project's |
| 344 | Eclipse Update site to install the pre-built plug-in | 358 | Eclipse Update site to install the pre-built plug-in, |
| 345 | or build and install the plug-in from the latest | 359 | or build and install the plug-in from the latest |
| 346 | source code. | 360 | source code. |
| 347 | </para> | 361 | </para> |
| @@ -370,12 +384,10 @@ | |||
| 370 | name in the "Name" field. | 384 | name in the "Name" field. |
| 371 | </para></listitem> | 385 | </para></listitem> |
| 372 | <listitem><para> | 386 | <listitem><para> |
| 373 | Click "OK" to have the entry added | 387 | Click "OK" to have the entry automatically |
| 374 | to the "Work with:" drop-down list. | 388 | populate the "Work with:" field and to have |
| 375 | </para></listitem> | 389 | the items for installation appear in the window |
| 376 | <listitem><para> | 390 | below. |
| 377 | Select the entry for the plug-in | ||
| 378 | from the "Work with:" drop-down list. | ||
| 379 | </para></listitem> | 391 | </para></listitem> |
| 380 | <listitem><para> | 392 | <listitem><para> |
| 381 | Check the boxes next to the following: | 393 | Check the boxes next to the following: |
| @@ -407,8 +419,13 @@ | |||
| 407 | latest source code, follow these steps: | 419 | latest source code, follow these steps: |
| 408 | <orderedlist> | 420 | <orderedlist> |
| 409 | <listitem><para> | 421 | <listitem><para> |
| 410 | Be sure your development system | 422 | Be sure your build host has JDK version 1.8 |
| 411 | has JDK 1.8+ | 423 | or greater. |
| 424 | On a Linux build host you can determine the | ||
| 425 | version using the following command: | ||
| 426 | <literallayout class='monospaced'> | ||
| 427 | $ java -version | ||
| 428 | </literallayout> | ||
| 412 | </para></listitem> | 429 | </para></listitem> |
| 413 | <listitem><para> | 430 | <listitem><para> |
| 414 | Install X11-related packages: | 431 | Install X11-related packages: |
| @@ -428,12 +445,12 @@ | |||
| 428 | Use Git to create the correct tag: | 445 | Use Git to create the correct tag: |
| 429 | <literallayout class='monospaced'> | 446 | <literallayout class='monospaced'> |
| 430 | $ cd ~/eclipse-yocto | 447 | $ cd ~/eclipse-yocto |
| 431 | $ git checkout -b oxygen/yocto-&DISTRO; remotes/origin/oxygen-master | 448 | $ git checkout -b oxygen/&DISTRO_NAME_NO_CAP; remotes/origin/oxygen/&DISTRO_NAME_NO_CAP; |
| 432 | </literallayout> | 449 | </literallayout> |
| 433 | This creates a local tag named | 450 | This creates a local tag named |
| 434 | <filename>oxygen/yocto-&DISTRO;</filename> | 451 | <filename>oxygen/&DISTRO_NAME_NO_CAP;</filename> |
| 435 | based on the branch | 452 | based on the branch |
| 436 | <filename>origin/oxygen-master</filename>. | 453 | <filename>origin/oxygen/&DISTRO_NAME_NO_CAP;</filename>. |
| 437 | You are put into a detached HEAD state, | 454 | You are put into a detached HEAD state, |
| 438 | which is fine since you are only going to | 455 | which is fine since you are only going to |
| 439 | be building and not developing. | 456 | be building and not developing. |
| @@ -467,11 +484,11 @@ | |||
| 467 | <para> | 484 | <para> |
| 468 | Following is an example: | 485 | Following is an example: |
| 469 | <literallayout class='monospaced'> | 486 | <literallayout class='monospaced'> |
| 470 | $ ECLIPSE_HOME=/home/scottrif/eclipse-yocto/scripts/eclipse ./build.sh -l oxygen/yocto-&DISTRO; master yocto-&DISTRO; 2>&1 | tee build.log | 487 | $ ECLIPSE_HOME=/home/scottrif/eclipse-yocto/scripts/eclipse ./build.sh -l oxygen/&DISTRO_NAME_NO_CAP; master yocto-&DISTRO; 2>&1 | tee build.log |
| 471 | </literallayout> | 488 | </literallayout> |
| 472 | The previous example command adds the tag | 489 | The previous example command adds the tag |
| 473 | you need for | 490 | you need for |
| 474 | <filename>oxygen/yocto-&DISTRO;</filename> | 491 | <filename>oxygen/&DISTRO_NAME_NO_CAP;</filename> |
| 475 | to <filename>HEAD</filename>, then tells | 492 | to <filename>HEAD</filename>, then tells |
| 476 | the build script to use the local (-l) Git | 493 | the build script to use the local (-l) Git |
| 477 | checkout for the build. | 494 | checkout for the build. |
| @@ -553,7 +570,7 @@ | |||
| 553 | <para> | 570 | <para> |
| 554 | To start, you need to do the following from within the | 571 | To start, you need to do the following from within the |
| 555 | Eclipse IDE: | 572 | Eclipse IDE: |
| 556 | <itemizedlist> | 573 | <orderedlist> |
| 557 | <listitem><para> | 574 | <listitem><para> |
| 558 | Choose "Preferences" from the "Window" menu to | 575 | Choose "Preferences" from the "Window" menu to |
| 559 | display the Preferences Dialog. | 576 | display the Preferences Dialog. |
| @@ -562,7 +579,7 @@ | |||
| 562 | Click "Yocto Project SDK" to display | 579 | Click "Yocto Project SDK" to display |
| 563 | the configuration screen. | 580 | the configuration screen. |
| 564 | </para></listitem> | 581 | </para></listitem> |
| 565 | </itemizedlist> | 582 | </orderedlist> |
| 566 | The following sub-sections describe how to configure | 583 | The following sub-sections describe how to configure |
| 567 | the plug-in. | 584 | the plug-in. |
| 568 | <note> | 585 | <note> |
| @@ -784,7 +801,7 @@ | |||
| 784 | </para> | 801 | </para> |
| 785 | 802 | ||
| 786 | <para> | 803 | <para> |
| 787 | Click the "Apply" and "OK" to save your plug-in | 804 | Click "Apply and Close" to save your plug-in |
| 788 | configurations. | 805 | configurations. |
| 789 | </para> | 806 | </para> |
| 790 | </section> | 807 | </section> |
| @@ -822,17 +839,15 @@ | |||
| 822 | click "Next". | 839 | click "Next". |
| 823 | </para></listitem> | 840 | </para></listitem> |
| 824 | <listitem><para> | 841 | <listitem><para> |
| 825 | Expand | 842 | Expand "Yocto Project SDK Autotools Project". |
| 826 | <filename>Yocto Project SDK Autotools Project</filename>. | ||
| 827 | </para></listitem> | 843 | </para></listitem> |
| 828 | <listitem><para> | 844 | <listitem><para> |
| 829 | Select <filename>Hello World ANSI C Autotools Projects</filename>. | 845 | Select "Hello World ANSI C Autotools Projects". |
| 830 | This is an Autotools-based project based on a Yocto | 846 | This is an Autotools-based project based on a Yocto |
| 831 | template. | 847 | template. |
| 832 | </para></listitem> | 848 | </para></listitem> |
| 833 | <listitem><para> | 849 | <listitem><para> |
| 834 | Put a name in the | 850 | Put a name in the "Project name:" field. |
| 835 | <filename>Project name:</filename> field. | ||
| 836 | Do not use hyphens as part of the name | 851 | Do not use hyphens as part of the name |
| 837 | (e.g. <filename>hello</filename>). | 852 | (e.g. <filename>hello</filename>). |
| 838 | </para></listitem> | 853 | </para></listitem> |
| @@ -886,21 +901,15 @@ | |||
| 886 | </para></listitem> | 901 | </para></listitem> |
| 887 | <listitem><para> | 902 | <listitem><para> |
| 888 | Make or verify your configurations for the | 903 | Make or verify your configurations for the |
| 889 | project and click "OK". | 904 | project and click "Apply and Close". |
| 890 | </para></listitem> | 905 | </para></listitem> |
| 891 | <listitem><para> | 906 | <listitem><para> |
| 892 | Right-click in the navigation pane and | 907 | Right-click in the navigation pane and select |
| 893 | select "Reconfigure Project" from the pop-up menu. | 908 | "Reconfigure Project" from the pop-up menu. |
| 894 | This selection reconfigures the project by running | 909 | This selection reconfigures the project by running |
| 895 | <filename>autogen.sh</filename> in the workspace | 910 | <ulink url='https://en.wikipedia.org/wiki/GNU_Build_System'>Autotools GNU utility programs</ulink> |
| 896 | for your project. | 911 | such as Autoconf, Automake, and so forth in the |
| 897 | The script also runs | 912 | workspace for your project. |
| 898 | <filename>libtoolize</filename>, | ||
| 899 | <filename>aclocal</filename>, | ||
| 900 | <filename>autoconf</filename>, | ||
| 901 | <filename>autoheader</filename>, | ||
| 902 | <filename>automake --a</filename>, and | ||
| 903 | <filename>./configure</filename>. | ||
| 904 | Click on the "Console" tab beneath your source code | 913 | Click on the "Console" tab beneath your source code |
| 905 | to see the results of reconfiguring your project. | 914 | to see the results of reconfiguring your project. |
| 906 | </para></listitem> | 915 | </para></listitem> |
| @@ -914,7 +923,8 @@ | |||
| 914 | To build the project select "Build All" from the | 923 | To build the project select "Build All" from the |
| 915 | "Project" menu. | 924 | "Project" menu. |
| 916 | The console should update and you can note the | 925 | The console should update and you can note the |
| 917 | cross-compiler you are using. | 926 | cross-compiler you are using (i.e. |
| 927 | <filename>i586-poky-linux-gcc</filename> in this example). | ||
| 918 | <note> | 928 | <note> |
| 919 | When building "Yocto Project SDK Autotools" projects, | 929 | When building "Yocto Project SDK Autotools" projects, |
| 920 | the Eclipse IDE might display error messages for | 930 | the Eclipse IDE might display error messages for |
| @@ -934,8 +944,9 @@ | |||
| 934 | <filename>File > New</filename> menu. | 944 | <filename>File > New</filename> menu. |
| 935 | </para></listitem> | 945 | </para></listitem> |
| 936 | <listitem><para> | 946 | <listitem><para> |
| 937 | In the "New Folder" Dialog, select "Link to | 947 | In the "New Folder" Dialog, click the "Advanced" |
| 938 | alternate location (linked folder)". | 948 | button and then activate "Link to |
| 949 | alternate location (linked folder)" button. | ||
| 939 | </para></listitem> | 950 | </para></listitem> |
| 940 | <listitem><para> | 951 | <listitem><para> |
| 941 | Click "Browse" to navigate to the include | 952 | Click "Browse" to navigate to the include |
| @@ -944,9 +955,6 @@ | |||
| 944 | configuration preferences. | 955 | configuration preferences. |
| 945 | </para></listitem> | 956 | </para></listitem> |
| 946 | <listitem><para> | 957 | <listitem><para> |
| 947 | Click "OK". | ||
| 948 | </para></listitem> | ||
| 949 | <listitem><para> | ||
| 950 | Click "Finish" to save the linked folder. | 958 | Click "Finish" to save the linked folder. |
| 951 | </para></listitem> | 959 | </para></listitem> |
| 952 | </orderedlist> | 960 | </orderedlist> |
| @@ -988,8 +996,8 @@ | |||
| 988 | <filename>rpcbind</filename>, follow the | 996 | <filename>rpcbind</filename>, follow the |
| 989 | suggestions to get the service running. | 997 | suggestions to get the service running. |
| 990 | As an example, on a new Ubuntu 16.04 LTS | 998 | As an example, on a new Ubuntu 16.04 LTS |
| 991 | installation, you must do the following in | 999 | installation, you must do the following in a new |
| 992 | order to get QEMU to launch: | 1000 | shell in order to get QEMU to launch: |
| 993 | <literallayout class='monospaced'> | 1001 | <literallayout class='monospaced'> |
| 994 | $ sudo apt-get install rpcbind | 1002 | $ sudo apt-get install rpcbind |
| 995 | </literallayout> | 1003 | </literallayout> |
