当前位置:网站首页>【genius_platform软件平台开发】第一万零一讲:电力项目dz产品windows环境vs2017编译遇到的报错汇总
【genius_platform软件平台开发】第一万零一讲:电力项目dz产品windows环境vs2017编译遇到的报错汇总
2022-06-09 09:25:00 【隨意的風】
1. cmd.exe 3编译报错
1.1 解决方案
1.1.1 安装QT VS Tools插件
- 启动vs2017,打开工程sln文件,找到工具(T)->扩展和更新(U)->QT Visual Studio Tools->下载->下载好后关闭VS2017->执行modify

1.1.2 设置QT Version
- 删除工程中的
SoftPlatform.vcxproj.user文件,目录在D:\GuangPoWork\17 CodeRepository\CMO01\cross-platform\Project\Vs2017\SoftPlatform,重新打开工程文件,工具栏位新增QT VS Tools选型,图示界面如下图:

点击QT VS Tools选项->QT Version选项
2. VS包含QT头文件路径出错
报错信息如下:


问题描述:用vs2017编译却设置了qt_vs2013
2.1 解决方案
- 找到
项目->C/C++等如图
- QTDIR环境变量设置错误了:
D:\Qt\Qt5.4.2\5.4\msvc2013,因为我使用的是vs2017编辑器
- 系统增加2个QT的VS2017环境变量配置,如图所示:

3. windwos xcpopy 缺失拷贝源文件编译报错


3.1 解决方案
- 复制对应的GpSDKConfig.ini到对应目录,让xcopy执行不再报错,执行成功。


4. LNK1112: 模块计算机类型“x86”与目标计算机类型“x64”冲突错误
1>------ 已启动生成: 项目: SoftPlatform, 配置: Release x64 ------
1>Qt5Core.lib(Qt5Core.dll) : fatal error LNK1112: 模块计算机类型“x86”与目标计算机类型“x64”冲突
1>已完成生成项目“SoftPlatform.vcxproj”的操作 - 失败。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
如图所示:
4.1 解决方案
附加库路径目录设置错误:

- 修改为以下X64目录

边栏推荐
- 机器学习笔记 - R语言学习入门系列一
- TS 泛型的extends属性
- [Android -- interview] the top ten platforms where programmers have joined w every month
- three. JS learning notes (XV) -- shader pattern
- MSF SSH protocol based information collection
- Cypher usage statement record of neo4j
- MSF基于SSH协议的信息收集
- 【科技、商业和管理】看剧学创业:《硅谷》第五季第4-6集
- MSF实战——MySQL空密码的危害
- Dnmap architecture implementation and scanning practice
猜你喜欢

TS 泛型的extends属性

MSF SSH protocol based information collection

【线性代数】理解正定矩阵和半正定矩阵

数字图像处理 图解图像恢复任务

openstack详解(二十)——Neutron节点原理

视觉SLAM总结——SuperPoint / SuperGlue

Sofa weekly | kusion open source, QA this week, contributor this week

Understand the graph database neo4j (II)

机器学习笔记 - R语言学习入门系列一

【实战技能】Google I/O 2022大会AI/ML给开发者的启发
随机推荐
ERP system, compilation and learning
WebRTC系列--计算帧率及帧间隔
【计算机网络-19】计算机网络面试题
LeetCode_ Sort_ Medium_ 406. reconstruct the queue based on height
Summary of Android development interview experience and compilation of actual records (must see)
【科技、商业和管理】看剧学创业:《硅谷》第五季第1-3集
LeetCode_ Stack_ Difficulties_ 394. string decoding
MSF practice -- the harm of MySQL null password
JWT和session
Countdown 3 days 𞓜 sofachannel 28 sofaark class isolation framework design
openstack详解(十八)——Nova服务启动与服务创建
LeetCode_栈_困难_394. 字符串解码
NIO BIO AIO
openstack详解(十三)——Glance Keystone设置与启动
[linear algebra] understand positive definite matrix and semi positive definite matrix
[FAQ for novices on the road] about Internet of things design
数字图像处理 图解图像恢复任务
- Bean method ‘redisConnectionFactory‘ in ‘JedisConnectionConfiguration‘ not loaded because @Conditi
LeetCode_单调栈_中等_581.最短无序连续子数组
MSF实战——ms17-010漏洞的危害