User Tools

Site Tools


clib:standalone_compilation:start

Standalone compilation details

Dependencies required for standalone compilation

  • To compile any web exported standalone sample, It is required that user have “standalonearm” folder at any physical path and provide same physical path in “standalone path” field on web export page.
  • For example, consider it at “/home/Projects/Ripdraw/standalonearm”.standalone compilation cmake will use this path as shown below.
  • By default, Standalone expects a “deps” out side standalone directory to find arm cross compiler as well as other dependencies.
  • Based on the standard cross compilation environment the standalone cmake script try to resolve compiler and above lib in “deps/host” folder.
  • The script consider the “deps/host/” directory as the gcc system root (see gcc compiler options), so it looks for gcc compiler and all above mentioned dependencies at below mentioned path.
  • We have used the bare metal toolchain to compile the standalone as mentioned, otherwise user needs to change the path in cmake.It will try to search cross compiler at location /deps/host/usr/bin.
  • for example, if deps path is “/home/Projects/Ripdraw/deps/“
  • base compiler binary path will be..
    • /home/Projects/Ripdraw/deps/host/usr/bin/arm-linux-gnueabihf-gcc
    • /home/Projects/Ripdraw/deps/host/usr/bin/arm-linux-gnueabihf-g++
  • include path for header will be..
    • /home/Projects/Ripdraw/deps/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/cairo
    • /home/Projects/Ripdraw/deps/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/pixman-1
  • lib path will be..
    • /home/Projects/Ripdraw/deps/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libcairo.so
    • /home/Projects/Ripdraw/deps/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libpixman-1.so
  • Below is the output of the cmake script compilation for reference ….
  • So user need to manually add this “deps” at the same location where standalonearm folder exists on file system.

Steps to compile standalone

  • Here as shown above, on web export screen there are few selection options as :
    1. OS → linux ,
    2. CPU → ARM,
    3. Interface → Standalone
    4. Standalone path → above mentioned extracted standalonearm directory physical path [ for example - /home/Projects/Ripdraw/standalonearm ]
    5. Cross compiler path → standalone compilation ignore this cross compiler path property in compilation so user can set dummy value in this text box.
  1. Click on export
  2. Download exported archieve file.
  3. Extract it.
  4. Open terminal and Go to src/app folder for compilation.
  5. Execute make_project.sh command.
  6. Execute make command.
  7. Standalone sample binary will be generated.
  8. In exported sample directory copy “images , imagelists and fonts” folders to devdata folder.
  9. Copy devdata folder and sample binary to SD card.
  10. Insert and mount SD card on crane board.
  11. Access SD card directory location where our sample binary and devdata folder exists.
  12. Run sample binary.
Last modified: 2014/10/09 06:46

Page Tools