You cannot use your host libraries when compiling for a different architecture. First, you need to cross compile ...
stackoverflow.com