Broadcom97420

From Qt Wiki
Revision as of 14:05, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Broadcom 97420

Reference Software

  • Phase 5.0 Reference software (refsw_release_97420_20100825.src.tgz)
  • Phase 2.5 and Phase 3.0 of DirectFB 1.4.1
  • Toolchain is stbgcc 4.4.5-1.3 (modified by Broadcom)
  • Linux kernel is stblinux-2.6.31-2.5 (modified by Broadcom)

Building AppLibs/RefSW for Qt

  1. Locate document named “BroadcomReferencePlatformSetup.pdf” (Usually this will be inside a tar ball named on the lines of refsw_release_<chip-name>_<date>.tgz)
  2. Follow the instructions in “BroadcomReferencePlatformSetup.pdf” to setup the Linux build machine
  3. Locate document named “AppLibsInstallationBuildGuide.pdf” (Usually this will be inside a tar ball named on the lines of applibs_release_<date>.tgz)
  4. Follow the instructions in “AppLibsInstallationBuildGuide.pdf” to build Applibs

Qt 4.7 DirectFB / QWS

  1. Obtain qt-4.7.0 release from [http*//get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.0.tar.gz| Qt Download site] and extract it in a working folder
  2. Create folder named “linux-97420c0-mipsel-uclibc-g++” in <qt-4.7.0-sources>/mkspecs/qws
  3. In file <qt_sources>/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp, comment out line “surface->SetPorterDuff(surface, DSPD_DST);”
  4. Obtain 7420 specific files namely, qmake.conf and qplatformdefs.h from [http*//gitorious.org/qt-platform-mkspecs| qt-platform-mkspecs git ] (look for folder “4.7/qws/linux-97420c0-mipsel-uclibc-g++”) and copy it in newly created folder in step 2
  5. Set following environment variables in the shell before configuring/building Qt,
  6. Configure Qt as,
  7. Build Qt as,
  8. 8 Install Qt on host as,

Building Qt apps

  • 1 After the Qt build succeeds set following environment variables on host before building any Qt Apps for the above build,
  • QTDIR=/usr/local/qt-installs/qt-dfb-97420C0-rel
  • PATH=/usr/local/qt-installs/qt-dfb-97420C0-rel/bin*$PATH
  • 2 Ensure that following environment variables in the shell are set,
    1. Invoke qmake on the applications .pro file
    2. Build the application sources as,

Running Qt apps on target

  1. Ensure that folder “qt-installs/qt-dfb-97420C0-rel” is copied on target file system at “/usr/local”
  2. Note – after copying, the path should appear as “/usr/local/qt-installs/qt-dfb-97420C0-rel”
  3. 2 Copy the application binary and other required resource files on target file-system, at say “/root”
  4. On target, goto directory containing directfb startup script as,
  5. cd /usr/local/bin/directfb/1.4
  6. Install board specific modules and create device nodes by running “rundfb.sh” as,
  7. ./rundfb.sh install
  8. Launch application using same rundfb.sh script as,
  9. ./rundfb.sh /root/app1/app1 -qws -display directfb

Categories: