vincentwei / build-minigui-4.0 Goto Github PK
View Code? Open in Web Editor NEWThe building scripts for MiniGUI 4.0
License: GNU General Public License v3.0
The building scripts for MiniGUI 4.0
License: GNU General Public License v3.0
Based on README.md. Just describe the differences and some problems&solutions.
sudo apt install git gcc g++ binutils autoconf automake libtool make cmake pkg-config libgtk2.0-dev libjpeg-dev libpng-dev libfreetype6-dev libinput-dev libdrm-dev libsqlite3-dev libxml2-dev libssl-dev electric-fence
In file included from /usr/include/string.h:494,
from misc.c:56:
In function 'strcpy',
inlined from 'strtrimall' at misc.c:1435:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:90:10: error: '__builtin_strcpy' accessing between 0 and 9223372036854775806 bytes at offsets 0 and [0, 2147483647] may overlap up to 9223372036854775806 bytes at offset 9223372036854775804 [-Werror=restrict]
90 | return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The gcc compiling parameter "-Werror" is too strict. We can reduce compiler's requirement by
change minigui/configure.ac by remove "-Werror"
$ diff configure.ac configure.ac.org
2555c2555
< CFLAGS="$CFLAGS -Wall"
---
> CFLAGS="$CFLAGS -Wall -Werror"
The other packages, such as cell-phone-ux-demo, mgncs, mgplus, mg-demos, mgutils, mg-samples, need the same changes for configure.ac in each package.
ubuntu 19.04 didn't have freetype-config, so gcc/g++ can not find some freetype2 include files when compiling mgplus.
g++ -DHAVE_CONFIG_H -I. -I../.. -D__MGPLUS_LIB__ -D_DEBUG -Wall -Werror -g -O2 -MT agg_bezier_arc.lo -MD -MP -MF .deps/agg_bezier_arc.Tpo -c agg_bezier_arc.cpp -o agg_bezier_arc.o >/dev/null 2>&1
In file included from font_freetype/agg_font_freetype.cpp:47:
font_freetype/agg_font_freetype.h:49:10: fatal error: ft2build.h: No such file or directory
49 | #include <ft2build.h>
| ^~~~~~~~~~~~
compilation terminated.
ubuntu 19.04 didn't have freetype-config, but we can use pkg-config to get the same requirements.
diff configure.ac configure.ac.org
255,256c255,256
< FT2_CFLAGS="`pkg-config freetype2 --cflags`"
< FT2_LIBS="`pkg-config freetype2 --libs`"
---
> FT2_CFLAGS="`freetype-config --cflags`"
> FT2_LIBS="`freetype-config --libs`"
266c266
< CPPFLAGS="$CPPFLAGS -Wall"
---
> CPPFLAGS="$CPPFLAGS -Wall -Werror"
I found that you misspelled cplasplus in the ncs-window.h and wrote cplaspus。And Every time I modify it, it changes after I save it。
NEWGAL>PCXVFB: Wait too long for CLIENT.
NEWGAL: Does not find matched engine: pc_xvfb.
KERNEL>InitGUI: Can not get graphics engine information!
ubuntu18.04 LTS
编译之后无法运行
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.