1 Star 0 Fork 805

我的昵称 / GuiLite

forked from idea4good / GuiLite 
加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
HowToUse.md 2.06 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
idea4good 提交于 2020-01-22 11:03 . !27 Support header-only

How to use GuiLite?

  • For GuiLite user: You could copy GuiLite.h in your application
  • For GuiLite developer: You could get well-organized source code, and develop it on any platform(Windows/Linux/Apple)

For GuiLite user

GuiLite is a header-only library, so it should be straightforward to integrate into your application.

UIcode.cpp:

#define GUILITE_ON	// Do not define this macro upon GuiLite.h once more
#include "GuiLite.h"

// your code here:

For GuiLite developer

Build GuiLite libary for Windows?

Prerequisite: Windows & Visul Studio 2013/2015/2017/2019

  • Open "GuiLite.sln" by Visual Studio
  • Click Build Solution
  • Output here: \GuiLite\workspace\Debug(Release)\GuiLite.lib

FAQ: Error when open GuiLite project with Visual Studio, reconfigure the project to match your computer like this:

vs-configure

Build GuiLite libary for iOS/Mac and Linux(amd64) & raspberry pi?

cd GuiLite/workspace
cmake .
make

# Output here: /GuiLite/workspace/libGuiLite.a

Build GuiLite libary for ARM Linux?

Prerequisite: Install cross 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

Build

cd GuiLite/workspace
# For ARM32:
cmake -D CMAKE_C_COMPILER="/usr/bin/arm-linux-gnueabi-gcc" -D CMAKE_CXX_COMPILER="/usr/bin/arm-linux-gnueabi-g++" .
# For ARM64:
cmake -D CMAKE_C_COMPILER="/usr/bin/aarch64-linux-gnu-gcc" -D CMAKE_CXX_COMPILER="/usr/bin/aarch64-linux-gnu-g++" .
make

Output here: /GuiLite/workspace/libGuiLite.a

How to build GuiLite libary for any MCU?

Prerequisite: Install Keil uvsion 5.6 or above.

Build

  • Open GuiLite/workspace/GuiLite.uvprojx with Keil uvsion.
  • Implement function(e.g, thread_sleep) in core\src\adapter\api_unknow.cpp to meet your need.
  • Choose your Device type(Default: STM32F103ZE) from option for target.
  • Build GuiLite.
  • Output here: /GuiLite/workspace/Objects/GuiLite.lib

Build header-only GuiLite.h?

cd GuiLite/workspace
./header-only.sh

评论 ( 0 )

你可以在登录后,发表评论

C++
1
https://gitee.com/mayunkaiyuanruanjian/GuiLite.git
git@gitee.com:mayunkaiyuanruanjian/GuiLite.git
mayunkaiyuanruanjian
GuiLite
GuiLite
master

搜索帮助