Home

“Embedded Linux development made easier” User`s manual

image

Contents

1. 4 4 6 Debugging a remote application The same GUI shown in Section 4 4 5 can be used also to debug applications running on the target In practice the Eclipse frontend connects to a local gdb client which in turn connects to a gdbserver running on the target The communication is done through Ethernet and the target must have a gdbserver installed To debug the application follow the next steps 1 10 First of all edit the Makefile of the project and add the g option to gcc parame ters This option compiles the project adding all symbolic information needed for debugging Usually the option is appended to either the CFLAGS or the CPPFLAGS variables Save the Makefile Select your target as explained in Section 4 4 2 Build the project as explained in Section 4 4 3 Transfer the binary of the application to the target e g using FTP TFTP HTTP LRZ Connect to the target using a serial connection see Section 4 6 and run the application using the following command gdbserver lt Host IP gt 1234 application Note 4 4 14 1234 is the default port but you can use different values Click the Debug icon as shown in Figure 4 16 and select the Debug configurations item The first time you debug the application you have to create the configuration To do that click twice on the Scratchbox2 application item as shown in Figure 4 17 A new configuration for your application will appear
2. ta vmware Figure 2 1 Initial dialog of VMWare This virtual machine may have been moved or copied In order to configure certain management and networking features VMware Workstation needs to know which Did you move this virtual machine or did you copy it If you don t know answer I copied it O1 moved it Cex Cem Figure 2 2 Starting VMWare 10 3 Usage from shell This section explains how to use the main commands of Evelin SDK The path of the commands is automatically appended to user s bashrc file during the installation 3 1 Entering the environment Type sb2 config 1 to know the list of available targets Type sb2 config d lt target gt to set the default target Type sb2 to enter the Scratchbox environment using the default target To exit the environment just type exit You can also specify a specific target using sb2 t lt target gt Type sb2 lt command gt to execute a command inside Scratchbox using the default target This command runs the given command inside Scratchbox without the need of entering the environment You can also specify a specific target using sb2 t target command 3 2 Compiling and building a project Once entered the environment as explained in the previous section you can run the typical commands i e gcc make etc to build your application Depending on the chosen target Evelin SDK will invoke the right toolcha
3. EVOLIN 2 Embedded Linux development made easier User s manual Version 4 2 March 5 2012 SUE 15 2 AAA EVIDENCE About Evidence S r l Evidence is a company operating in the field of software for embedded real time systems It started in 2002 as a spin off company of the Real Time Systems ReTiS Lab of the Scuola Superiore Sant Anna Pisa Italy Today Evidence is a dynamic company having collaborations in the field of electronics telecommunications automotives and industrial automation People at Evidence are experts in the domain of embedded and real time systems with a deep knowledge on the design and specification flow of embedded software especially for the embedded market Besides providing consultancy services Evidence also provides BSPs based on Linux for embedded devices evaluation boards featuring most innovative 8 16 and 32 bit microcontrollers for the embedded market development tools for making embedded software development easier and tools for the schedulability analysis of real time tasks running on your final product For more information see http www evidence eu com This document is Copyright 2005 2011 Evidence S r l Information and images contained within this document are copyright and the property of Evidence S r l All trademarks are hereby acknowledged to be the properties of their respective owners The information text and graphics contained in this document are provided f
4. Ewarooine ne Chapter 4 Usage from Eclipse 25 EN no launch history Run As onfiguration Organize Favorites Figure 4 12 Running a project Create manage and run configurations Filter matched 2 of 2 items Figure 4 13 Configuration for running a project 23 RAA EVIDENCE f arap ne Chapter 4 Usage from Eclipse myproject Configuration earch Proc EU i ll Filter matched 3 of 3 items Figure 4 14 Configuration for running a project 2 Figure 4 15 How to terminate a running application 24 AAA EVIDENCE Chapter 4 Usage from Eclipse 4 4 5 Debugging a local application Eclipse provides a GUI to debug your application using an internal gdb Internally the debug works as a client server remote debugging the Eclipse gdb client connects to the Qemu gdb server which runs the application The communication between client and server is made through a network port of the host machine To debug the application follow the next steps 1 First of all edit the Makefile of the project and add the g option to gcc parame ters This option compiles the project adding all symbolic information needed for debugging Usually the option is appended to either the CFLAGS or the CPPFLAGS variables Save the Makefile Select your target as explained in Section 4 4 2 Build the project as explained in Section 4 4 3 Click the Debug icon as shown in Figure 4 1
5. as shown in Figure 4 18 Select the project you wish to debug in the Project box Select the project you wish to debug in the C C Application box Note 4 4 15 It would not be possible to select the project if it has not been already compiled 3l AAA EVIDENCE f Chapter 4 Usage from Eclipse 11 In the Main tab uncheck Connect process input output to a terminal 12 In the Debugger tab select e Debugger gdbserver Debugger e Connection TCP e Host name or IP address host IP address e Port number 1234 or any other value 13 In the Common tab uncheck Allocate console 32 AAA EVIDENCE f Chapter 4 Usage from Eclipse 4 5 New graphical projects The version of Eclipse installed with Evelin SDK already contains a plugin to design graphical applications using the QT framework 4 8 This section explains how to create a graphical application using the Eclipse IDE 4 5 1 Creating a new project To create a new project follow the next steps 1 Click on File New Project as shown in Figure 4 6 2 Select Qt gt Qt Gui Project as shown in Figure 4 26 Then click on Nezt 3 Specify the project name as shown in Figure 4 27 For instance we have supposed to use the name myproject Then click on Neat 4 The dialog shown in Figure 4 28 will appear Just click on Nezt 5 The dialog shown in Figure 4 29 will appear Just click on Finish 6 You then have to add the support for t
6. e Based on the Scratchbox2 2 project e Easy to use installer e Additional Scratchbox2 scripts AAs EVIDENCE Chapter 1 Introduction e Transparent cross compilation based on GNU gcc 6 e Target software emulation cpu transparency mechanism that allows to execute target binaries on the host platform through Qemu 3 Qemu is a generic and Open Source processor emulator which achieves a good emulation speed by using dynamic translation Qemu is automatically invoked by the environment when needed i e no intervention of the user is needed Note that Evelin SDK uses a proprietary version of Qemu with better support for big endian targets 7 e GUI based on the well known Eclipse IDE 5 with CDT 1 plugin for development of C and C programs Proprietary plugin for Scratchbox2 integration Graphical debugging of both host and target binaries Plugin to support the graphical design of QT based GUIs e Support for the following targets ARM7 ARMO little endian and big endian ARMII Renesas SH4 2 Installation 2 1 VMWare image Evelin SDK is available as VMWare 10 image based on Ubuntu 9 On this image the environment is already installed and configured so there is no need of installing it The VMWare image is compressed as 7 zip archive and it is located in the vmware directory A free client to extract the archive can be downloaded from http www T z21p orp In
7. Changing target for a given project 02 22006 20 Buikline the PROC loose eS SR EGRE ee eee RS 21 Bunnins L aono oe osd Se bebe eo hb be eRe He ee 23 Conligu ration for running a project sc e 9 be eee he edie ead 23 Configuration for running a project 2 coe cocco et eca aan 24 How to terminate a running application 24 Debuseine a DONDE sce oko ooo RR ORDER X OER wR ons 26 Creating the configuration for debugging a project 27 Creating the configuration for debugging a project 2 27 Changing the port used for debugging 28 Changing perspective to Debug a a 28 Debugging on unsupported target ee ee 28 Debug TUNDIDE 25 oe dom ok drum ERO xc EDO ch d Roo oes 29 IT gl so MMC I 29 Terminating a debugged application ls 29 Changing perspective to C C 2 2 2 2 30 Selecting a QT project lt o sa ew dos Roe e RR ORO we eR Rn 34 How to specify the project name less 34 Dubia ST publ sore 8 GR XC RETE ORO GODS KO C Xe EORR OR c 35 IR lor QT projeti i xum xe me khe mor ue edo oe Ee Te e e 35 How to add support for the specific target ls 36 Selecting the specific target a 37 Kon OT e e a n a ew a E a ea ee oe ee AR H ii 38 How to design the GUL aoaaa 3 9 Ro GR SAS 39 Setting the properties of QT widgets a 40 RAA EVIDENCE List of Figures 4 35 Sett
8. 6 and select the Debug configurations item The first time you debug the application you have to create the configuration To do that click twice on the Scratchbox2 application item as shown in Figure 4 17 A new configuration for your application will appear as shown in Figure 4 18 Select the project you wish to debug in the Project box Select the project you wish to debug in the C C Application box Note 4 4 9 It would not be possible to select the project if it has not been already compiled The Debugger tab shown in Figure 4 19 allows to set the network port of the operating system used for debugging The default value is 1234 You can change this value according to your needs Note 4 4 10 This feature allows to debug more applications simultaneously by using a different port for each debugged application 25 RAA EVIDENCE Chapter 4 Usage from Eclipse 10 11 12 13 14 Note 4 4 11 See the etc services file to know which ports are busy because already used by other services Click the Debug button The first time you start a debugging session the window shown in Figure 4 20 will appear Check the combobox and press the Yes button Note 4 4 12 Debugging on some targets is not yet supported For those targets the window shown in Figure 4 21 will appear At this point the window shown in Figure 4 22 will appear Refer to Eclipse documentation for information
9. about how debug your application Figure 4 23 briefly shows some of the features about debugging offered by the interface To terminate the application click the icon shown in Figure 4 24 To return to the C C perspective click the icon on the top right corner of the window shown in Figure 4 25 Note 4 4 13 The application can be debugged even if compiled for a target different than the host machine Evelin SDK in fact remembers which target the application has been compiled for and automatically starts Qemu to debug your application This way it is possible to run and debug applications compiled for an embedded microcontroller directly on the host PC m O C C myproject src main c Eclipse Plat File Edit Refactor Navigate Search Run Project Window Help Iti Ed ee ine tiv 63v civ Gr amp v Sy 13x QE Qn Sun i i lgivair to Oy Oy Project Explorer 53 EXHI la main c N0 launch history As wv D ss ris Debug As ly generated by Evelin SDK 2 w DeLee OaS lt 1nfo evidence eu com gt gt i n Binaries Organize Favorites gt W Includes include lt stdio h gt src include lt stdlib h gt b main c gt fay main o arm be int main P main arm be unsigned long int i 0 j for i Makefile if i 10000 printf i lu n i return 0 Figure 4 16 Debugging a project 26 RAA EVIDENCE f ewarooine ne Chapter 4 Usage from Ec
10. ction This manual contains the instructions for the installation and the usage of Evelin SDK Evelin which stands for EVidence Embedded LINuz is the suite of tools for embedded Linux systems created and maintained by Evidence S r l 1 1 Description of the SDK Evelin SDK is based on the Scratchbox2 2 environment Scratchbox2 is a very powerful environment that allows to develop target binaries in a way completely transparent to the developer In particular Scratchbox2 is a cross compilation toolkit developed by the Open Source community and designed to make embedded Linux application development easier It provides a full set of tools to inte grate and cross compile an entire Linux distribution Once the target has been chosen Scratchbox2 allows to configure and compile the binaries regardless of the target ma chine and without worrying about cross compilation This way even the higher level software based on GNU Autotools is capable of compiling transparently Evelin SDK includes improvements to the original Scratchbox2 environment patches to fix existing bugs toolchains for new target architectures plugin for integration with the Eclipse 5 IDE etc Evidence also made some modifications to the original envi ronment in order to let it capable of supporting new architectures Last but not least Evidence provides technical support for its environment 1 2 Technical features Evelin SDK has the following technical features
11. desktop just click the icon Note 4 2 1 The installer creates a default workspace located in the sim lt username gt ev sdk workspace directory 4 3 Basic usage 4 3 1 Disabling automatic build We strongly suggest to disable the automatic building of the project by clicking on the Project menu and disabling i e uncheck the related item as shown in Figure 4 1 4 3 2 Visible hidden windows The list of visible hidden windows can be easily changed at any time by clicking on Window Show View as shown in Figure 4 2 13 RAA EVIDENCE l arap TECHNOLOGY Chapter 4 Usage from Eclipse Open Project Close Project ii Build All Build Configurations Build Project Build Working Set Clean Build Autornatically Make Target Properties Figure 4 1 Disabling automatic build Therefore if at some time you cannot see a window anymore just click on this menu to make the window visible New Editor Open Perspective E Show Vie Fa C C Projects Console Shift Alt Q C include lt stdi pU Me include stdl5 ve Perspe AS Reset Perspective Make Targets i i Close Perspective K or E R L Shift Alt Q O unsigned l E E Problems Shift Alt Q X for 443 Negation i Project Explorer if LIL Ei Properties references p Search Shift Alt Q S return 0 Z Tasks Include Browser Other Shift Alt Q Q Figure 4 2 Setting visible hidden windows 4 3 3 Eclipse persp
12. e xo RR mk E RO oe EEO 1413 Building th PORE se soea x RR Ce Re xe xx re 4 4 4 Running the application rn 44 5 Debugging a local application 2 6 66 ee eae eas 4 4 6 Debugging a remote application 45 New graphical projects lt o ss hoo o RR Root ee Poe es 4 5 1 Creating a new project ooo es 4 5 2 Designing the graphical interface 45 8 Building th project lt o ssaa ewone e ar Rt AG Derialconnectign unu saa de g Awe e Swe Re De ee Eee 5 Known issues Dl Installation s 202 oso eke a ke ae oe omo RF ee RSS E X gos JNN List of Figures 2 1 2 2 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 4 10 4 11 4 12 4 13 4 14 4 15 4 16 4 17 4 18 4 19 4 20 4 21 4 22 4 23 4 24 4 25 4 26 4 21 4 28 4 29 4 30 4 31 4 32 4 33 4 34 Duta dialog ot YMWare s s eaten ae eae eee RR RE ERRORES 10 Starine VMWAE cu oso EG ee RRO RRR 9 Ra ex K RISO AS E ers 10 Disabling automatic bud 2x9 kk o RR To E OXox oy DES 14 Setting visible hidden windows lll 14 Changing perspective 2 56 245 zoo oo oon Ro ee ED 15 Scratchbox preferences ooa ooa a en 16 Changing Seratchbox path suos eo o o o Rows 16 Creating a new project on Eclipse llle 17 Creating a Scratchbox project on Eclipse ills 18 Choosing Scratchbox path and default target 18 PROS PODEN oS aeuum XE DOES Kec oe OUR ORO C Deo de ed 19
13. ectives Eclipse has a set of views called perspectives Each perspective allows to make certain operations or see certain kind of information 14 RAA EVIDENCE KuREDEIR TRE NOLO UN Chapter 4 Usage from Eclipse To change perspective just click on the icons on the top right corner of the main window as shown in Figure 4 3 S stdio h stdlib h Figure 4 3 Changing perspective Note 4 3 1 The list of running processes shown in Figure 4 22 can be seen at any time by entering the Debug perspective 15 EMaEDDINe ICCHOLOGY Chapter 4 Usage from Eclipse 4 3 4 Scratchbox path To change the Scratchbox path click on Window Preferences as shown in Figure 4 4 Then click on Scratchbox2 Preferences as shown in Figure 4 5 Note 4 3 2 The default path should be fine in most situations 3 New Window Customize Perspective Save Perspective As Reset Perspective Close Perspective Close All Perspectives Navigation Figure 4 4 Scratchbox preferences C x JC Cancel Figure 4 5 Changing Scratchbox path 16 RAA EVIDENCE EMBEDDING TECHNO 106v Chapter 4 Usage from Eclipse 4 4 New shell projects 4 4 1 Creating a new project To create a new project follow the next steps 1 Click on File New Project as shown in Figure 4 6 2 Select C New Scratchboz2 project as shown in Figure 4 7 3 Specify the project name 4 Select the defa
14. election To change the target for a given project click with the right button of the mouse on the project and select Properties as shown in Figure 4 9 Then click on Scratchbox2 Options as shown in Figure 4 10 Note 4 4 4 This allows to specify for which target the binary will be compiled for Note 4 4 5 Host refers to the host architecture Choose the target then click on Apply and then on OK XA Export Build Project Clean Project amp Refresh Close Project Close Unrelated Projects Build Configurations Make targets Figure 4 9 Project properties 19 AAA EVIDENCE EMBEDDING TECHNOLOGY Chapter 4 Usage from Eclipse File automatically generated by Evelin SOK 2 Srl lt info evidence eu by Evidence om gt k include lt stdio h gt include lt stdlib h gt Figure 4 10 Changing target for a given project 20 RAA EVIDENCE f arap TECHNOLOGY Chapter 4 Usage from Eclipse 4 4 3 Building the project Before building the project disable automatic build of the project as explained in Section 4 3 1 Then to build the project click with the right key of the mouse on the project name inside the left frame as shown in Figure 4 11 Select Clean Project followed by Build Project New Open in New Window Copy Paste X Delete gt Remove from Context Shift Ctri At Down Move Rename Clean Project Refresh Close Projec
15. he specific target Click with the right key of the mouse on the project name inside the left frame as shown in Figure 4 30 Select Add Scratchbox 2 support 7 A dialog similar to the one shown in Figure 4 31 will appear Select your target and click Finish 33 Chapter 4 Usage from Eclipse EMBEDDING TECHNOLOGY RAA EVIDENCE Select a wizard Create a Qt Gui application project Figure 4 26 Selecting a QT project Qt Gui Project Create a new Qt Gui Application Project Location home cloud ev sdk bin eclipse workspace myproject Bre Figure 4 27 How to specify the project name 34 EMBEDDING TECHNOLOGY Chapter 4 Usage from Eclipse LJ Qt Gui Project Setup the class and file names myproject cpp Figure 4 28 Dialog for QT project Qt Gui Project Select the Qt modules L Back Next gt seme SLE GERE Figure 4 29 Dialog for QT project 35 RAA EVIDENCE l arap ne Chapter 4 Usage from Eclipse Nl amp Remove from Context Shift Ctrl Alt Down Move Rename F2 Build Project Clean Project 2 Refresh Close Project Close Unrelated Projects Build Configurations Make targets Index Add ScratchBox 2 support Run As Debug As Team Compare With Restore from Local History Properties Figure 4 30 How to add support for the specific target 36 RAA EVIDENCE l arap ne Chapter 4 Usage from Eclipse Scratchbox 2 projec
16. in and will build the application for such target In other words the application can be compiled in the common way as if we were compiling it for our host architecture Evelin SDK will do the rest for us 11 AAA EVIDENCE Chapter 3 Usage from shell 3 3 Running a compiled binary Once the application has been compiled as explained in the previous section it can be run on the host architecture even if the binary has been compiled for a target architecture Evelin SDK in fact remembers which target the application has been compiled for and automatically starts Qemu to run your application This way it is possible to run and debug applications compiled for an embedded microcontroller directly on the host PC Note 3 3 1 When using Eclipse do not use the environment from shell otherwise the commands from shell may interfere with Eclipse settings 12 4 Usage from Eclipse This section explains how to use the GUI based on the Eclipse IDE 5 provided with the SDK 4 1 Requirements In order to run the development environment a Java 1 6 virtual machine is needed This means that the package sun java6 jre must be installed The installation script will try to install the virtual machine automatically from the repositories 4 2 Running the GUI To start the GUI type ev sdk eclipse without any parameter on a X11 terminal Alternatively if an icon Evelin SDK Eclipse has been created at installation time on your
17. ing the size of the QT main window 40 4 36 How to enable a serial connection 1 2 04 42 4 37 How to enable a serial connection 2 204 43 4 38 Settings for the serial connection 1 s oe s 824s o we ves 43 4 39 Settings for the serial connection 2 lll 44 About this document This document explains how to use the Evelin SDK development environment Function of the document The function of this document is to provide information about the usage of the environ ment to developers who are going to use it Document history Version Date Author Company Change Description 2 10 Alpha Sept 15th 2008 Claudio Scordino Evidence Srl Initial version 2 10 Beta Oct 21st 2008 Claudio Scordino Evidence Srl Second draft 2 10 Beta2 Nov 20th 2008 Claudio Scordino Evidence Srl Third draft 2 10 Beta3 Jan 22nd 2009 Claudio Scordino Evidence Srl Fourth draft 2 10 0 Jan 29th 2009 Claudio Scordino Evidence Srl First version 2 11 0 Dec 23rd 2009 Claudio Scordino Evidence Srl QT and serial 2 11 1 Apr 20th 2010 Claudio Scordino Evidence Srl Remote debugging 3 0 Dec 20th 2010 Alessandro Biasci Evidence Srl Ubuntu 10 04 LTS support 4 2 Feb 20th 2012 Claudio Scordino Evidence Srl Update Acronyms BSP Board Support Package SDK Software Development Kit 1 Introdu
18. lipse Create manage and run configurations j Filter matched 4 of 4 items Create manage and run configurations E myproject Configuration Search Pole Filter matched 5 of 5 items Figure 4 18 Creating the configuration for debugging a project 2 2T ewarbbine TECHNOLOGY Chapter 4 Usage from Eclipse myproject Configuration localhost 1 Filter matched 5 of 5 items Figure 4 19 Changing the port used for debugging Figure 4 20 Changing perspective to Debug Figure 4 21 Debugging on unsupported target 28 RAA EVIDENCE l arap ne Chapter 4 Usage from Eclipse hread 0 Suspended mai AC armeb main 22 01 09 14 33 home cloud ev sdk tests test fstatAvorkspace318316 metadata armeb_gdb_wre File automatically generated by Evelin SIK 2 by Evidence Srl lt info evidence ey com gt 9 stdlib h main int include lt stdio h gt include lt stdlib h gt int main unsigned long int i 6 for ei printf i Kun i return 0 File automatigz by Evidence P mano int fer pei if 1 1 10000 printf i law i Figure 4 23 Debug features chbox2 application 9 15 22 Suspended laiis stant Figure 4 24 Terminating a debugged application 29 arap TECHNOLOGY Chapter 4 Usage from Eclipse Figure 4 25 Changing perspective to C C 30 AAA EVIDENCE Chapter 4 Usage from Eclipse
19. lready contains a plugin to connect through a serial connection to the target To enable this feature follow the next steps 1 Click on Window Show view other as shown in Figure 4 36 Then select Terminal Terminal as shown in Figure 4 37 A new tab called Terminal will be created in the panel below Click on the Settings icon of the Terminal tab as shown in Figure 4 38 A new dialog will be opened Select a Serial connection as shown in Figure 4 39 Window New Window S New Editor Open Perspective Show View El Console Shift Alt Q C 3 Navigator c Outline Shift Alt Q O E Problems Shift Alt Q X ts Project Explorer ul Properties 7 Search Shift Alt Q S Customize Perspective Save Perspective As Reset Perspective Close Perspective Close All Perspectives Navigation Shift Alt Q Q Preferences Figure 4 36 How to enable a serial connection 1 42 EMaEDDINe ICCHNOLOGY Chapter 4 Usage from Eclipse Terminal Figure 4 37 How to enable a serial connection 2 Figure 4 38 Settings for the serial connection 1 43 ewarboine TECHNOLOGY Chapter 4 Usage from Eclipse Terminal Figure 4 39 Settings for the serial connection 2 44 5 Known issues This section contains the list of known issues Please check this list before sending any help request to the technical support services 5 1 Installatio
20. n Note 5 1 1 Evelin SDK may stop working if QTCreator is installed after it In this case overwrite the installed copy by re installing Evelin SDK 45 Bibliography Eclipse C C Development Tooling CDT http www eclipse org cdt Scratchbox 2 http www freedesktop org wiki Software sboz2 Fabrice Bellard Qemu Open Source Processor Emulator http bellard org gemu Jasmin Blanchette and Mark Summerfield C GUI Programming with Qt 4 2nd edition Prentice Hall 2008 Eclipse an open development platform http www eclipse org GNU Compiler Collection http gcc gnu org Qemu Mailing List gemu armeb linux stat64 syscall fiz http lists gnu org archive html qgemu devel 2006 09 msg00137 html Nokia Qt A Cross platform application and UI framework http qt nokia com Ubuntu http www ubuntu com VMWare http www umware com 46
21. or information purposes only by Evidence S r l Evidence S r l does not warrant the accuracy or completeness of the information text and other items contained in this document Matlab Simulink Mathworks are registered trademarks of Matworks Inc Microsoft Windows are registered trademarks of Microsoft Inc Java is a registered trademark of Sun Microsystems in the USA and other countries and are used under license All other trademarks used are properties of their respective owners This document has been written using IATEX Contents 1 Introduction 11 Deer oi the SDE ok ye eee RO 4x AX RO AC De R EE ed 1 2 Technical features cao sac eraru aroa ka ooa ca arara 2 Installation 21 VMWare image 2059 993 439 499 109 x OES E Oe Popes ew eod 3 Usage from shell 3 1 Entering the environment lens 3 2 Compiling and building project 22e 3 3 Running a compiled binary 2 222 RR RA 4 Usage from Eclipse Al OTRE cuna E sock DA doe Ree ooh e acte Be m de oo Punomg Epe tel so cs siare KOK ee er d bum oe do Rex XR de EH e A A x ue Hd we x Be oe ee ee ee ee Ted 4 3 1 Disabling antomatic build s s 26 64 29 o oo os 432 Visble hidden windows 222943 oRx 9 Rom 9s 4 3 5 Eclipse perspectives scs sr op OR ER es x9 RS Oy N AZA Perens path o duo E Eee ee ee XE Bee eee oe AA New shell projects lt ee caging ooo EG RE E Go REO us ddi Creating a new projeti 2 225439 aaO 112 Target s lection gt sc ce cora de
22. order to use the vmware image follow the next steps 1 2 10 11 Download the vmplayer from http www vmware com products player Install vmplayer Download the 7 zip file archiver from http www 7 zip org Install the 7 zip file archiver Extract the vmware evelin sdk 7z archive using the 7 zip file archiver This will create a directory called evelin sdk Run vmplayer A dialog similar to the one shown in Figure 2 1 will appear Click on Open and locate the vmx image inside the evelin sdk directory The first time you run the image a dialog similar to the one shown in Figure 2 2 will appear Click on I copied it At this point the boot of the Ubuntu image will start Login using user as both login and password Finally run Evelin SDK as explained in the following chapters RAA EVIDENCE SHSEDDINSUIECHNOLOS Chapter 2 Installation VMware Player US vmware EU Browse for available virtual machines When you select lt virtual machine it opens in this VMware Player window Download a virtual appliance from VMware Virtual Appliz Marketplace You can then open it in VMware Player Download Recent Virtual Machines amp bubuntu amp iOdesktop Gbubuntu804desktop Featured Virtual Appliance Accellion File transfer virtual appliance V M W a re 5 An on demand file transfer solution that is secure econc Download and easy to use for end users and IT management
23. t Close Unrelated Projects Buid Configurations Make targets Index Bun As Debug As Profile As Team Compare With Restore from Local History Properties Figure 4 11 Building the project 21 AAA EVIDENCE Chapter 4 Usage from Eclipse 4 4 4 Running the application To run the application follow the next steps d Select your target as explained in Section 4 4 2 Build the project as explained in Section 4 4 3 Click the Run icon as shown in Figure 4 12 and select the Run configurations item The first time you run the application you have to create the configuration To do that click twice on the Scratchbox2 application item as shown in Figure 4 13 A new configuration for your application will appear as shown in Figure 4 14 Select the project you wish to run in the Project box Select the project you wish to run in the C C Application box Note 4 4 6 It would not be possible to select the project if it has not been already compiled Click the Run button To terminate the application click the icon shown in Figure 4 15 Note 4 4 7 The application can be run even if compiled for a target different than the host machine Evelin SDK will automatically detect the type of binary and will start Qemu to run the application Note 4 4 8 The list of running processes shown in Figure 4 22 can be seen at any time by entering the Debug perspective 22 RAA EVIDENCE f
24. t options Here you choose the Scratchox 2 installation and the target CPU Figure 4 31 Selecting the specific target 37 AAs EVIDENCE Chapter 4 Usage from Eclipse 4 5 2 Designing the graphical interface To design the graphical interface of your application follow the next steps 1 Click twice on the file with ui extension in the left panel as shown in Figure 4 32 An empty form will appear on the central panel Click on the Qt C Widget tab as shown in Figure 4 33 The list of widgets will appear on the left panel Drag and drop your favourite widgets from the left panel to the central form To set the size of the QT form click on the QT C tab in the right dialog as shown in Figure 4 34 Then set the geometry of the form as shown in Figure 4 35 These values should be set equal to the size of the display of your target r3 File Edit Navigate Search Run Project Window Help JCS i Em e die Bs civ Gr lA Br Hr Or Qy i l Project Exp XN J Qt C Wi D BS wv v tS myproject Includes gt main cpp myproject cpp h Myproject h c myproject aso myproje t ui Cum Y Y Figure 4 32 Main QT form 38 AAA EVIDENCE EMBEDDING TECHNOLOGY Chapter 4 Usage from Eclipse G Layouts 5 Vertical Layout TH Horizontal Layout 833 Grid Layout Form Layout G Spacers 3 Wa Horizontal Spacer Vertical Spacer c Bu
25. ttons H es Push Button Tool Button Radio Button Check Box Command Link Button Button Box Item Views Model Based 5 List View 8 Tree View E Table View 1 Column View E Table Widget G Containers 3 7 Group Box C Scroll Area B3 Too Box E Tab Widget Stacked Widget Frame Widget MdiArea EG Dock Widget Figure 4 33 How to design the GUI 39 RAA EVIDENCE l arap TECHNOLOGY Chapter 4 Usage from Eclipse myprogram ui 32 QObject objectName myprogramClass QWidget windowMod NonModal E enabled E l meme h 0 400 x 300 S With 400 B Po Preferre i size Height 0 olic Prefe Preferre dth L li maximum Siz Width 16777215 Height 16777215 myprogram ui 32 QObject objectName myprogramClass QWidget enablec E abled j 0 0 400 x 300 EE o sizePolicy Preferred Preferre Width jo Cem 79 T amul 1 215x Width 16777215 16777215 E 0x0 p Inherited Figure 4 35 Setting the size of the QT main window 40 AAA EVIDENCE f Chapter 4 Usage from Eclipse 4 5 3 Building the project To build the project follow the instructions of Section 4 4 3 41 RAS EVIDENCE Chapter 4 Usage from Eclipse 4 6 Serial connection The version of Eclipse installed with Evelin SDK a
26. ult target as shown in Figure 4 8 Note 4 4 1 This allows to specify for which target the binary will be compiled for Host refers to the host architecture Note 4 4 2 If you wish you can choose to start from an existing template which shows how to write the Makefile strongly recommended Note 4 4 3 The default path is taken from the dialog shown in Figure 4 4 and should be fine in most situations Open File Shift L Alt IN Close Close All Ctri W Shift Ctrl W Ctrl S Shift Ctrl S Convert Line Delimiters To Print Switch Workspace Restart Properties Alt Enter Exit E C Project New Scratchbox2 project C Project E Convert to a C C Make Project amp Source Folder 3 Folder ie Source File ik Header File 3 File from Template G Class A F5 Other Figure 4 6 Creating a new project on Eclipse 17 RAA EVIDENCE f Ewarooine TECHNOLOGY Chapter 4 Usage from Eclipse Select a wizard C Project to manage the configuration and compilation of a Scratchbox2 project Next gt Finish Cancel Figure 4 7 Creating a Scratchbox project on Eclipse ri E Project Explorer 53 Scratchbox 2 project tions Here you choose the Scratchox 2 Installation and the target CPU Eme Figure 4 8 Choosing Scratchbox path and default target 18 ewarboine TECHNOLOGY Chapter 4 Usage from Eclipse 4 4 2 Target s

Download Pdf Manuals

image

Related Search

Related Contents

BOMBA ESTANDAR RATIO 10:1        IP Camera (HD Cloud Camera ) User`s manual  Samsung RS21DLAT Lietotāja rokasgrāmata  MODE D`EMPLOI 2007 pdf  

Copyright © All rights reserved.
Failed to retrieve file