Cross-compiling glib-2.28.8 under Arm

Source: Internet
Author: User
Tags gettext parse error

Not much nonsense, directly on the configuration:
CC=ARM-NONE-LINUX-GCC./configure--build=i686-linux--host=arm-none-linux \
Glib_cv_stack_grows=no Glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yes \
Ac_cv_func_posix_getgrgid_r=yes Ac_cv_lib_rt_clock_gettime=no Glib_cv_monotonic_clock=yes

Note the following points:
1. In the Configure, there will be no glib-compile-schemas error found,
The solution is very simple, is to use the host compiler glib-2.28.8, that is, directly:
./configure--prefix=<your Glib2 Install path>; Make Make install
After compiling, set the environment variable path=<your glib2 install Path>/bin: $PATH, you can find Glib-compile-schemas.

2. If the following error occurs in Make:
gsimpleaction.c:in function ' G_simple_action_class_init ':
Gsimpleaction.c:329:error: ' G_cclosure_marshal_void__variant ' undeclared (in the This function)
Gsimpleaction.c:329:error: (Each undeclared identifier are reported only once

The reason for this error is because the Glib-genmarshal version is too old to cause, you can install the file from the GObject directory to: <your glib2 install can be resolved,
Generally if you do the first step, this step will not be wrong, because the first step will be installed when the file is installed.

3. If the following error occurred while compiling the gio/tests:
/usr/bin/msgfmt-o Test.mo./de.po; \
/bin/mkdir-p de/lc_messages; \
Cp-f Test.mo De/lc_messages
./de.po:15:keyword "Msgctxt" Unknown
./de.po:15:8: Parse Error
/usr/bin/msgfmt:found 2 Fatal errors
Cp:cannot stat ' test.mo ': No such file or directory

This problem is due to the/usr/bin/msgfmt version of the old, please download the gettext-0.17 or updated version, in the host under the compile installation,
Set the environment variable path=<your gettext install Path>/bin: $PATH, and also specify configure at AC_CV_PATH_MSGFMT=MSGFMT,
Otherwise set the environment variable also useless, compile the time will still force use/USR/BIN/MSGFMT

After doing the above 3 points, glib-2.28.8 will be able to make a difference.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.