game101环境配置遇见过的问题

小背景:mac,版本15

pao0

第一个问题是虚拟机和外界之间的文件拖动双向配置 ,但是仍旧失效,卸载重启都失败了,增强功能也开了,十分怀疑人生,最后折磨一天放弃,不用虚拟机了哼

然后直接在vscode上面装,会报以下错误

cannot open source file "eigen3/Eigen/Eigen"

解决方式:在.vscode文件夹下创建c_cpp_properties.json文件
内容为

{
     
    "configurations": [
        {
     
        "name": "Mac",
        "includePath": ["/usr/local/include"],
        "defines": [],
        "macFrameworkPath": [],
        "compilerPath": "/usr/local/bin/gcc-10",
        "cStandard": "c11",
        "cppStandard": "gnu++14",
        "intelliSenseMode": "clang-x64"
        }],
    "version": 4
}

作业1

仍旧是头文件报错,在c_cpp_properties.json文件中加入个安装opencv 的路径即可

{
     
    "configurations": [
        {
     
        "name": "Mac",
        "includePath": ["/usr/local/include","/usr/local/Cellar/opencv/4.5.0/include/opencv4"],
        "defines": [],
        "macFrameworkPath": [],
        "compilerPath": "/usr/local/bin/gcc-10",
        "cStandard": "c11",
        "cppStandard": "gnu++14",
        "intelliSenseMode": "clang-x64"
        }],
    "version": 4
}

你可能感兴趣的:(games101,mac,图形学)