-
Notifications
You must be signed in to change notification settings - Fork 4.3k
app problem #38
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
Comments
刚刚我也遇到这个错误了 $ export ANDROID_NDK=/absolute/path/to/the/android-ndk$ mkdir build && cd build$ cmake -DCMAKE_TOOLCHAIN_FILE=path/to/the/android.toolchain.cmake ..$ make -j8$ make install亲测可用 |
@noiplcx,你是在linux下生成libncnn.a,又在linux下编译jni的吗? |
@noiplcx,试过了,会提示2个错误,后来按官网cmake打包android-sdk配置环境,成功生成libsqueezencnn.so,地址:https://github.com/Tencent/ncnn/wiki/cmake-打包-android-sdk, |
@eeric 能分享个 .so文件用吗? |
https://github.com/dangbo/ncnn-mobile use ncnn in Android and iOS |
@eeric 我按照cmake打包android-sdk的说明,最后结果如下,并没有生成.so 文件,请教下是什么问题 |
@jj8401 |
@eeric 我已经改过了 生成的.so文件有1.5m大小,相比官方参考的那个app里的.so文件270kb,想问下您生成的士多大,有没有影响 |
@jj8401,我的1.23M,这个大小与你的编译工具有关吧 |
@eeric 非常感谢 |
@eeric 你的NDK版本和CMAKE版本能说下吗 |
@enduringstack |
请问您的.so文件是在make install以后就有的么?还是在jni文件夹内ndk_build后才生成的? |
error as following:
undefined reference to 'ncnn:Net::load_param(unsigned char const*)'
undefined reference to 'ncnn:Net::load_model(unsigned char const*)'
undefined reference to 'ncnn:Net::from_pixels(unsigned char const*,int,int,int)'
........
undefined reference to 'ncnn:Net::Net()'
undefined reference to 'ncnn:Net::~Net()'
error:linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: