Solution: AC_CONFIG_MACRO_DIR conflicts with ACLOCAL_AMFLAGS

简介: .ibtoolize: AC_CONFIG_MACRO_DIR([./aclocal]) conflicts with ACLOCAL_AMFLAGS=-I ./aclocal 执行libtoolize遇到上面提示的错误时,可能是因为configure.ac和Makefile.am文件是dos格式导致的,使用dos2unix转换一下后再执行,问题可能就解决了。
. ibtoolize : AC_CONFIG_MACRO_DIR([./ aclocal])  conflicts  with ACLOCAL_AMFLAGS=-I ./aclocal

执行libtoolize遇到上面提示的错误时,可能是因为configure.ac和Makefile.am文件是dos格式导致的,使用dos2unix转换一下后再执行,问题可能就解决了。

如果是在windows上使用git,建议设置不转换文件格式:
git config --global core.autocrlf false
git config --global core.safecrlf true
git config --global core.eol lf

或者手工直接编辑.gitconfig文件,该文件位于用户主目录下,如果为Windows7,用户名为zhangsan,则为:C:\Users\zhangsan\.gitconfig

相关文章
|
11月前
CMake Error: The source “xxx“ does not match the source “yyy“ used to generate cache. Re-run cmake
CMake Error: The source “xxx“ does not match the source “yyy“ used to generate cache. Re-run cmake
466 0
|
4天前
|
人工智能 机器人 测试技术
【CMake报错】Cannot specify compile definitions for target “PRIVATE“ which is not built...
【CMake报错】Cannot specify compile definitions for target “PRIVATE“ which is not built...
|
4天前
|
Java
No tag [else] defined in tag library imported with prefix [c]] with root cause
No tag [else] defined in tag library imported with prefix [c]] with root cause 错误处理
25 0
|
8月前
cancal报错 config dir not found
cancal报错 config dir not found
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
128 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
完美解决common_define.h: No such file or directory
完美解决common_define.h: No such file or directory
142 0
完美解决common_define.h: No such file or directory
Perhaps you should add the directory containing libpcre.pc to the PKG_CONFIG_PATH
Perhaps you should add the directory containing libpcre.pc to the PKG_CONFIG_PATH
102 0
error: ac_nonexistent.h: No such file or directory
error: ac_nonexistent.h: No such file or directory
420 0