我已经在我的 Linux 机器上配置并安装了 thrift 包。现在我正在尝试为 ARM 交叉编译节俭。
我遵循的步骤是:
- 解压旧包
- 配置使用
./configure --host=arm-linux-gnueabi --without-java --without-python --with-c_glib --with-cpp
但是当我这样做时,我收到以下错误
checking for boostlib >= 1.54.0... yes checking for libevent >= 1.0... configure: error: in '/home/deeraj/arm_thrift': configure: error: cannot run test program while cross compiling See 'config.log' for more details
为了克服这个问题,我在文件中替换AC_RUN_IFELSE
为. 在此之后,我运行AC_LINK_IFELSE
aclocal/ax_lib_event.m4
aclocal/ax_lib_zlib.m4
autoconf
当我./configure --host=arm-linux-gnueabi --without-java --without-python --with-c_glib --with-cpp
再次运行时,出现以下错误:
checking for setsockopt in -lsocket... no
checking for BN_init in -lcrypto... no
configure: error: "Error: libcrypto required."
我已经安装了libssl-dev
,但它没有消除错误。
我们如何解决这个问题并为 ARM 交叉编译和安装 thrift?