Tencent / ncnn

ncnn is a high-performance neural network inference framework optimized for the mobile platform
Other
19.78k stars 4.1k forks source link

cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/himix200.toolchain.cmake .. #4150

Open fxj8911 opened 1 year ago

fxj8911 commented 1 year ago

ubuntu16.04 编译 cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/himix200.toolchain.cmake .. 出错 错误日志: /opt/hisi-linux/x86-arm/arm-himix200-linux/bin/arm-himix200-linux-gcc -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/home/ubuntu/miniconda2/envs/tensorflow/lib -Wl,-rpath-link,/home/ubuntu/miniconda2/envs/tensorflow/lib -L/home/ubuntu/miniconda2/envs/tensorflow/lib -rdynamic CMakeFiles/cmTC_aca49.dir/testCCompiler.c.o -o cmTC_aca49 /home/ubuntu/miniconda2/envs/tensorflow/lib/libgcc_s.so.1: file not recognized: File format not recognized collect2: error: ld returned 1 exit status CMakeFiles/cmTC_aca49.dir/build.make:97: recipe for target 'cmTC_aca49' failed make[1]: [cmTC_aca49] Error 1 make[1]: Leaving directory '/mnt/work4/ncnn/build/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_aca49/fast' failed make: [cmTC_aca49/fast] Error 2

fxj8911 commented 1 year ago

请问上述问题怎么解决

nihui commented 1 year ago

使用干净的 ubuntu 系统