DMTF / spdm-emu

BSD 3-Clause "New" or "Revised" License
32 stars 44 forks source link

Unable to build spdm-emu on Linux #374

Closed DillonHeinenIntel closed 1 month ago

DillonHeinenIntel commented 1 month ago

I'm attempting to follow the Linux directions below in the README.md file:

Linux Build with CMake

(TOOLCHAIN=GCC|CLANG)

   cd spdm_emu
   mkdir build
   cd build
   cmake -DARCH=<x64|ia32|arm|aarch64|riscv32|riscv64|arc> -DTOOLCHAIN=<toolchain> -DTARGET=<Debug|Release> -DCRYPTO=<mbedtls|openssl> ..
   make copy_sample_key
   make

However, I'm seeing this issue:

usr> cd spdm_emu && rm -rf build && mkdir build && cd build && cmake -DCMAKE_C_COMPILER=<compiler-path-omitted> -DARCH=x64 -DTOOLCHAIN=GCC -DTARGET=Debug -DCRYPTO=openssl .. && make copy_sample_key && make

CMake Error: The source directory "//spdm-emu/spdm_emu" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

It looks like there's not a CMakeLists.txt file that can be used in the way specified. Am I doing something wrong?

steven-bellock commented 1 month ago

Those instructions are wrong. The build directory needs to be in spdm-emu/build, not spdm-emu/spdm_emu/build.