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, including ltmain.sh (which main component of libtool).
  • aclocal: looks m4 macros configure script need, , make local copy easier access.
  • autoheader: optional, if want use config.h/ac_config_headers, otherwise test result macros inlined when call compiler.
  • autoconf: expand macros used configure.ac configure script.
  • automake: convert makefile.am makefile.in templates. want invoke --add-missing additional support scripts can linked/copied project (such compile, 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 makefiles 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 makefiles, 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 of autoreconf , automake’s rebuild rules.

so there have it: use autoreconf -i future-proof, unless have reason use tools directly.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -