autogen.sh出错

执行autogen.sh
显示如下错误:

configure.ac:24: error: possibly undefined macro: AC_DISABLE_STATIC
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:25: error: possibly undefined macro: AC_ENABLE_SHARED
configure.ac:26: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:27: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1


解决方案:

    sudo apt-get install libtool

define BUILD_PROJECT include $(CUR_DIR)/$(1)/Makefile $(1)_CONFIGURE := \ --prefix=$(CUR_DIR)/exec \ --build=x86_64-linux-gnu \ --host=$(TARGET_HOST) \ --bindir=$(BIN_DEPLOY_DIR) \ --libdir=$(LIB_DEPLOY_DIR) \ --includedir=$(INC_DEPLOY_DIR) \ $$($(1)_configure_opts) build_$(1): DEF_IPATH += $$($(1)_ipath) build_$(1): SLFLAGS += $$($(1)_lib) build_$(1): @if [ ! -d "$(CUR_DIR)/$(1)/$$($(1)_version)" ]; then \ echo "error: $(CUR_DIR)/$(1)/$$($(1)_version) no exist"; exit 1; \ fi @if [ -f "$(LOCALINSTALLPATH)/thirdty/$(1)/Makefile" ]; then \ echo "Makefile exist"; \ elif [ -f "$(CUR_DIR)/$(1)/$$($(1)_version)/configure" ]; then \ mkdir -p $(LOCALINSTALLPATH)/thirdty/$(1) && cd $(LOCALINSTALLPATH)/thirdty/$(1) && $(HOST_CONFIGURE_OPTS) \ $(CUR_DIR)/$(1)/$$($(1)_version)/configure $$($(1)_CONFIGURE) \ || { echo "======= error ======="; \ grep -A20 "checking build" "$(LOCALINSTALLPATH)/thirdty/$(1)/config.log"; \ exit 1; }; \ elif [ -f "$(CUR_DIR)/$(1)/$$($(1)_version)/autogen.sh" ]; then \ (cd "$(CUR_DIR)/$(1)/$$($(1)_version)" && ./autogen.sh) || exit 1; \ mkdir -p $(LOCALINSTALLPATH)/thirdty/$(1) && cd $(LOCALINSTALLPATH)/thirdty/$(1) && $(HOST_CONFIGURE_OPTS) \ $(CUR_DIR)/$(1)/$$($(1)_version)/configure $$($(1)_CONFIGURE) \ || { echo "======= error ======="; \ grep -A20 "checking build" "$(LOCALINSTALLPATH)/thirdty/$(1)/config.log"; \ exit 1; }; \ elif [ -f "$(CUR_DIR)/$(1)/CMakeLists.txt" ]; then \ mkdir -p $(LOCALINSTALLPATH)/thirdty/$(1) && cd $(LOCALINSTALLPATH)/thirdty/$(1) && $(HOST_CONFIGURE_OPTS) \ cmake -DCMAKE_C_COMPILER="$(CC)" -DCMAKE_CXX_COMPILER="$(CPP)" -DCMAKE_C_COMPILER_AR="$(AR)" -DCMAKE_CXX_COMPILER_AR="$(AR)" -DCMAKE_LINKER="$(CC_LD)" -DCMAKE_ASM_COMPILER="$(AS)" -DCMAKE_STRIP="$(STRIP)" -S $(CUR_DIR)/$(1) -B $(LOCALINSTALLPATH)/thirdty/$(1); \ else \ echo "Error: Makefile, configure, or autogen.sh not found in $(1)"; \ echo "Please manually create a Makefile in this directory or provide a configuration script"; \ exit 1; \ fi @if [ -d "$(CUR_DIR)/$(1)/package" ]; then \ cd $(CUR_DIR)/$(1)/$$($(1)_version) && \ git am ../package/$$($(1)_version)/*.patch 2>/dev/null || true; \ fi endef 修正子目录无Makefile文件退出的问题
11-13
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值