Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

How to build for Win MFC?

  1. Open "HelloScroll\BuildMFC\HelloScroll.sln" by Visual studio 2017
  2. Click F5 to build/run HelloScroll

How to build for Qt?

  1. Open BuildQt/HelloScroll.pro with Qt Creator
  2. Build/Run with Qt Creator

How to build for Linux?

Compile & Run locally:

  1. Compile:
    • cd HelloScroll
    • cmake . && make
    • cd BuildLinux
    • chmod 777 *
  2. Run locally(e.g, Ubuntu):
    • Elevate to super user: sudo su
    • Run with framebuffer: sudo ./HelloScroll /dev/fb0    /dev/fb0: The path of framebuffer device file.
    • Run inside X Window: sudo ./xWindow 600 400 | ./HelloScroll shared-fb

Cross compiler & Run on target:

  1. install compiler:
    • For ARM32: sudo apt-get install g++-arm-linux-gnueabi gcc-arm-linux-gnueabi
    • For ARM64: sudo apt-get install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu
  2. Cross compile:
    • cd HelloScroll
    • For ARM32: cmake -D CMAKE_C_COMPILER="/usr/bin/arm-linux-gnueabi-gcc" -D CMAKE_CXX_COMPILER="/usr/bin/arm-linux-gnueabi-g++" -D TARGET_ARCH="ARM" . && make
    • For ARM64: cmake -D CMAKE_C_COMPILER="/usr/bin/aarch64-linux-gnu-gcc" -D CMAKE_CXX_COMPILER="/usr/bin/aarch64-linux-gnu-g++" -D TARGET_ARCH="ARM" . && make
  3. Run on target Linux device:
    • Copy BuildLinux/HelloScroll to target Linux device
    • chmod 777 HelloScroll
    • sudo ./HelloScroll /dev/fb0    /dev/fb0: The path of framebuffer