mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-12-26 22:25:50 +08:00
update docs
This commit is contained in:
29
doc/HowToBuild.md
Normal file
29
doc/HowToBuild.md
Normal file
@@ -0,0 +1,29 @@
|
||||
## How to build core&gui libary for Windows?
|
||||
depdency: Windows 10, visul stdio 2015/2017
|
||||
- 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 Mac and Linux(x64 & raspberry pi)?
|
||||
- `cd GuiLite`
|
||||
- `cmake .`
|
||||
- `make`
|
||||
- Output here: /GuiLite/libcore.a libgui.a
|
||||
|
||||
## How to build core&gui libary for ARM Linux?
|
||||
### Install cross compiler:
|
||||
For example: arm-linux-gnueabi-gcc
|
||||
`sudo apt-get install g++-arm-linux-gnueabi`
|
||||
`sudo apt-get install gcc-arm-linux-gnueabi`
|
||||
|
||||
- `cd GuiLite`
|
||||
- `cmake -D CMAKE_C_COMPILER="/usr/bin/arm-linux-gnueabi-gcc" -D CMAKE_CXX_COMPILER="/usr/bin/arm-linux-gnueabi-g++" .`
|
||||
- `make`
|
||||
- Output here: /GuiLite/libcore.a libgui.a
|
||||
|
||||
## How to build core&gui libary for Android?
|
||||
- `cd GuiLite`
|
||||
- `sudo apt-get install gcc-arm-linux-androideabi` skip this if you have got the tool
|
||||
- `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
|
||||
Reference in New Issue
Block a user