kendryte / kendryte-standalone-sdk

Standalone SDK for kendryte K210
https://kendryte.com
Apache License 2.0
440 stars 161 forks source link

hello-world cmake failing on d740f55894 (libnncase issue) #123

Closed SebastiaanMerckx closed 3 years ago

SebastiaanMerckx commented 3 years ago

I cloned and installed the toolchain as in https://github.com/kendryte/kendryte-gnu-toolchain, then cloned the SDK and tried to c build hello-world. The cmake step fails.

It seems to be caused by d740f55894 since I stepped back to parent 06a2ea71f2 which seems all good. Errors pointing to libnncase.

cmake .. -DPROJ=hello_world -DTOOLCHAIN=/opt/kendryte-toolchain/bin

output:

-- Check for RISCV toolchain ... -- Using /opt/kendryte-toolchain/bin RISCV toolchain -- The C compiler identification is GNU 8.2.0 -- The CXX compiler identification is GNU 8.2.0 -- The ASM compiler identification is GNU -- Found assembler: /opt/kendryte-toolchain/bin/riscv64-unknown-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/kendryte-toolchain/bin/riscv64-unknown-elf-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/kendryte-toolchain/bin/riscv64-unknown-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at lib/nncase/v1/lib/cmake/nncaseruntime/nncaseruntimeTargets.cmake:122 (message): The imported target "nncaseruntime" references the file

 "/home/sebastiaan/kendryte/kendryte-standalone-sdk/lib/nncase/v1/lib/libnncase.runtime.a"

but this file does not exist. Possible reasons include:

Call Stack (most recent call first): lib/nncase/v1/lib/cmake/nncaseruntime/nncaseruntimeConfig.cmake:1 (include) lib/nncase/v1/CMakeLists.txt:3 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/sebastiaan/kendryte/kendryte-standalone-sdk/build/CMakeFiles/CMakeOutput.log".

xx5988 commented 3 years ago

I also encountered the same problem!!

sunnycase commented 3 years ago

Missing files have been added, please pull newest code.