Compilation
- Use an
SSH tool to remotely log in to the server as the root user. Run the following command to go to the source code directory:1cd /opt/DevKit/workspace/devadmin/porting/sourcecode/code
If the Kunpeng DevKit is installed on the x86 platform, transfer the modified source code to the Kunpeng platform and go to the source code directory.
- After the make command is executed, an error is reported. See Figure 1.
- Open the ksw.h file in the /opt/DevKit/workspace/devadmin/porting/sourcecode/code/ directory.
emmintrin.h is the system header file of the x86 platform. The Kunpeng platform does not have this system header file. If the Kunpeng DevKit is installed on the x86 platform, replace the path with the actual source code path.
1vi /opt/DevKit/workspace/devadmin/porting/sourcecode/code/ksw.h - Press i to enter insert mode. Change #include <emmintrin.h> in the third line to the following content shown in Figure 2.
- Press Esc to exit insert mode. Type :wq! and press Enter to save the file and exit.
- Open the ksw.h file in the /opt/DevKit/workspace/devadmin/porting/sourcecode/code/ directory.
- Run the make command again. The compilation is complete.Figure 3 Compilation completed
Parent topic: Sample 1: Source Code Scan

