• Пожаловаться

Doug Abbott: Embedded Linux development using Eclipse

Здесь есть возможность читать онлайн «Doug Abbott: Embedded Linux development using Eclipse» весь текст электронной книги совершенно бесплатно (целиком полную версию). В некоторых случаях присутствует краткое содержание. год выпуска: 2009, ISBN: 978-0-7506-8654-9, издательство: Elsevier, категория: Программирование / ОС и Сети / Программы / на английском языке. Описание произведения, (предисловие) а так же отзывы посетителей доступны на портале. Библиотека «Либ Кат» — LibCat.ru создана для любителей полистать хорошую книжку и предлагает широкий выбор жанров:

любовные романы фантастика и фэнтези приключения детективы и триллеры эротика документальные научные юмористические анекдоты о бизнесе проза детские сказки о религиии новинки православные старинные про компьютеры программирование на английском домоводство поэзия

Выбрав категорию по душе Вы сможете найти действительно стоящие книги и насладиться погружением в мир воображения, прочувствовать переживания героев или узнать для себя что-то новое, совершить внутреннее открытие. Подробная информация для ознакомления по текущему запросу представлена ниже:

Doug Abbott Embedded Linux development using Eclipse

Embedded Linux development using Eclipse: краткое содержание, описание и аннотация

Предлагаем к чтению аннотацию, описание, краткое содержание или предисловие (зависит от того, что написал сам автор книги «Embedded Linux development using Eclipse»). Если вы не нашли необходимую информацию о книге — напишите в комментариях, мы постараемся отыскать её.

• Details the Eclipse Integrated Development Environment (IDE) essential to streamlining your embedded development process • Overview of the latest C/C++ Development toolkit • Includes case studies of eclipse use including Monta Vista, LynuxWorks, and WindRiver

Doug Abbott: другие книги автора


Кто написал Embedded Linux development using Eclipse? Узнайте фамилию, как зовут автора книги и список всех его произведений по сериям.

Embedded Linux development using Eclipse — читать онлайн бесплатно полную книгу (весь текст) целиком

Ниже представлен текст книги, разбитый по страницам. Система сохранения места последней прочитанной страницы, позволяет с удобством читать онлайн бесплатно книгу «Embedded Linux development using Eclipse», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

Тёмная тема

Шрифт:

Сбросить

Интервал:

Закладка:

Сделать

Executable: //eclipse

Optional command line arguments:

4. Select an appropriate icon.

5. Click OK.

Then to start Eclipse, simply click on the launch button.

Go ahead and give it a try using any of the three mechanisms cited above. If you get to the screen shown in Figure 2.2, Eclipse is working. Click Cancelto terminate. You can skip the rest of this chapter and move on to the next, unless you want to try out Eclipse under Windows. If Eclipse failed to launch, it’s probably because the JVM is either not present or not compatible. Continue with the next section.

Figure 22 Workspace selection dialog 231 Installing and Using a Java - фото 3

Figure 2.2: Workspace selection dialog.

2.3.1 Installing and Using a Java Virtual Machine (JVM)

JVMs can be downloaded from http://www.java.com/en/. Click on the Free Java Downloadbutton. This takes you to a Java Downloads for Windows page. Click on All Java Downloads. This brings up a page with downloads of the latest releases of Solaris, Linux, and Mac OS, as well as Windows. At the time this was being written, the latest release was Java 6 update 3. While Eclipse does not officially support this version, it does appear to work OK. Other versions of Java are available by clicking on Other Java Versions.

Download the Linux (self-extracting) file to the same directory where you downloaded Eclipse. The file is an executable, so execute it. You’ll be asked to read and accept the Sun Microsystems Binary Code License Agreement for the Java SE runtime environment (JRE) version 6. The JVM is then extracted to jre1.6.0_03/. Note that if you choose to use a different version, the directory name changes accordingly.

To be sure the new version of the Java is the one that gets executed, it must appear in your path before the default version. You can add //binto the beginning of your $PATH environment variable. Or you can create a link to the new Java executable in a directory that already appears in your $PATHahead of the directory holding the default version.

Execute the shell command whereis javato determine where the default version is located. Then execute echo $PATH to find a suitable directory that appears earlier in your path. In my case, the default java is in /usr/binand it turns out that /usr/local/binshows up just ahead of that. So I put a link to /usr/local/jre1.6.0_03/bin/javain /usr/local/bin.

You can skip the rest of this chapter and move on to the next, unless you want to try out Eclipse under Windows.

2.4 Installing Eclipse Under Windows

