使用Libtool程序库,但'libtool的“未定义:错误 [英] error: Libtool library used but 'LIBTOOL' is undefined
问题描述
我试图的automake
的OrientDb C ++库,但得到一些错误。
I am trying to automake
the OrientDb C++ library, but getting some errors.
Makefile.am:10: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:10: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:10: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:10: If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:10: its definition is in aclocal's search path.
https://github.com/tglman/orientdb-c
<一个href=\"https://github.com/tglman/orientdb-c/wiki/Install\">https://github.com/tglman/orientdb-c/wiki/Install
我有configure.ac和Makefile.am已经定义。
I have configure.ac and Makefile.am already defined.
我运行下面的自动工具
-
aclocal会
aclocal
autoheader就
autoheader
automake的:
automake:
的libtool(GNU的libtool)2.4.2
configure.ac
configure.ac
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([orientdb-c],[0.9])
AC_CONFIG_SRCDIR([src/o_query_internal.h])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE()
# Checks for programs.
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
LT_INIT
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([malloc.h memory.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([gethostbyname memset socket strchr strcspn strdup strerror])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
事情我已经尝试过:
Things I already tried:
-
autoreconf
autoreconf
aclocal会-I在/ usr /共享/ libtool的
aclocal -I /usr/share/libtool
aclocal会-I。
aclocal -I .
推荐答案
固定它。我需要在目录中运行 libtoolize
,然后重新运行:
Fixed it. I needed to run libtoolize
in the directory, then re-run:
-
aclocal会
aclocal
autoheader就
autoheader
这篇关于使用Libtool程序库,但'libtool的“未定义:错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!