OAID / Tengine

Tengine is a lite, high performance, modular inference engine for embedded device
Apache License 2.0
4.61k stars 998 forks source link

[求助][已解决]在 Khadas VIM3 上编译 Tengine 出错 #1247

Open zhanggd001 opened 2 years ago

zhanggd001 commented 2 years ago

环境:板子:Fenix 1.0.7 Ubuntu 20.04.2 LTS Linux 4.9.241,aml-npu/focal,now 6.4.6.2.5.3.2 arm64

1.编译之前板子上/usr/lib下有:libCLC.so libVSC.so 安装官方教程进行编译

 git clone https://github.com/VeriSilicon/TIM-VX.git
git clone https://github.com/OAID/Tengine.git tengine-lite

$ cd <tengine-lite-root-dir>
$ cp -rf ../TIM-VX/include  ./source/device/tim-vx/
$ cp -rf ../TIM-VX/src      ./source/device/tim-vx/

  wget -c https://github.com/VeriSilicon/TIM- 
 VX/releases/download/v1.1.28/aarch64_S905D3_D312513_A294074_R311680_T312233_O312045.tgz
  tar zxvf aarch64_S905D3_D312513_A294074_R311680_T312233_O312045.tgz

  mv aarch64_S905D3_D312513_A294074_R311680_T312233_O312045 prebuild-sdk-s905d3

  cd <tengine-lite-root-dir>

  mkdir -p ./3rdparty/tim-vx/include

  mkdir -p ./3rdparty/tim-vx/lib/aarch64

  cp -rf ../prebuild-sdk-s905d3/include/*  ./3rdparty/tim-vx/include/

  cd <tengine-lite-root-dir>

  mkdir build && cd build

  cmake -DTENGINE_ENABLE_TIM_VX=ON ..

  make -j`nproc` && make install

2.编译过程中: /usr/bin/ld: cannot find -lCLC /usr/bin/ld: cannot find -lVSC collect2: error: ld returned 1 exit status make[2]: [source/CMakeFiles/tengine-lite.dir/build.make:6980: source/libtengine-lite.so] Error 1 make[1]: [CMakeFiles/Makefile2:316: source/CMakeFiles/tengine-lite.dir/all] Error 2 make: *** [Makefile:160: all] Error 2

同时下发/usr/lib下:libCLC.so libVSC.so都不见了

tianyiqwq commented 2 years ago

大佬解决了吗,我也遇到这个问题了

zhanggd001 commented 2 years ago

大佬解决了吗,我也遇到这个问题了

没有解决...

tianyiqwq commented 2 years ago

大佬解决了吗,我也遇到这个问题了

没有解决...

解决了,我问了群里的大佬,是TIM-VX版本太新了,进到tim-vx目录里 git checkout 68b5acb,再来一遍成功了

zhanggd001 commented 2 years ago

十分感谢