如何在ubuntu和xFF1F中正确编译和设置SGX示例代码;

如何在ubuntu和xFF1F中正确编译和设置SGX示例代码;,sgx,Sgx,我在硬件模式下编译了示例代码SampleCode/LocalDetection,运行时出现了下面列出的错误(在模拟模式下编译时运行正常) 操作系统版本:4.15.0-122-generic#124 Ubuntu SMP周四10月15日13:03:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux sgx@scott-Server-Platform:~/linux-sgx/SampleCode/LocalAttestation$ bin/app: [CEncla

我在硬件模式下编译了示例代码SampleCode/LocalDetection,运行时出现了下面列出的错误(在模拟模式下编译时运行正常)

操作系统版本:4.15.0-122-generic#124 Ubuntu SMP周四10月15日13:03:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

sgx@scott-Server-Platform:~/linux-sgx/SampleCode/LocalAttestation$ bin/app:

[CEnclavePool /home/sgx/linux-sgx/psw/urts/enclave.cpp:629] enter CEnclavePool constructor

[__sgx_create_enclave_ex urts.cpp:91] Couldn't open the enclave file, error = 2

failed to load enclave.

[remove_enclave /home/sgx/linux-sgx/psw/urts/enclave.cpp:783] remove an unknown enclave

[remove_enclave /home/sgx/linux-sgx/psw/urts/enclave.cpp:783] remove an unknown enclave

sgx@scott-Server-Platform:~/linux-sgx/SampleCode/LocalAttestation$ 

@@@@@@@@@@@@@ library info@@@@@@@@@@@@@@

libsgx_urts.so => /usr/lib/x86_64-linux-gnu/libsgx_urts.so (0x00007fae6c9db000)

libsgx_enclave_common.so.1 => /usr/lib/x86_64-linux-gnu/libsgx_enclave_common.so.1 (0x00007fae6c9c5000)