VeriSilicon / TIM-VX

VeriSilicon Tensor Interface Module
Other
226 stars 84 forks source link

CMake Generate step failed. Trying to create TensorFlow Lite C++ minimal example to run models on our A311D processor #563

Open FrankdenUijl opened 1 year ago

FrankdenUijl commented 1 year ago

CMake Generate step failed.

Trying to create the TensorFlow Lite C++ minimal example to run models on our A311D processor.

If I not mistaken I need to run cmake .. -D HARDWARE=A311D in this repository first, and then the cmake of the tflite-vx-delegate repository?

When I run cmake .. -D HARDWARE=A311D in this repo on my windows 11 machine I get the following error:

cmake .. -D HARDWARE=A311D
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.35.32215.0
-- The CXX compiler identification is MSVC 19.35.32215.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - 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: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Processing X86_64.cmake ...
found lib CLC at OVXDRV_FOUND_LIB_0-NOTFOUND
--->OVXDRV_LIBRARIESOVXDRV_FOUND_LIB_0-NOTFOUND
found lib GAL at OVXDRV_FOUND_LIB_1-NOTFOUND
--->OVXDRV_LIBRARIESOVXDRV_FOUND_LIB_1-NOTFOUND
found lib OpenVX at OVXDRV_FOUND_LIB_2-NOTFOUND
--->OVXDRV_LIBRARIESOVXDRV_FOUND_LIB_2-NOTFOUND
found lib OpenVXU at OVXDRV_FOUND_LIB_3-NOTFOUND
--->OVXDRV_LIBRARIESOVXDRV_FOUND_LIB_3-NOTFOUND
found lib VSC at OVXDRV_FOUND_LIB_4-NOTFOUND
--->OVXDRV_LIBRARIESOVXDRV_FOUND_LIB_4-NOTFOUND
found lib ArchModelSw at OVXDRV_FOUND_LIB_5-NOTFOUND
--->OVXDRV_LIBRARIESOVXDRV_FOUND_LIB_5-NOTFOUND
found lib NNArchPerf at OVXDRV_FOUND_LIB_6-NOTFOUND
--->OVXDRV_LIBRARIESOVXDRV_FOUND_LIB_6-NOTFOUND
-- Could NOT find OVXDRV (missing: OVXDRV_LIBRARIES)
src/tim/vx
src/tim/vx/internal
-- OVXLIB include directory: C:/Users/Frank/Documents/4Growth/wksp/tim-vx/src/tim/vx/internal/include
-- Configuring done (2.3s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OVXDRV_FOUND_LIB_0
    linked by target "tim-vx" in directory C:/Users/Frank/Documents/4Growth/wksp/tim-vx/src/tim
OVXDRV_FOUND_LIB_1
    linked by target "tim-vx" in directory C:/Users/Frank/Documents/4Growth/wksp/tim-vx/src/tim
OVXDRV_FOUND_LIB_2
    linked by target "tim-vx" in directory C:/Users/Frank/Documents/4Growth/wksp/tim-vx/src/tim
OVXDRV_FOUND_LIB_3
    linked by target "tim-vx" in directory C:/Users/Frank/Documents/4Growth/wksp/tim-vx/src/tim
OVXDRV_FOUND_LIB_4
    linked by target "tim-vx" in directory C:/Users/Frank/Documents/4Growth/wksp/tim-vx/src/tim
OVXDRV_FOUND_LIB_5
    linked by target "tim-vx" in directory C:/Users/Frank/Documents/4Growth/wksp/tim-vx/src/tim
OVXDRV_FOUND_LIB_6
    linked by target "tim-vx" in directory C:/Users/Frank/Documents/4Growth/wksp/tim-vx/src/tim

-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    HARDWARE

CMake Generate step failed.  Build files cannot be regenerated correctly.

How can I fix this?

sunshinemyson commented 1 year ago

@FrankdenUijl ,

please use -DCONFIG=A311D not HARDWARE;

And windows 11 may not work since we need to unzip toolchain with linux tools.

Thanks