[Previous] [Next] [Contents]

CHAPTER 3. Hello World

 

3.5 CROSS COMPILE

  • In order to build application for target device(i519), change environment variables as following :
  • # export QTDIR=/opt/host/armv4l/qtx
    # export TMAKEPATH=/usr/lib/tmake/lib/mizi/armv4l

     

  • Generate Makefile :
  • # tmake hello.pro -o Makefile

     

    We highly suggest you to use tmake which we've provide, otherwise some incompatibilities may occur. If you have already installed other version of tmake, remove it and install 'tmake-1.7-?mz.noarch.rpm'

    # rpm -e tmake
    # rpm -Uvh tmake-1.7-?mz.noarch.rpm

     

  • Build sample:
  • # make

     

  • You will get cross compiled executable binary. Check the binary as following command :
  • # file hello
    hello: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped

     


    [Previous] [Next] [Contents] MIZI Prizm 2.0.0