[置顶] PCL与CUDA混合编译出现的失败
2017-12-10 02:24
344 查看
当在cmakelist中同时含有PCL、CUDA 可能出现一下错误
问题:nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
在pcl 下放加入:
问题:消除报警nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated,
使用cmake-gui 设置CUDA_NVCC_FLAGS 为--Wno-deprecated-gpu-targets
问题:nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
在pcl 下放加入:
get_directory_property(dir_defs DIRECTORY ${CMAKE_SOURCE_DIR} COMPILE_DEFINITIONS)
set(vtk_flags)
foreach(it ${dir_defs})
if(it MATCHES "vtk*")
list(APPEND vtk_flags ${it})
endif()
endforeach()
foreach(d ${vtk_flags})
remove_definitions(-D${d})
endforeach()
问题:消除报警nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated,
使用cmake-gui 设置CUDA_NVCC_FLAGS 为--Wno-deprecated-gpu-targets
cmake -DBLAS=Open -DCUDA_NVCC_FLAGS=--Wno-deprecated-gpu-targets ..
相关文章推荐
- [置顶] Ubuntu17.04 编译Elastic fusion 出现CUDA8.0与GCC版本问题
- win7x64安装vs2010编译出现“LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏”的错误
- VS2010编译cocos2d出现 LNK1123: 转换到 COFF 期间失败: 文件无效或损坏 错误
- VS2010中CUDA和C++混合编译(两种方式)
- ubuntu编译opencv时出现CMake Error: CUDA_nppi_LIBRARY (ADVANCED)
- CUDA和VC8的混合编译
- 未找到入口文件,或者文件读取失败,请检查后重新编译。 pages/contact/contact 出现脚本错误或者未正确调用 Page()。
- sql2008和sql2012混合安装后打开SQL Server 配置管理器查看出现“远程过程调用失败”0x800706be
- sql2008和sql2012混合安装后打开 SQL SERVER 2008 R2配置管理器出现“远程过程调用失败”【0x800706be】的解决办法
- Qt5 编译MySQL驱动,仍然加载失败,出现QMYSQL driver not loaded
- android studio中出现gradle编译失败: Could not resolve all dependencies for configuration ':app:_debugApkCop
- 在ubuntu 14.04系统中安装cuda-7.5时编译samples文件,出现cannot find lnvcuvid 错误
- [置顶] GTX1070+ubuntu14.04+cuda8.0+opencv3.0.0编译教程
- Win10+VS2013+CUDA8.0编译运行例程(.cu)出现error MSB4062:未能从程序集...问题的解决
- 安装vs2012 之后,vs2010 编译程序出现fatal error LNK1123 转换到 COFF 期间失败 文件无效或损坏
- c++/cli调用c#类库,混合编译时出现 warning C4945 解决方法
- Mac OS X下编译CUDA6例子时出现关于switch的warning的解决办法
- VS2010编译时出现错误1 error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- 安装完VS2010之后再安装VS2012以后,发现VS工程编译出现--fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- DotNet中编译出现Error spawning cl.exe(启动cl.exe失败)之解决方法