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

Win10+VS2019+Qt5.15.2下编译QCAD

一:官方说法:

Windows

  1. Download and install a C++ compiler, for example:

  • Visual Studio C++ Express or Visual Studio Community

  1. Download and install Qt from qt.io (see supported platforms):

  • Download for example the online installer file
    qt-opensource-windows-x86-5.13.2.exe

  • Install Qt by running the installer and following the instructions on screen

  1. If available, download and extract Teigha (e.g. Kernel_vc14_amd64md.zip and Drawings_vc14_amd64md.zip) into qcadpro/src/io/dwg/opendesign and copy OdActivationInfo to qcadpro/src/io/dwg/opendesign/ThirdParty/activation.

  1. Configure QCAD. Optional modules installed side-by-side with the qcad directory are configured automatically:

cd c:\Users\me\qcad\qcad

c:\Qt\Qt5.13.2\5.13\msvc2015_64\bin\qmake -r CONFIG+=ractivated

  1. Compile QCAD. For example on cygwin:

nmake release

Alternatively, you may want to use jom, an nmake clone which speeds up compilation significantly by using all available CPU cores.

  1. Launch QCAD. For example with:

release\qcad.exe

  1. (Optional) For code signing, open certlm.msc, click on "Personal" folder, choose Action > All Tasks > Import and select P12 file to import.

但我按这做法不成功。

二:第二种网上说法:

与第一种说法的区别是构造visual studio 方案

qmake -r -spec win32-msvc2012 -tp vc

这个会报错,win32-msvc2012 改为2109 也一样,后来改为全路径,

qmake -r -spec C:\Qt\5.15.2\msvc2019\mkspecs\win32-msvc -tp vc

这样就可以产生工程了,并且可以编译链接成功。我想找64 位版本,应该是winrt-x64-msvc2019,可是不成功。

三:QT的下载和编译参考了这个链接:

https://www.cnblogs.com/fzu-Z9h/p/16587964.html

我不喜欢qt的下载器安装,想做点改变都不行,要重新来。我就下载了QT5.14, Qt5.13,发现没有vc2019 的项目,只好还是用下载器下了Qt5.15.2版本。

第一次装的Qt5.15.2 ,但是没有选择Qt Scripts(Deprecated),看了该文就做了这个选择。

主要的问题是

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

http://www.lryc.cn/news/14976.html

相关文章:

  • 【微信小程序】原生微信小程序ts模板下引入vant weapp
  • Puppeteer之Pyppeteer——自动登录Gmail(6)
  • python 绘图 —— 绘制从顶部向底部显示的柱形图[ax.bar()]
  • 自定义Task工具,调用系统的IdleHandler方法
  • 生态GEP案例分享
  • 企业级信息系统开发学习笔记1.5 初探Spring AOP
  • Mysql数据库主主从设置
  • 监管持续,医疗卫生机构如何守好“涉疫”数据安全?
  • STM32开发(13)----获取唯一设备标识符UID
  • 华为OD机试 - 最优调度策略(Python) | 机试题+算法思路+考点+代码解析 【2023】
  • 前端零基础入门-002-集成开发环境
  • su和sudo的区别
  • 【ChatGPT】使用ChatGPT进行51单片机程序编程体验
  • Docker之路(1.Docker概述、组成以及特点)
  • 非对称加密算法在android的应用
  • 51单片机——定时器中断实验,小白讲解,相互学习
  • 什么是循环依赖,spring是如何去解决循环依赖问题的?什么是三级缓存?【spring】
  • Cron表达式
  • JavaScript 作用域
  • Hive内部表与外部表的区别具体说明
  • Java流程控制
  • I.MX6ULL_Linux_系统篇(17) uboot分析-启动linux
  • C/C++每日一练(20230221)
  • 用Python采集热门城市景点数据并简单制作数据可视化图
  • 论文阅读:pixelNeRF: Neural Radiance Fields from One or Few Images
  • C++项目——高并发内存池(1)--介绍及定长内存池
  • 网络有线无线配置
  • 阅读笔记——Feature-Point Matching for Aerial and Ground Images方法
  • 前端工程师面试题10条必会笔试题
  • 【技术分享】Web自动化之Selenium安装