打开minigui官网,http://www.minigui.com/download
First, make sure that you are using Ubuntu 16.04 LTS or 18.04 LTS.
Note:Ubuntu pc ram is greater than 4GB, otherwise the full compilation of minigui will fail.
You should run sudo apt install
to install the following packages on your Ubuntu system.
Note that if you are using Ubuntu 18.04, please install libpng-dev
. Ubuntu 18.04 does not provide support for libpng12-dev
.
Please make sure that you can visit GitHub and you can do sudo
on your Ubuntu system.
Clone build-minigui-4.0
repository from GitHub:
$ git clone [email protected]:VincentWei/build-minigui-4.0.git
$ cd build-minigui-4.0
Copy config.sh
to myconfig.sh
and edit myconfig.sh
to match your needs:
$ cp config.sh myconfig.sh
Run fetch-all.sh
to fetch all source code from GitHub:
$ ./fetch-all.sh
Run build-deps.sh
to build and install gvfb, chipmunk, and harfbuzz:
$ ./build-deps.sh
Run build-all.sh
to build all:
$ ./build-all.sh
Run mguxdemo
:
$ cd /usr/local/bin
$ ./mguxdemo
When there is any update in the remote repos, you can run update-all.sh
to update. You can run clean-build-all.sh
to uninstall, clean, and re-install them.
Note that you might need to run ldconfig
to refresh the shared libraries cache before running mguxdemo
.