edgelesssys / edgelessrt

Edgeless RT is an SDK and a runtime for Intel SGX. It combines top-notch Go support with simplicity, robustness and a small TCB. Developing confidential microservices has never been easier! C++17 and Rust (experimental) are also supported.
https://edgeless.systems
MIT License
134 stars 20 forks source link

Make Error at CMakeLists.txt When test the go samples #110

Closed knight-hjh closed 2 years ago

knight-hjh commented 2 years ago

I followed the document here: image and when I execute cmake .. under the build. it will report the error: CMake Error at CMakeLists.txt:17 (add_executable): Target "enclave" links to target "openenclave::ertdeventry" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? image

I have checked the CmakeList. image target_link_libraries(enclave openenclave::oeenclave openenclave::ertdeventry ${CMAKE_BINARY_DIR}/hello.a) This command requires to link the openenclave:;ertdeventry. but when I checked the file under openenclave/cmake, it shows like that image there is no openenclave::ertdeventry.

anyone knows? :(

thomasten commented 2 years ago

Can you show the output of echo $CMAKE_PREFIX_PATH ?

knight-hjh commented 2 years ago

图片

Is that right?

thomasten commented 2 years ago

That looks right. Try running cmake without sudo. (Remove the contents within the build folder first.)

knight-hjh commented 2 years ago

thanks, it works now.