Compilation
- Use an
SSH tool to remotely log in to the server as the root user. Run the following command to go to the directory where the source code is stored: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.
Modify the ksw.h file in /opt/DevKit/workspace/devadmin/porting/sourcecode/code/.
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.
Run the following command to open the file:
1vi /opt/DevKit/workspace/devadmin/porting/sourcecode/code/ksw.hChange #include <emmintrin.h> in line 3 to the content shown in Figure 2.
- Run the make command again. The compilation is complete.Figure 3 Compilation completed
Parent topic: Sample 1: Source Code Scan

