neuros technology gui application development with qt4 l.
Skip this Video
Download Presentation
Neuros Technology GUI Application Development with Qt4

Loading in 2 Seconds...

play fullscreen
1 / 9

Neuros Technology GUI Application Development with Qt4 - PowerPoint PPT Presentation

  • Uploaded on

Neuros Technology GUI Application Development with Qt4. OSCON USA 2008. Cross-Platform Tools with Embedded Development. Qt4 offers many advantages for Embedded Development Cross-Architecture ARM, MIPS, x86, PPC, SPARC Cross-Platform Linux, BSD, Solaris, Windows, Windows CE

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about 'Neuros Technology GUI Application Development with Qt4' - genna

Download Now An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
cross platform tools with embedded development
IP moves upwardsCross-Platform Tools with Embedded Development
  • Qt4 offers many advantages for Embedded Development
    • Cross-Architecture
      • ARM, MIPS, x86, PPC, SPARC
    • Cross-Platform
      • Linux, BSD, Solaris, Windows, Windows CE
    • Varying Hardware
      • Cell Phones, Set-Top Boxes, PC, Thin Clients

All of these different development platforms are able to use the same source code

step 2 attach classes to designer form
IP moves upwardsStep 2: Attach Classes to Designer form
  • Following Qt4 Guides using Multiple Inheritance with Designer forms, all standard Qt4
  • Created (view if wanted)‏
    • mainwindow.cpp
    • mainwindow.h
    • main.cppFor details on how to build Qt4 GUI C++ source code, follow guides on:
step 2 main menu
IP moves upwardsStep 2: Main menu

Example of Main Function:

#include <QApplication>

#include "mainwindow.h"

int main(int argc, char *argv[])‏


QApplication app(argc,argv); // Configure QApp

// Setup application info




// Create the window and show maximized

MainWindow window;


app.exec(); // Start Event Loop


step 3 compile for pc
IP moves upwardsStep 3: Compile for PC
  • Compile and Run Qt4 application to for the PC
  • ~/$ cd ~/OSCON/step3
  • ~OSCON/step3$: qmake -project
  • ~OSCON/step3$: qmake
  • ~OSCON/step3$: make
  • ~OSCON/step3$: ./step3
step 4 compiling for arm
IP moves upwardsStep 4: Compiling for ARM
  • Compiling same application for ARM/OSD is very simple
    • First you source the cross compile enviroment so the toolchain is in the path. This makes an alias for the toolchain/Qt/bin/qmake that we can use to be sure we run ARM qmake not PC qmake
    • Using the same exact source we compile with the same steps as we did with the PC version (this time things renamed step4)‏
step 4 building for arm osd
IP moves upwardsStep 4: Building for ARM/OSD
  • ~/$ source /neuros/neuros-bsp/neuros-env
  • ~/$ cd ~/OSCON/step4
  • ~OSCON/step4$: nqmake -project
  • ~OSCON/step4$: nqmake
  • ~OSCON/step4$: make
  • ~OSCON/step4$: cp step4 /neuros/neuros-bsp/rootfs/fs/
  • In Minicom (Serial Console):
  • ~#: /stepnqmake is an alias for qmake that is located in the arm toolchain directory. Without an alias the system would just think you wanted to use the local qmake
the pc arm application
IP moves upwardsThe PC/ARM Application

With the same source code we can now run the same exact application on both ARM and PC. This simplifies the entire development process

  • Debugging on PC is easier
  • Great compatibility for multiple arch
  • Write once, use everywhere source code!