- Open "HelloSlide\BuildMFC\HelloSlide.sln" by Visual studio 2017
- Click
F5to build/runHelloSlide
- Compile:
cd HelloSlidecmake . && makecd BuildLinuxchmod 777 *
- Run locally(e.g, Ubuntu):
- Elevate to super user:
sudo su - Run with framebuffer:
sudo ./HelloSlide /dev/fb0/dev/fb0: The path of framebuffer device file. - Run inside X Window:
sudo ./xWindow 512 768 | ./HelloSlide shared-fb
- Elevate to super user:
- 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
- For ARM32:
- Cross compile:
cd HelloSlide- For ARM32:
cmake -D CMAKE_C_COMPILER="/usr/bin/arm-linux-gnueabi-gcc" -D CMAKE_CXX_COMPILER="/usr/bin/arm-linux-gnueabi-g++" . && make - For ARM64:
cmake -D CMAKE_C_COMPILER="/usr/bin/aarch64-linux-gnu-gcc" -D CMAKE_CXX_COMPILER="/usr/bin/aarch64-linux-gnu-g++" . && make
- Run on target Linux device:
- Copy BuildLinux/HelloSlide to target Linux device
chmod 777 HelloSlidesudo ./HelloSlide /dev/fb0/dev/fb0: The path of framebuffer