How to compile savings for ARM

I tried this command to configure savings,

./configure CXX=arm-linux-gnueabi-g++ CC=arm-linux-gnueabi-gcc --prefix=/arms/thrift --host=arm-linux-gnueabi --with-cpp --with-boost=/path-to-boost-for-arm

and met the following error: msg

check for boostlib> = 1.40.0 ... yes check libevent> = 1.0 ... configure: error: in `/arms/thrift-0.9.0 ': configure: error: can not run the test program during cross-compilation

Is there any solution?

+1
source share
2 answers

You get an error because there is no dependency you are trying to find. So first cross-compile all the dependency he is looking for.

 ./configure --help 

Here you will find how to include dependencies.

 --with-(dependency)=path-to-compiled-bin 
0
source

Thrift 0.9.0 BROKEN for cross-compiling. Part of the problems you see is because they have static paths for at least a few (if not all) things that do not offer pkg-config answers for things. He is looking beyond your sysroot for all kinds of things right now.

There is a problem registered in their Jira, but the position they take is "have you set your --includedir parameter?" (Uh, --includedir indicates where things are inside my sysroot, and you should observe things like disable PHP assemblies (now it is not ... sigh ...) and -with-libtool -sysroot, which prefixes everything so that you can cross-compile.) So, I donโ€™t think that help will be received at any time in the near future.

0
source

Source: https://habr.com/ru/post/1492838/


All Articles