• Linux deepin 下sublimes配置g++ openGL


    参考 :http://blog.csdn.net/u010129448/article/details/47754623

    ubuntu 下gnome只要将代码中deepin-terminal改为gnome终端就行

    G++

    {  
    
    
        "shell_cmd": "g++ '${file}' -o '${file_path}/${file_base_name}'",  
        "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",  
        "working_dir": "${file_path}",  
    
        "selector": "source.c, source.c++",  
        "variants":  
        [  
    
            {  
    
                "name": "Build & Run",  
                "shell_cmd": " deepin-terminal -e bash -c "g++ '${file}' -o '${file_path}/${file_base_name}' ; '${file_path}/${file_base_name}' ; read -p '
    Press ENTER or type command to continue...'""  
            },  
            {  
                "name": "Build Only",  
                "shell_cmd": "g++ '${file}' -o '${file_path}/${file_base_name}'"  
            },  
            {  
    
                "name": "Run Only",  
                "shell_cmd": " deepin-terminal -e bash -c "'${file_path}/${file_base_name}' ; read -p '
    Press ENTER or type command to continue...'""  
            }  
        ]  
    } 
    

      

    openGL

    {  
    
        "shell_cmd": "g++ '${file}' -o '${file_path}/${file_base_name}' -lglut -lGL -lGLU",  
        "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",  
        "working_dir": "${file_path}",  
        "selector": "source.c, source.c++",  
        "variants":  
        [  
    
            {  
                "name": "Build & Run",  
                "shell_cmd": " deepin-terminal -e bash -c "g++ '${file}' -o '${file_path}/${file_base_name}' -lglut -lGL -lGLU; '${file_path}/${file_base_name}' ; read -p '
    Press ENTER or type command to continue...'""  
            },  
      
            {  
                "name": "Build Only",  
               "shell_cmd": "g++ '${file}' -o '${file_path}/${file_base_name}' -lglut -lGL -lGLU"  
            },  
            {  
                "name": "Run Only",  
                "shell_cmd": " deepin-terminal -e bash -c "'${file_path}/${file_base_name}' ; read -p '
    Press ENTER or type command to continue...'""  
            }  
        ]  
    } 
  • 相关阅读:
    18.10.29 考试总结
    【BZOJ】2730: [HNOI2012]矿场搭建
    BZOJ [ZJOI2007]仓库建设
    18.10.24 考试总结
    ZOJ 3740 Water Level
    洛谷 P2474 [SCOI2008]天平
    洛谷 P4180 【模板】严格次小生成树[BJWC2010]
    CF961E Tufurama
    18.10.22 考试总结
    18.10.19 考试总结
  • 原文地址:https://www.cnblogs.com/IMGavin/p/6144648.html
Copyright © 2020-2023  润新知