GuiLite/doc/HowToBuild.md

39 lines
1.6 KiB
Markdown
Raw Normal View History

2017-12-15 22:57:26 +08:00
## How to build core&gui libary for Windows?
2019-01-11 14:00:25 +08:00
Prerequisite: Windows 10, visul stdio 2015/2017
2017-12-15 22:57:26 +08:00
- Open "GuiLite.sln" by Visual studio 2017
- Click `Build Solution`
- Output here: \GuiLite\Debug(Release)\core.lib gui.lib
## How to build core&gui libary for iOS/Mac and Linuxx64 & raspberry pi?
2017-12-15 22:57:26 +08:00
- `cd GuiLite`
- `cmake .`
- `make`
- Output here: /GuiLite/libcore.a libgui.a
## How to build core&gui libary for ARM Linux?
2019-01-11 14:00:25 +08:00
### Prerequisite: Install cross compiler:
2018-12-02 22:39:43 +08:00
- 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
2017-12-15 22:57:26 +08:00
- `cd GuiLite`
2018-12-02 22:39:43 +08:00
- 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++" .`
2017-12-15 22:57:26 +08:00
- `make`
- Output here: /GuiLite/libcore.a libgui.a
## How to build core&gui libary for Android?
2019-01-11 14:00:25 +08:00
### Prerequisite: Install cross compiler:
2018-01-29 18:49:29 +08:00
`sudo apt-get install gcc-arm-linux-androideabi`
2019-01-11 14:00:25 +08:00
### Build
2017-12-15 22:57:26 +08:00
- `cd GuiLite`
- `cmake -D CMAKE_C_COMPILER="/usr/bin/arm-linux-androideabi-gcc" -D CMAKE_CXX_COMPILER="/usr/bin/arm-linux-androideabi-g++" .`
- `make`
- Output here: /GuiLite/libcore.a libgui.a
2019-01-11 14:00:25 +08:00
2019-01-29 11:41:15 +08:00
## How to build GuiLite libary for any MCU?
2019-01-11 14:00:25 +08:00
### Prerequisite: Install Keil uvsion 5.6 or above.
### Build
- Open `GuiLite.uvprojx` with Keil uvsion.
2019-01-29 11:41:15 +08:00
- Implement function(e.g, thread_sleep) in `core\src\adapter\api_unknow.cpp` to meet your need.
2019-01-11 14:00:25 +08:00
- Choose your Device type(Default: STM32F103ZE) from option for target.
- Build GuiLite.