clang ++:错误:链接器命令失败,退出代码为1(使用-v查看调用)ninja:构建停止:子命令失败

时间:2019-05-29 06:00:11

标签: android tensorflow cmake android-ndk

  

构建命令失败。

     

执行过程时出错   /Users/mohitsharma/Library/Android/sdk/cmake/3.6.4111459/bin/cmake   带参数{--build   /用户/ mohitsharma /下载/PoseEstimationForMobile-master/android_demo/demo_mace/macelibrary/.externalNativeBuild/cmake/debug/armeabi-v7a   --target mace_mobile_jni} [1/1]链接CXX共享库../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libmace_mobile_jni.so   失败:: &&   / Users / mohitsharma / Library / Android / sdk / ndk-bundle / toolchains / llvm / prebuilt / darwin-x86_64 / bin / clang ++   --target = armv7-none-linux-androideabi21 --gcc-toolchain = / Users / mohitsharma / Library / Android / sdk / ndk-bundle / toolchains / llvm / prebuilt / darwin-x86_64   --sysroot = /用户/ mohitsharma /库/ Android / sdk / ndk-bundle / toolchains / llvm / prebuilt / darwin-x86_64 / sysroot   -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind表-fstack-protector-strong-无规范前缀-mfpu = vfpv3-d16 -fno-addrsig -march = armv7-a -mthumb -Wa ,-noexecstack -Wformat -Werror = format-security -stdlib = libc ++ -std = c ++ 11 -fopenmp -O0 -fno-limit-debug-info -Wl,-exclude-libs,libgcc.a -Wl, --exclude-libs,libatomic.a -static-libstdc ++ -Wl,-build-id -Wl,-warn-shared-textrel -Wl,-致命警告-Wl,-exclude-libs,libunwind。 -Wl,-没有未定义的-带参数的参数-Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,现在共享了-Wl,-soname,libmace_mobile_jni.so -o ../ ../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libmace_mobile_jni.so   CMakeFiles / mace_mobile_jni.dir / src / main / cpp / spe.cc.o   ../../../../src/main/cpp/lib/armeabi-v7a/libmace.a   ../../../../src/main/cpp/lib/armeabi-v7a/cpm.a -llog -latomic -lm &&:   ../../../../src/main/cpp/include/mace/public/mace_engine_factory.h:66:   错误:未定义对'mace :: MaceEngine :: Init(mace :: NetDef的引用   const *,std :: __ ndk1 :: vector,std :: __ ndk1 :: allocator>,   std :: __ ndk1 :: allocator,std :: __ ndk1 :: allocator>>>   const&,std :: __ ndk1 :: vector,std :: __ ndk1 :: allocator>,   std :: __ ndk1 :: allocator,std :: __ ndk1 :: allocator>>>   const&,unsigned char const *)'   /用户/ mohitsharma /下载/PoseEstimationForMobile-master/android_demo/demo_mace/macelibrary/src/main/cpp/spe.cc:104:   错误:未定义引用   'mace :: FileStorageFactory :: FileStorageFactory(std :: __ ndk1 :: basic_string,std :: __ ndk1 :: allocator>   const&)'   /Users/mohitsharma/Downloads/PoseEstimationForMobile-master/android_demo/demo_mace/macelibrary/src/main/cpp/spe.cc:105:   错误:未定义引用   'mace :: SetKVStorageFactory(std :: __ ndk1 :: shared_ptr)'   /Users/mohitsharma/Downloads/PoseEstimationForMobile-master/android_demo/demo_mace/macelibrary/src/main/cpp/spe.cc:201:   错误:未定义引用   'mace :: MaceTensor :: MaceTensor(std :: __ ndk1 :: vector> const&,   std :: __ ndk1 :: shared_ptr)'   /Users/mohitsharma/Downloads/PoseEstimationForMobile-master/android_demo/demo_mace/macelibrary/src/main/cpp/spe.cc:206:   错误:未定义引用   'mace :: MaceTensor :: MaceTensor(std :: __ ndk1 :: vector> const&,   std :: __ ndk1 :: shared_ptr)'   /用户/ mohitsharma /下载/PoseEstimationForMobile-master/android_demo/demo_mace/macelibrary/src/main/cpp/spe.cc:209:   错误:未定义引用   'mace :: MaceEngine :: Run(std :: __ ndk1 :: map,std :: __ ndk1 :: allocator>,   钉头锤:: MaceTensor,std :: __ ndk1 :: less,std :: __ ndk1 :: allocator>>,   std :: __ ndk1 :: allocator,std :: __ ndk1 :: allocator> const,   钉头锤:: MaceTensor>>> const&,   std :: __ ndk1 :: map,std :: __ ndk1 :: allocator>,   钉头锤:: MaceTensor,std :: __ ndk1 :: less,std :: __ ndk1 :: allocator>>,   std :: __ ndk1 :: allocator,std :: __ ndk1 :: allocator> const,   钉头锤:: MaceTensor>>> *)'   ../../../../src/main/cpp/lib/armeabi-v7a/libmace.a(mace_runtime.o)(.text._ZN4mace18FileStorageFactory4ImplC2ERKSs+0x0):   clang ++:错误:链接器命令失败,退出代码为1(使用-v查看   忍者:构建已停止:子命令失败。

0 个答案:

没有答案