Cmake 使用Qtcreator构建Rstudio(编译错误)
我正试图按照给出的说明编译Rstudio。在qtcreator中打开文件Cmake 使用Qtcreator构建Rstudio(编译错误),cmake,qt-creator,rstudio,Cmake,Qt Creator,Rstudio,我正试图按照给出的说明编译Rstudio。在qtcreator中打开文件rstudio/src/cpp/CMakeLists.txt并运行CMake后,我得到了构建错误 /home/nesau/Documents/GitHub/rstudio/src/cpp/tests/cpp/tests/vendor/catch.hpp :1185:23:error: 'nullptr_t' is not a member of 'std' std::string toString( std::nullptr
rstudio/src/cpp/CMakeLists.txt
并运行CMake后,我得到了构建错误
/home/nesau/Documents/GitHub/rstudio/src/cpp/tests/cpp/tests/vendor/catch.hpp
:1185:23:error: 'nullptr_t' is not a member of 'std'
std::string toString( std::nullptr_t );
^
我遵循了前面的说明,例如安装所需的依赖项(OS:Arch Linux)。如果有人成功地在Qt Creator中设置了Rstudio,我将非常感谢他给我的一些建议——如果需要,我愿意在VM中使用不同的操作系统——我只是不知道为什么我不能编译Rstudio(GitHub wiki不是很详细)。你必须切换到C++11模式。将
-std=c++11
添加到您的CMAKE\u CXX\u标志中