78 Star 560 Fork 221

idea4good/GuiLiteSamples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
ExternalWindow
Hello3D
Hello3Ddonut
Hello3Dwave
HelloAnimation
HelloAzureIoT
HelloCircle
HelloFFmpeg
HelloFont
HelloFreetype
HelloJPG
HelloKeypad
HelloLayers
HelloMario
HelloMolecule
HelloNets
HelloParticle
BuildIos
BuildLinux
BuildMFC
BuildSTM32F103-Keil
BuildWin32
UIcode
CMakeLists.txt
README.md
HelloPendulum
HelloScroll
HelloSlide
HelloStar
HelloTimer
HelloTransparent
HelloWave
HelloWidgets
HelloWindows
HostMonitor
doc
.gitignore
GuiLiteToolkit.exe
LICENSE
README.md
README_zh.md
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

How to build for Win MFC?

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

How to build for STM32F103 + ILI934x?

Prerequisite:

  • Install Keil uvsion 5.6 or above.
  • Your hardware should be compatible with: Discovery kit/正点原子开发板/野火霸道开发板.

Build

  1. Open "HelloParticle\BuildSTM32F103-Keil\USER\HelloParticle.uvprojx" with Keil uvsion.
  2. Choose your Device type(Default: STM32F103ZE) from option for target.
  3. Build HelloParticle.
  4. Connect your hardware with your host PC, and flash/run HEX file on it.

How to port on any type of MCU?

How to build for Linux?

Compile & Run locally:

  1. Compile:
    • cd HelloParticle
    • cmake . && make
    • cd BuildLinux
    • chmod 777 *
  2. Run locally(e.g, Ubuntu):
    • Elevate to super user: sudo su
    • Run with framebuffer: sudo ./HelloParticle /dev/fb0    /dev/fb0: The path of framebuffer device file.
    • Run inside X Window: sudo ./xWindow 240 320 | ./HelloParticle 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 HelloParticle
    • 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
  3. Run on target Linux device:
    • Copy BuildLinux/HelloParticle to target Linux device
    • chmod 777 HelloParticle
    • sudo ./HelloParticle /dev/fb0    /dev/fb0: The path of framebuffer
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/idea4good/GuiLiteSamples.git
git@gitee.com:idea4good/GuiLiteSamples.git
idea4good
GuiLiteSamples
GuiLiteSamples
master

搜索帮助