Open zhuxlproject opened 1 year ago
`diff --git a/SampleCode/QuoteGenerationSample/Makefile b/SampleCode/QuoteGenerationSample/Makefile index b8060d2..7eeda3f 100644 --- a/SampleCode/QuoteGenerationSample/Makefile +++ b/SampleCode/QuoteGenerationSample/Makefile @@ -54,7 +54,7 @@ DCAP_Library_Name := sgx_dcap_ql Urts_Library_Name := sgx_urts
App_Cpp_Files := App/App.cpp -App_Include_Paths := -I$(SGX_SDK)/include -I../../QuoteGeneration/quote_wrapper/common/inc +App_Include_Paths := -I$(SGX_SDK)/include -I../../QuoteGeneration/quote_wrapper/common/inc -I../../QuoteGeneration/quote_wrapper/ql/inc
App_C_Flags := $(SGX_COMMON_CFLAGS) -fPIC -Wno-attributes $(App_Include_Paths)
[root@VM-6-35-tencentos QuoteGenerationSample]# `
Better to update libsgx-dcap-ql-dev
package of your dev platform.
libsgx-dcap-ql-devel is already the latest
libsgx-dcap-ql-devel-1.10.103.1-1.el8.x86_64
The latest release is 1.16 now.
[root@VM-6-35-tencentos QuoteGenerationSample]# make make target make[1]: Entering directory '/root/SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample' App/App.cpp: In function ‘int main(int, char)’: App/App.cpp:186:51: error: ‘SGX_QL_IDE_PATH’ was not declared in this scope SGX_QL_SUCCESS != sgx_ql_set_path(SGX_QL_IDE_PATH, "/usr/lib/x86_64-linux-gnu/libsgx_id_enclave.signed.so.1")) { ^
~~~~~~ App/App.cpp:186:51: note: suggested alternative: ‘SGX_QL_PCE_PATH’ SGX_QL_SUCCESS != sgx_ql_set_path(SGX_QL_IDE_PATH, "/usr/lib/x86_64-linux-gnu/libsgx_id_enclave.signed.so.1")) { ^~~~~~~ SGX_QL_PCE_PATH make[1]: ** [Makefile:162: App/App.o] Error 1 make[1]: Leaving directory '/root/SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample' make: [Makefile:131: all] Error 2my fix , Makefile add headfile
App_Include_Paths := -I$(SGX_SDK)/include -I../../QuoteGeneration/quote_wrapper/common/inc -I../../QuoteGeneration/quote_wrapper/ql/inc #my change
then make success
[root@VM-6-35-tencentos QuoteGenerationSample]# make make target make[1]: Entering directory '/root/SGXDataCenterAttestationPrimitives/SampleCode/QuoteGenerationSample' CXX <= App/App.cpp g++ App/Enclave_u.o App/App.o -o app -m64 -O2 -lsgx_dcap_ql -lsgx_urts -ldl -lpthread LINK => app GEN => Enclave/Enclave_t.c CC <= Enclave/Enclave_t.c CXX <= Enclave/Enclave.cpp LINK => enclave.so There is no enclave test key.
The project will generate a key for test.
Generating RSA private key, 3072 bit long modulus (2 primes)
.....................................................................................++++
.....................................................................................++++
e is 3 (0x03)
tcs_num 1, tcs_max_num 1, tcs_min_pool 1 The required memory is 1376256B. The required memory is 0x150000, 1344 KB. Succeed. SIGN => enclave.signed.so The project has been built in release hardware mode.