Cross-compile uim1.5.2forpdaxrom

Source: Internet
Author: User
Cross-compile uim1.5.2forpdaxrom-Linux general technology-Linux programming and kernel information. For details, see the following. Some new methods and technical points have been found during uim 1.5.2 compilation:

Cross-compilation can be used in other ubuntu and archlinux Environments

The original article uses the vmware image provided by pdaxrom. After cross-compilation, it can be used in PC environments such as ubuntu/archlinux without dependency.

Error: 'llong _ min' undeclared (first use in this function)

Gcc always has such version compatibility issues, which are hard to prevent.

The simplest solution is to open the problematic source file.

Uim-1.5.2/replace/strtonum. c

Use LONG_LONG_MAX instead of LLONG_MAX, and use LONG_LONG_MIN instead of LLONG_MIN.

/. Libs/lt-uim-module-manager: unable to execute binary files

This problem also occurs in uim compiled in the previous version. The reason is that we use the lt-uim-module-manager program to process the scm code table file, and the target code we generate now is used for arm, naturally, it cannot run on an X86 host.

I had to make some tricks.

Decompress the uim-1.5.2 to another new folder, compile it with the host environment, generate the lt-uim-module-manager available for the host, and overwrite the compiled folder.

In addition, the uim must be installed on the host; otherwise, make cannot be continued. After this episode is completed, return to the uim directory for cross-compilation and continue make.

Set optimization parameters and modify runsdk. sh.
QUOTE:

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.