Folders and files Name Name Last commit message
Last commit date
parent directory
View all files
How to build for Win MFC?
Open "HelloCircle\BuildMFC\HelloCircle.sln" by Visual studio 2017
Click F5
to build/run HelloCircle
How to build for STM32F103 + ILI934x?
Install Keil uvsion 5.6 or above.
Your hardware should be compatible with: Discovery kit/正点原子开发板 /野火霸道开发板.
Open "HelloCircle\BuildSTM32F103-Keil\USER\HelloCircle.uvprojx" with Keil uvsion.
Choose your Device type(Default: STM32F103ZE) from option for target.
Build HelloCircle.
Connect your hardware with your host PC, and flash/run HEX file on it.
Compile:
cd HelloCircle
cmake . && make
cd BuildLinux
chmod 777 *
Run locally(e.g, Ubuntu):
Elevate to super user: sudo su
Run with framebuffer: sudo ./HelloCircle /dev/fb0
/dev/fb0: The path of framebuffer device file.
Run inside X Window: sudo ./xWindow 240 320 | ./HelloCircle shared-fb
Cross compiler & Run on target:
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
Cross compile:
cd HelloCircle
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/HelloCircle to target Linux device
chmod 777 HelloCircle
sudo ./HelloCircle /dev/fb0
/dev/fb0: The path of framebuffer
You can’t perform that action at this time.