Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/bin/ld: skipping incompatible ncnn/build/install/lib//libncnn.a when searching for -lncnn #48

Open
SangerY opened this issue Jan 29, 2021 · 0 comments

Comments

@SangerY
Copy link

SangerY commented Jan 29, 2021

在ubuntu上将darknet模型成功转换为ncnn后推理成功。
现在想将ncnn模型用在arm上,
$ cd ncnn
$ mkdir -p build
$ cd build-arm-linux-gnueabi
$ cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/arm-linux-gnueabi.toolchain.cmake ..
$ make -j4
$ make install
交叉编译ncnn成功了

再进行libdarknet2ncnn.a生成操作,报错:
/usr/bin/ld: skipping incompatible ncnn/build/install/lib//libncnn.a when searching for -lncnn
/usr/bin/ld: cannot find -lncnn

我的ncnn/build/install/lib下是有libncnn.a的。
请问下libdarknet2ncnn交叉编译需要怎么操作?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant