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.