Tag Archives: libtool

Solution: error: libtool library used but ‘libtool’ is undefined

When spice library function pixman is compiled,

appears:

pixman/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
pixman/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
pixman/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
pixman/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
pixman/Makefile.am:1:   its definition is in aclocal's search path.
test/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')

means: LT_INIT is defined in configure. Ac, but aclocal cannot be searched. Configure.ac exists in the libtool file. Aclocal searches configure.ac through the libtool.m4 file.

solution:

1) make aclocal folder and libtool folder in the same directory, and aclocal contains libtool.m4, playing a bridging role;

2) when aclocal has libtool.m4 file, and aclocal and libtool file are in the same directory, it is also necessary to check whether the search path of aclocal is located in the parent directory of aclocal.

my search path is /usr/local/share/aclocal, but the parent directory of my aclocal and libtool is /usr/share/aclocal. The two are different.

all, to change the search path or to add the corresponding file under the current search path.

1) modify the search path and find that it cannot be changed:

2) choose to add the corresponding file in the current search path, and recompile:

success!