Rate This Document
Findability
Accuracy
Completeness
Readability

engine.h Not Found When KAE Is Installed Through Source Code Compilation

Symptom

When the engine layer code of KAE is compiled, the engine.h file is missing. Detailed error information: "engine.h: No such file or directory"

Key Process and Cause Analysis

This error message is displayed because the engine.h header file is required for compiling the engine layer code of KAE. The compiler searches for the file in the default path. If the file cannot be found and no other search path is configured, this error message is displayed.

Conclusion and Solution

  1. Ensure that OpenSSL has been correctly installed by following the instructions in "Installing OpenSSL/Tongsuo" in the Kunpeng Accelerator Engine User Guide.
  2. Find the directory where the engine.h file is located.
    1
    find / -name engine.h
    
  3. Add the directory to the environment variable C_INCLUDE_PATH.
    1
    export C_INCLUDE_PATH=Queried_directory:$C_INCLUDE_PATH
    
  4. Check whether the environment variable is successfully added.
    1
    echo $C_INCLUDE_PATH
    

    If the directory where the engine.h file is located is displayed, the environment variable is successfully added.