VSCode开发配置、代码比对、pthread、QT

参考文章:

用vscode编写和运行matlab程序,解决linux下matlab界面丑的问题

https://blog.csdn.net/u010103202/article/details/82858624

https://www.cnblogs.com/2333333he-tui/p/10768682.html

VSCode安装

Ubuntu 16.04+VS Code +Python + Anaconda配置

https://blog.csdn.net/WEINILUO/article/details/105936817

Ubuntu+Anaconda+VSCode配置多Python开发环境

https://blog.csdn.net/SONGYINGXU/article/details/78940305

用vscode写python的插件推荐

https://blog.csdn.net/hnshhshjq/article/details/80140401

Vscode写Python代码

http://www.360doc.com/content/18/0326/07/11881101_740225701.shtml

VSCode写一个C++程序

https://www.cnblogs.com/yibeimingyue/p/12079242.html

Ubuntu使用VS Code开发C++程序

https://blog.csdn.net/weixin_33885676/article/details/92683866

vscode显示空格和制表符

https://www.jianshu.com/p/99ffaf2e4e8b

用VSCode代码调试Python

https://www.cnblogs.com/it-tsz/p/9022456.html

VSCode开发配置

VSCode 配置CUDA编程环境(较完整)

https://blog.csdn.net/u012435142/article/details/102651892

Visual Studio Code (vscode) 配置 C / C++ 环境(较简单,入门级)

https://www.cnblogs.com/bpf-1024/p/11597000.html

Ubuntu16.04下配置VScode的C/C++开发环境(比较原始,意义不大)

https://blog.csdn.net/weixin_43374723/article/details/84064644

linux/ubuntu下的代码对比工具Meld Diff

https://blog.csdn.net/Arthur_Holmes/article/details/103240292

Cmake链接pthread和第三方库

gcc中-pthread和-lpthread的区别

https://www.iteye.com/blog/chaoslawful-568602

cmake :undefined reference to 'pthread_create',当CMake需要pthread库问题

https://blog.csdn.net/ly52352148/article/details/52104991

codeblock 中出现 undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'错误 解决方法

https://blog.csdn.net/wangyjfrecky/article/details/80760093

如何在vs2017上使用pthread.h

https://blog.csdn.net/zc08291161/article/details/86664611

vs2010如何使用pthread.h

https://blog.csdn.net/yiyayiya557/article/details/104844670

QT

VSCode配置Python、PyQt5、QtDesigner环境并创建一个ui界面测试

https://www.freesion.com/article/3993510906/

qtgstreamer移植arm(有些配置可以借鉴)

https://blog.csdn.net/zxr1521904712/article/details/82323185

qt.qpa.screen: QXcbConnection: Could not connect to display(vnpy,云主机,图形界面)

https://blog.csdn.net/u011331731/article/details/95009911

Qt实用技巧:ubuntu发布程序打包流程(解决插件xcb加载失败)

https://blog.csdn.net/qq21497936/article/details/85396652

QT之QString的arg方法

https://www.cnblogs.com/seer/p/4136569.html

我的VSCod开发配置

c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**",
                "${workspaceFolder}",
                "/usr/include",             
                "/usr/include/x86_64-linux-gnu/sys",
                "/home/robert/DeepLearning/NXP-imx8QX/CompileResult/mydlib-19.19.0"
            ],
            "defines": [],
            "browse":{
                "path":[
                    "/usr/include"
                ]
            },
            "compilerPath": "/usr/bin/g++",
            "cStandard": "c11",
            "cppStandard": "c++11",
            "intelliSenseMode": "gcc-x64"
        }
    ],
    "version": 4
}

launch.json

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "g++ - 生成和调试活动文件",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}/${fileBasenameNoExtension}.out",
            "args": [
                "-g","${file}","-o","${fileDirname}/${fileBasenameNoExtension}.out",
                "-std=c++11", "-O2", "-DDLIB_JPEG_SUPPORT", "-lpthread", "-g", "-pg", "-Wall", "-Wextra",
                // include 头文件
                "-I", "/usr/local/include",
                "-I", "/usr/include",
                "-I", "/home/robert/DeepLearning/NXP-imx8QX/CompileResult/mydlib-19.19.0",
                // lib 库文件地址
                "-L", "/usr/local/lib",   
                "-L", "/home/robert/DeepLearning/NXP-imx8QX/CompileResult/mydlib-19.19.0/x64_build_first/dlib",  
                "-l", "opencv_imgcodecs",                           
                "-l", "opencv_imgproc",
                "-l", "opencv_core",
                "-l", "dlib",
            ],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "为 gdb 启用整齐打印",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "build",
            "miDebuggerPath": "/usr/bin/gdb"
        }
    ]
}

tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "command": "/usr/bin/g++",
            "args":[
                "-g","${file}","-o","${fileDirname}/${fileBasenameNoExtension}.out",
                "-std=c++11", "-O2", "-DDLIB_JPEG_SUPPORT", "-lpthread", "-g", "-pg", "-Wall", "-Wextra",
                // include 头文件
                "-I", "/usr/local/include",
                "-I", "/usr/include",
                "-I", "/home/robert/DeepLearning/NXP-imx8QX/CompileResult/mydlib-19.19.0",
                // lib 库文件地址
                "-L", "/usr/local/lib",   
                "-L", "/home/robert/DeepLearning/NXP-imx8QX/CompileResult/mydlib-19.19.0/x64_build_first/dlib",  
                "-l", "opencv_imgcodecs",                           
                "-l", "opencv_imgproc",
                "-l", "opencv_core",
                "-l", "dlib",
                //"-D_MWAITXINTRIN_H_INCLUDED"  
            ]
        }
    ]
}

猜你喜欢

转载自blog.csdn.net/yiyayiya557/article/details/107229279