Giter Club home page Giter Club logo

android-hpe-library's Issues

Android.mk:head_pose_det: non-system libraries in linker flags: -latomic

Hi, when i run %NDK_PATH%\ndk-build.cmd into "jni" folder , i get this error. Anyone can help me ?

C:\Users\android-hpe-library-master\android-hpe-library-master\jni>%NDK_PATH%\ndk-build.cmd Android NDK: WARNING:C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/jni/Android.mk:head_pose_det: non-system libraries in linker flags: -latomic Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Android NDK: WARNING:C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/jni/Android.mk:head_pose_det: non-system libraries in linker flags: -latomic Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module [armeabi-v7a] Compile++ arm : head_pose_det <= jni_head_pose_det.cpp [armeabi-v7a] Compile++ arm : head_pose_det <= imageutils_jni.cpp [armeabi-v7a] Compile++ arm : head_pose_det <= rgb2yuv.cpp [armeabi-v7a] Compile++ arm : head_pose_det <= yuv2rgb.cpp [armeabi-v7a] Compile++ arm : head_pose_det <= bitmap2mat2bitmap.cpp [armeabi-v7a] Compile++ thumb: dlib <= threads_kernel_shared.cpp [armeabi-v7a] Compile++ thumb: dlib <= entropy_decoder_kernel_2.cpp [armeabi-v7a] Compile++ thumb: dlib <= base64_kernel_1.cpp [armeabi-v7a] Compile++ thumb: dlib <= threads_kernel_1.cpp [armeabi-v7a] Compile++ thumb: dlib <= threads_kernel_2.cpp [armeabi-v7a] StaticLibrary : libdlib.a [armeabi-v7a] Compile++ thumb: miniglog <= logging.cc [armeabi-v7a] StaticLibrary : libminiglog.a [armeabi-v7a] SharedLibrary : libhead_pose_det.so C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/third_party/OpenCV-android-sdk/sdk/native/jni/../libs/armeabi-v7a/libopencv_calib3d.a(fundam.cpp.o):fundam.cpp:function _GLOBAL__sub_I_fundam.cpp: error: undefined reference to 'std::ios_base::Init::Init()' C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/third_party/OpenCV-android-sdk/sdk/native/jni/../libs/armeabi-v7a/libopencv_calib3d.a(fundam.cpp.o):fundam.cpp:function _GLOBAL__sub_I_fundam.cpp: error: undefined reference to 'std::ios_base::Init::~Init()' C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/third_party/OpenCV-android-sdk/sdk/native/jni/../libs/armeabi-v7a/libopencv_calib3d.a(rho.cpp.o):rho.cpp:function std::vector<unsigned int, std::allocator<unsigned int> >::_M_fill_insert(__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator<unsigned int> > >, unsigned int, unsigned int const&): error: undefined reference to 'std::__throw_length_error(char const*)' C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/third_party/OpenCV-android-sdk/sdk/native/jni/../libs/armeabi-v7a/libopencv_calib3d.a(solvepnp.cpp.o):solvepnp.cpp:function std::vector<cv::Point3_<double>, std::allocator<cv::Point3_<double> > >::_M_fill_insert(__gnu_cxx::__normal_iterator<cv::Point3_<double>*, std::vector<cv::Point3_<double>, std::allocator<cv::Point3_<double> > > >, unsigned int, cv::Point3_<double> const&): error: undefined reference to 'std::__throw_length_error(char const*)' C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/third_party/OpenCV-android-sdk/sdk/native/jni/../libs/armeabi-v7a/libopencv_calib3d.a(solvepnp.cpp.o):solvepnp.cpp:function std::vector<cv::Point_<double>, std::allocator<cv::Point_<double> > >::_M_fill_insert(__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double>, std::allocator<cv::Point_<double> > > >, unsigned int, cv::Point_<double> const&): error: undefined reference to 'std::__throw_length_error(char const*)' tbb::internal::throw_exception_v4(tbb::internal::exception_id): error: undefined reference to 'std::invalid_argument::invalid_argument(std::string const&)' C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/third_party/OpenCV-android-sdk/sdk/native/jni/../3rdparty/libs/armeabi-v7a/libtbb.a(tbb_misc.cpp.o):tbb_misc.cpp:function tbb::internal::throw_exception_v4(tbb::internal::exception_id): error: undefined reference to 'std::range_error::range_error(std::string const&)' C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/third_party/OpenCV-android-sdk/sdk/native/jni/../3rdparty/libs/armeabi-v7a/libtbb.a(tbb_misc.cpp.o):tbb_misc.cpp:function tbb::internal::throw_exception_v4(tbb::internal::exception_id): error: undefined reference to 'std::range_error::range_error(std::string const&)' C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/third_party/OpenCV-android-sdk/sdk/native/jni/../3rdparty/libs/armeabi-v7a/libtbb.a(tbb_misc.cpp.o):tbb_misc.cpp:function tbb::internal::throw_exception_v4(tbb::internal::exception_id): error: undefined reference to 'std::invalid_argument::invalid_argument(std::string const&)' clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [G:/IT/AndroidStudioSdk/AndroidStudio/ndk/21.0.6113669/build//../build/core/build-binary.mk:725: C:/Users/Mohammad/Downloads/android-hpe-library-master/android-hpe-library-master/obj/local/armeabi-v7a/libhead_pose_det.so] Error 1

Compilation fails

Hi this is me trying to follow your hints in the head pose estimation issue #7 :-).

Unfortunately I get compilation errors when I try compilating your code.

I precisely followed the individual steps:

  • downloaded android-hpe-library to "F:\MyName\Apps\android-hpe-library-master2\android-hpe-library-master"
  • downloaded the old version Android-NDK ndk-r13b and unpacked it to "F:\Programme\android-ndk-r13b-windows-x86_64\android-ndk-r13b"
  • added this ndk path to system Path variable, reboot
  • downloaded the old version OpenCV Android SDK 3.1.0 and unpacked it to "F:\MyName\Apps\android-hpe-library-master2\android-hpe-library-master\third_party\OpenCV-android-sdk"
  • opened comand line window, switched to "F:\MyName\Apps\android-hpe-library-master2\android-hpe-library-master" and run command ndk-build -j 2

Result

[armeabi-v7a] Compile++ arm : head_pose_det <= jni_head_pose_det.cpp
[armeabi-v7a] Compile++ arm : head_pose_det <= imageutils_jni.cpp
jni/imageutils_jni.cpp:12:10: fatal error: 'glog/logging.h' file not found
#include <glog/logging.h>
^
In file included from jni/jni_head_pose_det.cpp:2:
jni\common/bitmap2mat2bitmap.h:5:10: fatal error: 'glog/logging.h' file not found
#include <glog/logging.h>
^
1 error generated.
make: *** [obj/local/armeabi-v7a/objs/head_pose_det/imageutils_jni.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
make: *** [obj/local/armeabi-v7a/objs/head_pose_det/jni_head_pose_det.o] Error 1`

I assume some dependency is missing? Do I need to additionally link to glog? (How to do this?)

Thanks for your highly appreciated help!
Zwischenablage06
Zwischenablage08

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.