Open chyyuu opened 5 years ago
Great! We will consider to make -Werror
managed by a configuration option.
I have moved the --enable-develmode
to a global Shell variable in my_config.sh
file:
# GOPTS=--enable-develmode
GOPTS=
By default, the scripts will not enable the developer mode. So there will be no -Werror
option enabled for GCC.
I also tune the configure.ac file of mGPlus to use pkg-config
instead of freetype-config
.
Based on README.md. Just describe the differences and some problems&solutions.
step 1 : a little difference
step 2~3 : same & no problem
step 4: meet some compiling problems, but can fix them.
minigui package
compiling errors (warning as error)
solutions
The gcc compiling parameter "-Werror" is too strict. We can reduce compiler's requirement by change minigui/configure.ac by remove "-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.
compiling errors (missing files)
ubuntu 19.04 didn't have freetype-config, so gcc/g++ can not find some freetype2 include files when compiling mgplus.
solutions
ubuntu 19.04 didn't have freetype-config, but we can use pkg-config to get the same requirements.
step5: : same & no problem