我尝试在Windows10的R开发环境中安装ITKR (https://github.com/stnava/ITKR)库,但在运行devtools::install_github( "stnava/ITKR" )时遇到以下问题
:: CMake Error at CMakeLists.txt:41 (message):
ITK source code directory path length is too long (67 > 50).Please move the
ITK source code directory to a directory with a shorter path.
-- Configuring incomplete, errors occurred!
See also "C:/tmp/RtmpiiQL5o/devtools37c84d7a5f42/stnava-ITKR-805a390/src/itkb/CMakeFiles/CMakeOutput.log"现在我已经把tempdir改成了'c:\tmp‘,还有我的工作目录,所以我不能再修剪它了。我能做些什么来解决这个问题吗?谢谢!
发布于 2018-05-23 19:56:57
C:/tmp/RtmpiiQL5o/devtools37c84d7a5f42/stnava-ITKR-805a390/src/是一条相当长的路。除非你能影响"devtools“不使用这么长的内部路径,否则你可能就不走运了。
由于您使用的是Win10,另一种选择是禁用MAX_PATH限制并跳过those checks,看看ITK是否仍然正确构建。在调用CMake时,您需要提供CMake定义ITK_SKIP_PATH_LENGTH_CHECKS,例如cmake -DITK_SKIP_PATH_LENGTH_CHECKS:bool=1。
https://stackoverflow.com/questions/50486347
复制相似问题