【发布时间】:2015-09-10 16:58:19
【问题描述】:
我正在尝试在 Windows 7 中安装 libuiohook,但遇到了问题。
首先我安装了所有依赖项:autotools、pkg-config、libtool、gcc、clang 或 msys2/mingw32(我无法安装 clang,但我有 msys)
在安装 libuiohook 的说明中我必须这样做:
./bootstrap.sh 。/配置 制作 && 制作安装
当我运行 ./bootstrap.sh 时,我收到了包含很多警告的日志:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4 --output=aclocal.m4t
autoreconf: `aclocal.m4' is unchanged
autoreconf: configure.ac: tracing
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): susp
icious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2013: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2026: AC_CACHE_CHECK is expanded from...
aclocal.m4:1383: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:3214: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:3118: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:995: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:853: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:833: AC_PROG_LIBTOOL is expanded from...
configure.ac:76: the top level
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspici
ous cache-id, must contain _cv_ to be cached
aclocal.m4:1351: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:5371: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:3972: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:3222: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2370: _LT_AC_TAGCONFIG is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:4204: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4116: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:4256: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4212: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.ac:102: warning: AC_LIBTOOL_SETUP was called before AC_LIBTOOL_WIN32_D
LL
aclocal.m4:2386: AC_LIBTOOL_WIN32_DLL is expanded from...
../../lib/m4sugar/m4sh.m4:512: AS_CASE is expanded from...
configure.ac:102: the top level
autoreconf: running: libtoolize --copy --force
Putting files in AC_CONFIG_AUX_DIR, `config'.
autoreconf: running: /usr/local/bin/autoconf --force
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): susp
icious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2013: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2026: AC_CACHE_CHECK is expanded from...
aclocal.m4:1383: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:3214: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:3118: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:995: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:853: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:833: AC_PROG_LIBTOOL is expanded from...
configure.ac:76: the top level
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspici
ous cache-id, must contain _cv_ to be cached
aclocal.m4:1351: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:5371: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:3972: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:3222: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2370: _LT_AC_TAGCONFIG is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:4204: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4116: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:4256: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4212: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.ac:102: warning: AC_LIBTOOL_SETUP was called before AC_LIBTOOL_WIN32_D
LL
aclocal.m4:2386: AC_LIBTOOL_WIN32_DLL is expanded from...
../../lib/m4sugar/m4sh.m4:512: AS_CASE is expanded from...
configure.ac:102: the top level
autoreconf: running: /usr/local/bin/autoheader --force
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): susp
icious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2013: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2026: AC_CACHE_CHECK is expanded from...
aclocal.m4:1383: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:3214: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:3118: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:995: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:853: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:833: AC_PROG_LIBTOOL is expanded from...
configure.ac:76: the top level
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspici
ous cache-id, must contain _cv_ to be cached
aclocal.m4:1351: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:5371: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:3972: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:3222: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2370: _LT_AC_TAGCONFIG is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:4204: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4116: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:4256: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4212: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.ac:102: warning: AC_LIBTOOL_SETUP was called before AC_LIBTOOL_WIN32_D
LL
aclocal.m4:2386: AC_LIBTOOL_WIN32_DLL is expanded from...
../../lib/m4sugar/m4sh.m4:512: AS_CASE is expanded from...
configure.ac:102: the top level
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): susp
icious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2013: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2026: AC_CACHE_CHECK is expanded from...
aclocal.m4:1383: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:3214: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:3118: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:995: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:853: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:833: AC_PROG_LIBTOOL is expanded from...
configure.ac:76: the top level
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspici
ous cache-id, must contain _cv_ to be cached
aclocal.m4:1351: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:5371: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:3972: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:3222: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2370: _LT_AC_TAGCONFIG is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:4204: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4116: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.ac:76: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): sus
picious cache-id, must contain _cv_ to be cached
aclocal.m4:4256: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4212: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.ac:102: warning: AC_LIBTOOL_SETUP was called before AC_LIBTOOL_WIN32_D
LL
aclocal.m4:2386: AC_LIBTOOL_WIN32_DLL is expanded from...
../../lib/m4sugar/m4sh.m4:512: AS_CASE is expanded from...
configure.ac:102: the top level
libuiohook_la_LDFLAGS: variable `LTLDFLAGS' is used but `LTLDFLAGS' is undefined
Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac'
autoreconf: automake failed with exit status: 1
但这是我遇到的错误
libuiohook_la_LDFLAGS: variable `LTLDFLAGS' is used but `LTLDFLAGS' is undefined
Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac'
autoreconf: automake failed with exit status: 1
【问题讨论】:
-
我想是 libiohook。对?也许如果你添加关键字 C、C++ 和 libiohook 你会吸引更多的注意力
-
是的,没错,谢谢你的建议。 :)
标签: c++ windows installation