iok 2.1.3 Porting Guide (openEuler 20.03 LTS SP1)

randy15682021-12-29lokPorting Guide


iok is a keyboard mapping application that displays Indian languages.

Selected Version


Installation Guide

Checking OS Version

cat /etc/os-release

Checking Compatibility

Download iok-2.1.3 SRPM.


Download x2openEuler.


User guide:

Deploy x2openEuler.

rpm -ivh x2openEuler-1.0-1.noarch.rpm

Note: You need to install the RPM package as the root user. Currently, a network connection is required for downloading and installing dependencies. Install dependencies such as bzip2-devel as prompted.

su x2openEuler
x2openEuler redis-db -init

Enter the following information about the Redis database in sequential order. IP address: Port: 6379 Database index (0-16): 0 Password (encrypted by the tool): If the Redis password is not set or is empty, press Enter.

x2openEuler init source_centos7.6-openEuler20.03-LTS-SP1.tar.gz

Note: After x2openEuler is installed using an RPM package, the default resource package (source_centos7.6-openEuler20.03-LTS-SP1.tar.gz) is generated in the /opt/x2openEuler directory. To support the evaluation of hardware compatibility between CentOS 8.2 and openEuler 20.03 LTS SP1, you need to obtain and import the corresponding static resource package. For example, if the resource package is source_centos8.2-openEuler20.03-LTS-SP1.tar.gz, run x2openEuler init source_centos8.2-openEuler20.03-LTS-SP1.tar.gz to import the package.

Scan the software.

x2openEuler scan iok-2.1.3-6.el7.x86_64.rpm
The x2openEuler user must have the read permission on the file to be analyzed.
After the scan is complete, an HTML report is generated in the /opt/x2openEuler/output directory.

Viewing Evaluation Results

The software compatibility evaluation report consists of three parts: dependency compatibility, C/C++ interface compatibility, and Java interface compatibility. Dependency compatibility reflects the required direct dependencies during software installation. If the dependency compatibility is not 100%, the installation fails. Interface compatibility reflects the calling of other software packages, dynamic libraries, or system interfaces during the running of the software. If the interface compatibility is not 100%, an exception may be triggered when a certain function is called. Manual confirmation is recommended for some results. The priority of software packages is as follows: packages that have been ported to openEuler > manually recompiled packages for openEuler > packages for CentOS.

Result: According to the dependency report, the unique3 dependency issue needs to be resolved before porting iok to openEuler 20.03 LTS SP1.

Including Dependencies

  • Track the issue until the missing dependency package is included in the YUM repository of openEuler 20.03 LTS SP1.

Build Process

After the missing dependency package is included, you can perform the following operations:

  • Obtain the CentOS 7.6.1810 SRPM package for iok.
  • Build the binary package on openEuler 20.03 LTS SP1.

###Build the binary package.

yum install -y rpm-build
  • Install the SRPM package over the network.
rpm -i
  • Install the dependency.
yum-builddep -y ~/rpmbuild/SPECS/iok.spec
  • Build the binary package.
rpmbuild -bb ~/rpmbuild/SPECS/iok.spec
  • Install the binary package.
rpm -i ~/rpmbuild/RPMS/x86_64/*.rpm
  • View the binary file.
which iok

[Disclaimer] This article only represents the author's opinions, and is irrelevant to this website. This website is neutral in terms of the statements and opinions in this article, and does not provide any express or implied warranty of accuracy, reliability, or completeness of the contents contained therein. This article is for readers' reference only, and all legal responsibilities arising therefrom are borne by the reader himself.