我正在尝试在Windows计算机上安装ìmager
软件包,但是我收到了错误消息。它找不到tiffio.h
。我没有Windows的经验,但我想也许我应该安装某种类型的库(谷歌搜索没有让这更清楚)?如何安装缺少的文件并安装软件包?
我得到的错误如下:
* installing *source* package 'imager' ...
** package 'imager' successfully unpacked and MD5 sums checked
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
*** arch - i386
c:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-35~1.0/include" -DNDEBUG -I../inst/include -DSTRICT_R_HEADERS -Dcimg_use_r -DCIMG_COMPILING -Dcimg_use_fftw3_singlethread -Dcimg_use_tiff -Dcimg_use_rng -Dcimg_verbosity=1 -fpermissive -I/include -I/include -fopenmp -I"C:/Users/victo/Documents/R/win-library/3.5/Rcpp/include" -O2 -Wall -mtune=generic -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:0:
../inst/include/imager.h:4:0: warning: "STRICT_R_HEADERS" redefined
#define STRICT_R_HEADERS
^
<command-line>:0:0: note: this is the location of the previous definition
In file included from ../inst/include/imager.h:26:0,
from RcppExports.cpp:4:
../inst/include/CImg.h:451:20: fatal error: tiffio.h: No such file or directory
#include "tiffio.h"
^
compilation terminated.
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package 'imager'
答案 0 :(得分:0)
如上述说明中所述,您需要“local tree”才能让 Rtools 构建成像器。
只需要标题,因此只需在 Rtools 目录中的 mingw_32\i686-w64-mingw32
和/或 mingw_64\x86_64-w64-mingw32
中提取包含文件夹。