2010-05-06

QML Tutorials (Qt 4.7 snapshot)

QML is a declarative language designed to describe the user interface of a program: both what it looks like, and how it behaves. QML is an extension to JavaScript, that provides a mechanism to declaratively build an object tree of QML elements. 

QML improves the integration between JavaScript and Qt's existing QObject based type system, adds support for automatic property bindings and provides network transparency at the language level.


Reference:



    Qt 4.7 and Qt Creator 2.0

    The first try of Qt Creator 2.0 + Qt 4.7, both of them are in beta phase.
    1. Download them from http://qt.nokia.com/developer/qt-qtcreator-prerelease#download.
    2. Installation
    3. Configuration. Tools->Options->Qt4->Manual.Give correct path of qmake and mingw. e.g. qmake location: c:\qt\4.7.0-beta1\bin\qmake.exe; MinGW directory: c:\Qt\qtcreator-1.3.83\mingw\
    4. Import qml demo. See the video

    2010-05-05

    What is BSP?

    "I think you're referring to the 'Board Support Package'. This usually refers to the OS, and the board-specific drivers in the OS. The BSP is the first thing that must be built in order for an embedded system to work."

    PsTools

    "PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. PsExec's most powerful uses include launching interactive command-prompts on remote systems and remote-enabling tools like IpConfig that otherwise do not have the ability to show information about remote systems. "
     Reference
    http://technet.microsoft.com/en-gb/sysinternals/bb897553.aspx

    2010-05-04

    Patch on Wrong Version Kernel

    Reversed (or previously applied) patch detected!  Assume -R? [n]

    Above is a common error message when people tried to patch the kernel source. The reason is that you applied the patch on a kernel of wrong version.
    Here is a patched version of linux kernel published by www.kernel.org. For instance, you are going to download 2.6.33.3 kernel source. You have two choices,
    1. Download Full Source. No extra patching is required.
    2. Download Patch und patch on your 2.6.33

    For the second choice, if you try to run patch on the other version. for example 2.6.33.3.  The error shown above will appear. Correct commands are below.

    >tar xzfv linux-2.6.33.tar.gz
    >bunzip2 patch-2.6.33.3.bz2
    >cd linux-2.6.33
    >patch -p1<../patch-2.6.33.3

    Reference:

    2010-05-03

    Window Manager

    Tiling window manager is a window manager with an organization of the screen into mutually non-overlapping frames.
     awesome



    Stacking window manager is a window manager that draws all windows in a specific order, allowing them to overlap, using a technique called painter's algorithm.
    FVWM

    Compositing window manager differentiate from other window managers is that instead of outputting to a common screen, programs each output first to a separate and independent buffer, or temporary location inside the computer, where they can be manipulated before they are shown.
     Compiz

    Reference

    2010-05-02

    Link error during build Qt 4.6.2

    Max encounter the following link error, as he tried to build Qt 4.6.2 with a angstrom toolchain for mini2440 ARM9 board:

    /usr/bin/ld: .obj/release-shared/harfbuzz-buffer.o: Relocations in generic ELF (EM: 40)
    .obj/release-shared/harfbuzz-buffer.o: could not read symbols: File in wrong format
    collect2: ld returned 1 exit status

    After a short analysis, he found out that it supports to be the problem of crossing compiler toolchain.

    >ls -al /usr/bin/gcc
    lrwxrwxrwx 1 root root 63 2009-10-27 20:35 /usr/bin/gcc -> /usr/bin/gcc-4.1
    Here is quick solution, but there may exists better solution.
    >rm /usr/bin/gcc
    >ln -s /opt/toolchains/arm920t-eabi/arm-angstrom-linux-gnueabi/bin/gcc /usr/bin/gcc
    The reconfigure and build everything
    >make confclean
    >./configure -embedded arm -xplatform qws/linux-arm-g++ -depths 16 -qt-mouse-tslib
    >make
    >make install