#2416·openMVG

Error while using some API in application for MTK android platform specifically for Android.bp based build

Author: nikhiltagalpallewarCreated Apr 29, 2025Updated Jun 30, 2025

Hello, I am comming across following errors while building my custom application in Android.bp based build system.

d.lld: error: undefined symbol: openMVG::sfm::robustRelativePose(openMVG::cameras::IntrinsicBase const*, openMVG::cameras::IntrinsicBase const*, Eigen::Matrix<double, -1, -1, 0 , -1, -1> const&, Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, openMVG::sfm::RelativePose_Info&, std::__1::pair<unsigned long, unsigned long> const&, std::__1::pair<unsigned long, unsigned long> const&, unsigned long)

ld.lld: error: undefined symbol: openMVG::matching::DistanceRatioMatch(float, openMVG::matching::EMatcherType const&, openMVG::features::Regions const&, openMVG::features::Regio ns const&, std::__1::vector<openMVG::matching::IndMatch, std::__1::allocatoropenMVG::matching::IndMatch >&)

ld.lld: error: undefined symbol: openMVG::features::operator<<(std::__1::basic_ostream<char, std::__1::char_traits >&, openMVG::features::SIOPointFeature const&)

ld.lld: error: undefined symbol: openMVG::features::operator>>(std::__1::basic_istream<char, std::__1::char_traits >&, openMVG::features::SIOPointFeature&)

I have cross compiled openMVG for Android using toolchain and CMake based build system. The application with CMAKE build system is working fine. If I use CMAKE based libraries in Android.bp based build system then I am facing above error.

Dose anyone face this issue previously? Any headsup how to move further?