Go back to the Eclipse downloads page, but this time select the Windowslink and download the file to an appropriate destination directory. In this case the file is a .zipthat must be opened with WinZip. Extract the .zipfile to the directory of your choice. This results in almost the same directory structure as that shown in Figure 2.1. The about_files/subdirectory is missing.

Start Eclipse from a file manager window by double-clicking eclipse.exein the eclipse/directory. If your Windows system has a JVM, and most likely it does, you should see a screen like Figure 2.3. For now, click Cancel.

Figure 23 Workspace selection dialog under Windows Youll probably want to - фото 4

Figure 2.3: Workspace selection dialog under Windows.

You’ll probably want to create a shortcut on the desktop for starting Eclipse. Rightclick on eclipse.exeand select Create Shortcut. This creates a shortcut in the eclipse/directory. Drag that over to the desktop.

Note incidentally that Eclipse does not use the standard Windows program installation mechanism, and it doesn’t put anything into the Windows registry. To uninstall Eclipse, simply delete the eclipse/directory.

2.4.1 Installing a JVM

If Eclipse did not start correctly, your system may not have a JVM. Go to http://java.com/en and click the Free Java Downloadbutton. Java offers two different mechanisms for installation under Windows — online and offline. Clicking the link Windows XP/Vista/2000/2003 Onlinedownloads a small (360 KB) executable, jre6u3-windows-i586-p-iftw.exe. This program in turn installs the rest of the JVM from the web.

You are given the opportunity to view, and then either to accept or to decline the terms of the Java license. Assuming you accept, the installation proceeds without any further user input required.

Alternatively, you can click Windows XP/Vista/2000/2003 Offline, which downloads a much larger (about 13.8 MB) executable, jre-6u3-rc-windows-i586.exe. This is the entire JVM package. The offline installation offers additional options—the Google toolbar and desktop—and more control over the installation process. A custom setup screen allows you to select the options to be installed. Unless you’re an “advanced” user, it’s probably best to accept the defaults.

Following installation, restart your browser and go back to http://java.com/en/. Select the Advancedtab and click the link Do I have Java?to bring up the Verify Installationpage. Click the Verify Installation button. This should confirm that the JVM is properly installed. If not, you may need to configure the JVM.

Open the Windows Control Panel and double-click the Javaicon (the coffee cup). Select the Advancedtab and click on the + next to Default Java for browsers. Check all the boxes on that branch to enable Java for the web browsers on your system.

2.5 Embedded Software Development on Windows

Remember that our objective here is to use Eclipse for developing software for embedded devices, with an emphasis on those that are Linux-based. While it is possible to do embedded development under Windows, it’s somewhat more difficult because Windows, by itself, lacks a number of tools and services that are necessary, or at least highly desirable, for embedded software development.

Windows XP, other than the server edition, lacks network server facilities such as NFS (network file system) and TFTP (trivial file transfer protocol) that are very useful for debugging code on a target board. But most importantly, Windows lacks a tool chain for building software — a compiler, linker, assembler, libraries, etc.

The most widely used tool chain for embedded development is the GNU tool chain, which comes standard with just about every Linux distribution. There are two common approaches to adding a GNU tool chain to Windows: Cygwin and MinGW.

2.5.1 Cygwin

Cygwin is described as a “Linux-like environment” for Windows. It was originally developed in 1995 by Cygnus Solutions, which was subsequently purchased by Red Hat. Red Hat now maintains both the open source version and a licensable, proprietary version for people who want to maintain their own applications as proprietary.

Cygwin consists of two basic parts:

• A Windows DLL (cygwin1.dll) that acts as a Linux API emulation layerproviding substantial Linux API functionality.

• A collection of tools that provide Linux look-and-feel. Among these tools is the GNU tool chain.

The primary motivation for Cygwin is to provide Unix/Linux functionality in a Windows environment, but it is not a way to run native Linux apps under Windows. Applications must be rebuilt from source to run in the Cygwin environment.

Читать дальше
Тёмная тема

Шрифт:

Сбросить

Интервал:

Закладка:

Сделать

Похожие книги на «Embedded Linux development using Eclipse»

Представляем Вашему вниманию похожие книги на «Embedded Linux development using Eclipse» списком для выбора. Мы отобрали схожую по названию и смыслу литературу в надежде предоставить читателям больше вариантов отыскать новые, интересные, ещё не прочитанные произведения.


Отзывы о книге «Embedded Linux development using Eclipse»

Обсуждение, отзывы о книге «Embedded Linux development using Eclipse» и просто собственные мнения читателей. Оставьте ваши комментарии, напишите, что Вы думаете о произведении, его смысле или главных героях. Укажите что конкретно понравилось, а что нет, и почему Вы так считаете.