我正在努力编译一个名为Artimagen的图像套件。它旨在使用GNU Autotools工具包。当我尝试配置时出现错误:
configure: error: fftw3 check failed
我安装了libfftw3-3代替fftw3。我曾尝试安装fftw3,但我被引导到libfftw3-3。
在配置文件中我可以将fftw3库检查更新到libfftw3-3吗? 另外我该怎么做?
# Checks for libraries.
AC_CHECK_LIB([tiff], [TIFFOpen], [TIFFLIB=-ltiff],
AC_MSG_ERROR([libtiff check failed]))
AC_SUBST([TIFFLIB])
AC_CHECK_LIB([fftw3], [fftw_execute], [FFTW3LIB=-lfftw3],
AC_MSG_ERROR([fftw3 check failed]))
AC_SUBST([FFTW3LIB])
AS_IF([test "x$with_threads" != xno],
[
AC_CHECK_LIB([fftw3_threads], [fftw_init_threads],
[FFTW3TLIB="-lfftw3_threads -lm -lpthread"]
[AC_DEFINE([HAVE_FFTW3_THREADS], [1], [Define if you have fftw3_threads])]
[have_fftw3_threads=yes],
AC_MSG_ERROR([fftw3 check failed]),[-lfftw3 -lpthread -lm])
AC_SUBST([FFTW3TLIB])
])
AM_CONDITIONAL(HAVE_FFTW3_THREADS, test x$have_fftw3_threads = xyes)
(适用编辑)
已尝试安装此处fftw3找到的库fftw3,在尝试安装时出现以下错误:
/usr/bin/install -c -m 644 fftw3.h fftw3.f fftw3l.f03 fftw3q.f03 '/usr/local/include'
/usr/bin/install: cannot create regular file '/usr/local/include/fftw3.h': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/fftw3.f': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/fftw3l.f03': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/fftw3q.f03': Permission denied
Makefile:553: recipe for target 'install-includeHEADERS' failed
make[3]: *** [install-includeHEADERS] Error 1
make[3]: Leaving directory '/home/vanoccupanther/Desktop/fftw- 3.3.4/api'
Makefile:692: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/vanoccupanther/Desktop/fftw- 3.3.4/api'
Makefile:686: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/vanoccupanther/Desktop/fftw-3.3.4/api'
Makefile:632: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
有人可以帮我理解这些错误吗?
(适用EDIT1)
我修正了上述错误,但另一个错误...
(适用EDIT2)
这个Artimagen的配置现在告诉我找不到依赖关系lua5.1。我几分钟前安装了lua5.1。
我的想法是,artimagen程序可能正在错误的目录中寻找lua。
的config.log:
configure:14754: checking for main in -llua5.1
configure:14773: gcc -o conftest -g -O2 conftest.c -llua5.1 >&5
/usr/bin/ld: cannot find -llua5.1
collect2: error: ld returned 1 exit status
configure:14773: $? = 1
configure: failed program was:
壳:
checking for main in -llua5.1... no
configure: error: in `/home/vanoccupanther/Desktop/artimagen-0.91':
configure: error: lua test failed (--without-lua to disable)
See `config.log' for more details.
将lua程序安装到我的comp / usr / bin上 虽然artimagen config.log说它在/ usr / bin / ld上找不到lua
这可能是问题吗?
(作为一名FWI,我是一名物理学生而非程序员)