Build for Android

asked 2019-04-10 01:57:34 -0600

midevp gravatar image

I'm trying build for Android. And have error:

[ 56%] Linking CXX shared library ../../lib/armeabi-v7a/libopencv_freetype.so /home/michael/Android/android-ndk-r18b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lfreetype /home/michael/Android/android-ndk-r18b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lharfbuzz CMakeFiles/opencv_freetype.dir/src/freetype.cpp.o:freetype.cpp:function cv::freetype::FreeType2Impl::FreeType2Impl(): error: undefined reference to 'FT_Init_FreeType' CMakeFiles/opencv_freetype.dir/src/freetype.cpp.o:freetype.cpp:function cv::freetype::FreeType2Impl::~FreeType2Impl(): error: undefined reference to 'hb_font_destroy' CMakeFiles/opencv_freetype.dir/src/freetype.cpp.o:freetype.cpp:function cv::freetype::FreeType2Impl::~FreeType2Impl(): error: undefined reference to 'FT_Done_Face' CMakeFiles/opencv_freetype.dir/src/freetype.cpp.o:freetype.cpp:function cv::freetype::FreeType2Impl::~FreeType2Impl(): error: undefined reference to 'FT_Done_FreeType'

What have I do for correcting?

edit retag flag offensive close merge delete