velocyto.R安装失败
~^~~~~~~~~
routines.cpp: In function ‘Rcpp::DataFrame groupMotifs(Rcpp::DataFrame, int)’:
routines.cpp:231:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int, std::allocator >::size_type’ {aka ‘long long unsigned int’} [-Wsign-compare]
for(int i=0;i<ci.size();i++) {
^~~~~~~~~
C:/
rtools40/mingw64/bin/g++ -shared -s -static-libgcc -o velocyto.R.dll tmp.def RcppExports.o points_within.o routines.o -lboost_filesystem -lboost_system -lstdc++ -LC:/PROGRA1/R/R-411.0/bin/x64 -lRlapack -LC:/PROGRA1/R/R-411.0/bin/x64 -lRblas -fopenmp -lgfortran -lm -lquadmath -LC:/PROGRA1/R/R-411.0/bin/x64 -lR C:/rtools40/mingw64/bin/…/lib/gcc/x86_64-w64-mingw32/8.3.0/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: cannot find -lboost_filesystem C:/rtools40/mingw64/bin/…/lib/gcc/x86_64-w64-mingw32/8.3.0/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: cannot find -lboost_system collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package ‘velocyto.R’ * removing ‘D:/Win10 System/Documents/R/win-library/4.1/velocyto.R’ Warning message: In i.p(…) : installation of package ‘C:/Users/yll/AppData/Local/Temp/RtmpU5pR8S/file4de0703a2b2e/velocyto.R_0.6.tar.gz’ had non-zero exit status
https://github.com/velocyto-team/velocyto.R/issues/140
https://blog.csdn.net/bxbjk/article/details/100760154
Hi @guijie2015,
I had the same issue and installed the BH package as indicated here https://r-forge.r-project.org/R/?group_id=1469.
However when I try again to install velocyto.R via devtools I get exactly the same error.
Do you know I can make R to find the boost libraries?
you need to install boost libraries in your system, not the packages in your R
Boost库是为C++语言标准库提供扩展的一些C++程序库的总称,其广泛地作为各种第三方库的依赖库,例如PCL,Caffe等。接下来将介绍在Windows环境下如何安装boost库。
首先在Boost官网(https://www.boost.org/)上下载所需的压缩文件,然后解压后打开会发现如下文件
找到tools文件夹里的build文件下的bootstrap.bat文件,打开command命令窗口后运行bootstrap.bat文件将出现如下截图
然后想好你要安装的目录,这里我给的是’D:\Program Files (x86)\boost_1_71_0\build’,因此你会看到如下截图
直接运行即可,系统会出现一大串代码一直跑,跑完即可
Finally,Congratulations! O(∩_∩)O~~