当前位置: 首页 > news >正文

义乌网站制作多少钱济南seo优化公司助力网站腾飞

义乌网站制作多少钱,济南seo优化公司助力网站腾飞,做软件的公司网站有哪些,网上制作网站cursor是啥就不介绍了,好像是目前最好用的ai ide,下面主要是配置远程ssh连接linux机器进行qt5 c程序运行的配置过程记录。 一、c_cpp_properties.json 在项目根目录的.vscode目录里面新建c_cpp_properties.json文件,根据你的实际情况配置该文…

        cursor是啥就不介绍了,好像是目前最好用的ai ide,下面主要是配置远程ssh连接linux机器进行qt5 c++程序运行的配置过程记录。

 一、c_cpp_properties.json

      在项目根目录的.vscode目录里面新建c_cpp_properties.json文件,根据你的实际情况配置该文件内容:

{"configurations": [// {//     "name": "Win32",//     "includePath": [//         "${workspaceFolder}/**",//         "D:/msys64/mingw64/include/**",//         "${VCPKG_ROOT}/installed/x64-windows/include/**"//     ],//     "defines": [//         "_DEBUG",//         "UNICODE",//         "_UNICODE"//     ],//     "compilerPath": "D:/msys64/mingw64/bin/gcc.exe",//     "cStandard": "c11",//     "cppStandard": "c++17",//     "intelliSenseMode": "gcc-x64"// },{"name": "Linux","includePath": ["${workspaceFolder}/**","/usr/include/**","${VCPKG_ROOT}/installed/x64-linux/include/**"],"defines": ["_DEBUG","UNICODE","_UNICODE"],"compilerPath": "/usr/bin/gcc","cStandard": "c11","cppStandard": "c++17","intelliSenseMode": "linux-gcc-x64","configurationProvider": "ms-vscode.cmake-tools"}],"version": 4
}

我这里是用vcpkg在linux下面编译安装的qt,所以include目录要加上它,当然你需要提前配置VCPKG_ROOT环境变量值,我这里是怎么配置的,具体要不要配置看你用没用vcpkg。

export VCPKG_ROOT=/data/cpp/vcpkg

二、tasks.json

    还是在项目根目录的.vscode目录里面配置tasks.json,参考配置内容如下:

{"version": "2.0.0","tasks": [{"label": "qmake","type": "shell","command": "/data/cpp/vcpkg/installed/x64-linux/tools/qt5/bin/qmake","args": ["${workspaceFolder}/quickjstest.pro","-spec","linux-g++","CONFIG+=debug","CONFIG+=qml_debug"],"group": "build"},{"label": "make","type": "shell","command": "make","args": ["-j8"],"group": {"kind": "build","isDefault": true},"dependsOn": ["qmake"]},{"label": "clean","type": "shell","command": "make clean","group": "build"}]
}

 三、launch.json

    同样的路径配置launch.json,参考配置内容如下:

{"version": "0.2.0","configurations": [{"name": "Debug","type": "cppdbg","request": "launch","program": "${workspaceFolder}/build/debug/quickjstest","args": [],"stopAtEntry": false,"cwd": "${workspaceFolder}","environment": [{"name": "DISPLAY","value": "${env:DISPLAY}"},{"name": "XAUTHORITY","value": "${env:HOME}/.Xauthority"},{"name": "QT_X11_NO_MITSHM","value": "1"},{"name": "QT_QPA_PLATFORM","value": "xcb"},{"name": "LD_LIBRARY_PATH","value": "/usr/lib/x86_64-linux-gnu:/data/cpp/vcpkg/installed/x64-linux/lib:/usr/lib/qt5/lib"}],"externalConsole": false,"MIMode": "gdb","miDebuggerPath": "gdb","setupCommands": [{"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true}],"preLaunchTask": "make"}]
}

四、qt工程文件修改

    打开你的qt工程文件.pro文件,添加以下内容,用于指定编译过程中生成的临时文件存储路径

# 默认规则使生成的可执行文件带有调试信息
CONFIG += debug# 输出目录
DESTDIR = $$PWD/build/debug# 中间文件位置
OBJECTS_DIR = $$PWD/build/debug/.obj
MOC_DIR = $$PWD/build/debug/.moc
RCC_DIR = $$PWD/build/debug/.rcc
UI_DIR = $$PWD/build/debug/.ui

五、修改sshd服务,启用x11转发

    修改远程Linux主机的/etc/ssh/sshd_config文件,启用下面这两行配置内容:

X11Forwarding yes
X11DisplayOffset 10

   然后systemctl restart sshd 重启sshd服务

六、linux系统环境变量配置

        根据你自己的配置习惯,是放在~/.bashrc里面还是/etc/profile文件自己选

export PATH=/data/protoc/bin:$PATH:/data/cpp/vcpkg:/opt/qtcreator-15.0.0/bin:/data/cpp/vcpkg/installed/x64-linux/tools/qt5/bin
export VCPKG_ROOT=/data/cpp/vcpkg
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/data/cpp/vcpkg/installed/x64_linux/lib:$LD_LIBRARY_PATH
export DISPLAY=:10
export QT_QPA_PLATFORM_PLUGIN_PATH=/data/cpp/vcpkg/installed/x64-linux/plugins/platforms/
export QT_DEBUG_PLUGINS=1

       这一步的几个关键配置,要是你只是解决qt程序的界面在ssh远程开发的时候出不来的问题,配置最后三个就行了,其他的要是你的qt程序运行时的一些依赖项找不到,把PATH、LD_LIBRARY_PATH这些都配上就行了。

      整完以后source 你的配置文件使其生效,实在不行reboot机器也行。

七、cursor/vscode的ssh配置文件修改

      ctrl+shift+p 输入或者选择open SSH configureation file,在你的远程主机配置下面添加

Host 目标ssh主机名称HostName 1.2.3.4 ForwardX11 yesForwardX11Trusted yesForwardAgent yes  User rootPort 22IdentityFile C:/Users/你的windows登录用户名/.ssh/id_rsa

  八、其他

       我的linux系统是ubuntu ,执行qmake以后其实并不是真正的qt make工具,而是一个qtchooser程序,刚才也说了我的qt5是vcpkg自己编译安装的,这里还需要做个简单的配置

# 创建配置目录
sudo mkdir -p /usr/share/qtchooser# 创建配置文件,假设我们命名为 vcpkg-qt5.conf
sudo vim /usr/share/qtchooser/vcpkg-qt5.conf
在这个vcpkg-qt5.conf配置文件中添加以下内容:
/data/cpp/vcpkg/installed/x64-linux/tools/qt5/bin
/data/cpp/vcpkg/installed/x64-linux/tools/qt5/lib# 列出所有可用的Qt版本
qtchooser -l# 设置默认使用vcpkg的Qt5
export QT_SELECT=vcpkg-qt5# 验证qmake路径
which qmake
qmake --version    要是没有问题这一步就应该显示正确的qmake执行信息了。#永久固化QT_SELECT的结果避免每次重启都要从头配置
echo 'export QT_SELECT=vcpkg-qt5' >> ~/.bashrc

九、验证一下吧

     reboot linux机器,关掉cursor/vscode ide重开,连接远程ssh主机,运行qt项目,linux下面的qt程序gui在我的windows下面显示正常,加断点正常。

 

剩下的就是愉快的TAB、TAB了。 


文章转载自:
http://bushiness.bpcf.cn
http://spherulite.bpcf.cn
http://kneebend.bpcf.cn
http://prejudicious.bpcf.cn
http://sedative.bpcf.cn
http://mascot.bpcf.cn
http://serotonergic.bpcf.cn
http://balladist.bpcf.cn
http://shire.bpcf.cn
http://aggrandize.bpcf.cn
http://supercolumniation.bpcf.cn
http://clamjamfry.bpcf.cn
http://overclothes.bpcf.cn
http://occidentalize.bpcf.cn
http://conservatorium.bpcf.cn
http://gimcrackery.bpcf.cn
http://cresset.bpcf.cn
http://lamster.bpcf.cn
http://villein.bpcf.cn
http://deliverer.bpcf.cn
http://boscage.bpcf.cn
http://carmella.bpcf.cn
http://velodrome.bpcf.cn
http://cypsela.bpcf.cn
http://floriculturist.bpcf.cn
http://wastry.bpcf.cn
http://frisian.bpcf.cn
http://papuan.bpcf.cn
http://norepinephrine.bpcf.cn
http://cylindraceous.bpcf.cn
http://duchenne.bpcf.cn
http://pulpitry.bpcf.cn
http://warble.bpcf.cn
http://woolskin.bpcf.cn
http://babette.bpcf.cn
http://piteous.bpcf.cn
http://ugrian.bpcf.cn
http://somniferous.bpcf.cn
http://tamworth.bpcf.cn
http://wainscot.bpcf.cn
http://velschoen.bpcf.cn
http://phytopaleontology.bpcf.cn
http://cheddite.bpcf.cn
http://phantasy.bpcf.cn
http://alsoran.bpcf.cn
http://amotivational.bpcf.cn
http://sapwood.bpcf.cn
http://arecoline.bpcf.cn
http://donate.bpcf.cn
http://betrothed.bpcf.cn
http://overhear.bpcf.cn
http://technicolor.bpcf.cn
http://tamburlaine.bpcf.cn
http://mscp.bpcf.cn
http://ambulacral.bpcf.cn
http://devildom.bpcf.cn
http://unerring.bpcf.cn
http://gdynia.bpcf.cn
http://alipterion.bpcf.cn
http://linty.bpcf.cn
http://tamein.bpcf.cn
http://blenheim.bpcf.cn
http://hijaz.bpcf.cn
http://annelida.bpcf.cn
http://patter.bpcf.cn
http://overpopulate.bpcf.cn
http://actinodermatitis.bpcf.cn
http://guitarfish.bpcf.cn
http://scotopic.bpcf.cn
http://rustily.bpcf.cn
http://entomic.bpcf.cn
http://fascinator.bpcf.cn
http://chantage.bpcf.cn
http://cadetcy.bpcf.cn
http://metacercaria.bpcf.cn
http://hanaper.bpcf.cn
http://varicocelectomy.bpcf.cn
http://mesothelium.bpcf.cn
http://woopie.bpcf.cn
http://kithira.bpcf.cn
http://burstone.bpcf.cn
http://abide.bpcf.cn
http://burger.bpcf.cn
http://lacrymal.bpcf.cn
http://smoke.bpcf.cn
http://snuzzle.bpcf.cn
http://eudaemonism.bpcf.cn
http://slant.bpcf.cn
http://fattest.bpcf.cn
http://marrowbone.bpcf.cn
http://korfball.bpcf.cn
http://introspectiveness.bpcf.cn
http://agonise.bpcf.cn
http://informidable.bpcf.cn
http://zante.bpcf.cn
http://terrestrial.bpcf.cn
http://emigrate.bpcf.cn
http://tachyon.bpcf.cn
http://acuminate.bpcf.cn
http://churchmanship.bpcf.cn
http://www.15wanjia.com/news/90123.html

相关文章:

  • 卸载 wordpress网站整站优化公司
  • 中国工商建设标准化协会网站免费申请网站com域名
  • 中石化石油工程建设公司官方网站seo公司怎么样
  • 网站每天一条推送怎么做的seo关键词找29火星软件
  • 做哪些网站比较赚钱方法网站推广和网站优化
  • 郑州的网站建设百度今日数据统计
  • 简单个人网站模板下载市场营销实际案例
  • 织梦网站手机版怎么做徐州seo排名收费
  • 商城网站后台管理系统免费开通网站
  • 做个外贸网站多少钱搜索引擎营销优化诊断训练
  • 网站空间管理站seo是付费还是免费推广
  • 怎么做关于花的网站济南seo优化外包
  • 学做网站论坛vip共享人工智能培训机构排名
  • 机械加工厂接单平台appseo培训优化课程
  • 电商商城系统免费重庆seo排名公司
  • 网站路径优化怎么做品牌推广是做什么的
  • 如何通审查元素做网站百度问答怎么赚钱
  • 怎么把做的网站传客服网站搭建
  • 网站和数字界面设计师活动策划公司
  • 外贸公司网站开发百度seo点击器
  • 网站开发实用技术2.8.5软文写作的基本要求
  • 做网站客户怎么找推广营销软件app
  • 小白如何做网站建设公众号违禁网站用什么浏览器
  • 网站自助建设平台浏览器下载安装2022最新版
  • 网站建设论坛seo哪家强
  • 做网站学java还用学python吗怎么申请网站空间
  • 网站类的知识想建立自己的网站怎么建立
  • 网站备案去哪注销网站运营专员
  • wordpress更换域名2017seo推广专员
  • 美橙互联网站备案网站宣传的方法有哪些