ncnn ios 编译openmp 报错

ldxq2e6h  于 4个月前  发布在  iOS
关注(0)|答案(5)|浏览(50)

按照
https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-ios-on-macos-with-xcode
步骤编译openmp

执行 cmake --build . -j 4 指令时 报如下错误

[ 6%] Generating kmp_i18n_id.inc
[ 6%] Generating kmp_i18n_default.inc
/bin/sh: /usr/local/bin/perl: No such file or directory
/bin/sh: /usr/local/bin/perl: No such file or directory
make[2]: *** [runtime/src/kmp_i18n_id.inc] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [runtime/src/kmp_i18n_default.inc] Error 127
make[1]: *** [runtime/src/CMakeFiles/libomp-needed-headers.dir/all] Error 2
make: *** [all] Error 2

6ovsh4lw

6ovsh4lw1#

try install perl first

14ifxucb

14ifxucb3#

当运行
sed -e 's/NAME/openmp/g' -e 's/IDENTIFIER/org.llvm.openmp/g' -e 's/VERSION/11.0/g' Info.plist > openmp.framework/Versions/A/Resources/Info.plist

报错:
sed: Info.plist: No such file or directory

9rygscc1

9rygscc14#

I have the same issue. Can you help me?
I run on mac m1

xoshrz7s

xoshrz7s5#

I fixed it with a solution:
which perl: you can find the path of the perl
ls -n path_perl /usr/local/bin/perl

相关问题