2013-05-20 4 views
3

MacOS 10.8.3 시스템에서 libtool을 작동 시키려고합니다. Apple이 제공하는 모든것이 오래 되었기 때문에 나는 macports를 사용하고 있습니다. 최신 버전이 있습니다 :MacOS의 glibtoolize가 ACLOCAL_AMFLAGS에`-I m4 '를 추가한다고 알려주지 만, 오류가 발생합니다.

libtool (GNU libtool) 2.4.2 
automake (GNU automake) 1.13.1 
autoconf (GNU Autoconf) 2.69 

모두/opt에 설치되어 있습니다. 내가이 줄을 추가하면

glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and 
glibtoolize: rerunning glibtoolize, to keep the correct libtool macros in-tree. 
glibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. 

하는 메이크 :

lib_LTLIBRARIES = libsomething-1.0.la 
libsomething_1_0_la_SOURCES = something.cc 


bin_PROGRAMS = hello 
hello_SOURCES = hello.h hello.cc main.cc 

실행 glibtoolize이 오류가 발생합니다 : 여기

AC_INIT([Hello], [0.1], [[email protected]], [hello], [http://hello.example.com/]) 
AC_PREREQ([2.59]) 
AM_INIT_AUTOMAKE([1.10 no-define]) 
LT_INIT 
AC_CONFIG_HEADERS([config.h]) 
AC_PROG_CXX 
AC_CONFIG_FILES([Makefile]) 
AC_OUTPUT 

는 Makefile.am입니다 : 여기

은 configure.ac입니다 .am : ACLOCAL_AMFLAGS = "- I m4" 이 오류가 발생합니다. 나는이로 변경하는 경우

glibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. 

는 : ACLOCAL_AMFLAGS의 = "- IM4"

를 저도 같은 오류가 발생합니다 : glibtoolize는 : Makefile.am에서 ACLOCAL_AMFLAGS에`-I m4를 추가하는 것이 좋습니다.

내가 할 두 번째 오류는 다음과 같습니다

configure.ac:5: error: required file '../ltmain.sh' not found 

어떻게 이러한 오류가 멀리 갈 수 있을까요?

답변

5

그것은 할 필요가 :

ACLOCAL_AMFLAGS = -I m4 

Makefile.am과 : configure.ac

AC_CONFIG_MACRO_DIR([m4]) 

합니다. $(top_srcdir)m4 디렉토리가 있습니까?

+0

공백이 적용되었습니다. 얼마나 이상합니다. 얼마나 드문 지. 이제이 오류가 있습니다 : ''configure.ac:5 : error : required file '../ltmain.sh'not found' 'autoreconf : automake가 종료 상태로 실패했습니다 : 1' – vy32

+0

'autoreconf -fvi'는 다음과 같이해야합니다. 그걸 돌봐. – ldav1s

+0

그렇지 않았습니다. 이 시스템이 손상되었는지 궁금합니다 ... – vy32