[VTA] Xilinx Pynq FPGA Setup"Cmake error"

Hi, all

my board is Pynq Z1 ubuntu 20.04 pynq image-v3.0

I am doing now "Pynq-Side RPC Server Build & Deployment " : VTA Installation Guide — tvm 0.11.dev0 documentation

On the Host-side

mkdir sshfs xilinx@192.168.2.99:/home/xilinx cd git clone --recursive https://github.com/apache/tvm tvm

When finished, you can leave the moutpoint and unmount the directory

cd ~ sudo umount

ssh xilinx@192.168.2.99

Build TVM runtime library (takes 5 mins)

cd /home/xilinx/tvm

mkdir build

cp cmake/config.cmake build/.

echo ‘set(USE_VTA_FPGA ON)’ >> build/config.cmake

Copy pynq specific configuration

cp 3rdparty/vta-hw/config/pynq_sample.json 3rdparty/vta-hw/config/vta_config.json

cd build

cmake …

I failed on here “cmake”

my error mssge is here : xilinx@pynq:~/pynq_vta/tvm/build$ cmake … – Forbidding undefined symbols in shared library, using -Wl,–no-undefined on platform Linux – Build with RPC support… – Build with Graph Executor support… – Build with profiler… – Build with AOT Executor support… CMake Error at CMakeLists.txt:452 (message): Neither GTest::GTest nor GTest::gtest targets defined IMPORTED_LOCATION

– Configuring incomplete, errors occurred! See also “/home/xilinx/pynq_vta/tvm/build/CMakeFiles/CMakeOutput.log”.

Here is the CMakeOutput.log messages: The system is: Linux - 5.15.19-xilinx-v2022.1 - armv7l Compiling the C compiler identification source file “CMakeCCompilerId.c” succeeded. Compiler: /usr/bin/cc Build flags: Id flags:

The output was: 0

Compilation of the C compiler identification source “CMakeCCompilerId.c” produced “a.out”

The C compiler identification is GNU, found in “/home/xilinx/pynq_vta/tvm/build/CMakeFiles/3.22.1/CompilerIdC/a.out”

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” succeeded. Compiler: /usr/bin/c++ Build flags: Id flags:

The output was: 0

Compilation of the CXX compiler identification source “CMakeCXXCompilerId.cpp” produced “a.out”

The CXX compiler identification is GNU, found in “/home/xilinx/pynq_vta/tvm/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out”

Detecting C compiler ABI info compiled with the following output: Change Dir: /home/xilinx/pynq_vta/tvm/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_e2725/fast && /usr/bin/gmake -f CMakeFiles/cmTC_e2725.dir/build.make CMakeFiles/cmTC_e2725.dir/build gmake[1]: Entering directory ‘/home/xilinx/pynq_vta/tvm/build/CMakeFiles/CMakeTmp’ Building C object CMakeFiles/cmTC_e2725.dir/CMakeCCompilerABI.c.o /usr/bin/cc -v -o CMakeFiles/cmTC_e2725.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.22/Modules/CMakeCCompilerABI.c Using built-in specs. COLLECT_GCC=/usr/bin/cc Target: arm-linux-gnueabihf Configured with: …/src/configure -v --with-pkgversion=‘Ubuntu 11.2.0-19ubuntu1’ --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix Supported LTO compression algorithms: zlib zstd “CMakeFiles/CMakeOutput.log” 471L, 47239B

thank you all T0T