c - Automake error './ltmain.sh' not found -
i've installed mingw , msys using mingw-get-setup.exe
. i've installed autotools(autoconf, automake,m4,libtool) c:\/opt/autotools
.
when run automake, following error occurs:
configure.ac:11: error: required file './ltmain.sh' not found
if copy ltmain.sh
libtool’s installed tree, execution finish normally.
how can configuure automake find ltmain.sh
without copying?
in autoconf
/automake
/libtool
project have invoke:
libtoolize
: copies/links few support scripts, includingltmain.sh
(which main component of libtool).aclocal
: looks m4 macros configure script need, , make local copy easier access.autoheader
: optional, if want useconfig.h
/ac_config_headers
, otherwise test result macros inlined when call compiler.autoconf
: expand macros usedconfigure.ac
configure
script.automake
: convertmakefile.am
makefile.in
templates. want invoke--add-missing
additional support scripts can linked/copied project (suchcompile
,missing
,depcomp
,test-driver
, etc).
you'll want add bootstrap
script each of projects, invokes of tools, in order. or lazy , invoke autoreconf -i
, see if works project.
after (and while) have working makefile
s generated configure script, autotools takes care of itself; is, if edit configure.ac
, or makefile.am
, correct tools above invoked again keep updated, running make
. careful not create syntax error in makefile.am
files, otherwise might end broken makefile
s, causing make
refuse run - in case have run bootstrap
script (or autoreconf
) manually.
edit:
the automake manual says aclocal:
aclocal
expected disappear.
and further down:
from user point of view,
aclocal
's removal might turn out painful. there simple precaution may take make switch more seamless: never call aclocal yourself. keep guy under exclusive control ofautoreconf
, automake’s rebuild rules.
so there have it: use autoreconf -i
future-proof, unless have reason use tools directly.
Comments
Post a Comment