win10+QT5.15+cryptopp562 完整配置开发

这篇具有很好参考价值的文章主要介绍了win10+QT5.15+cryptopp562 完整配置开发。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1、准备如下几项内容:

        a、WIN10环境下的QT5.15.2安装包,QTCreator对应版本安装。(自行安装)

        b、cryptopp562安装包下载,官网:https://www.cryptopp.com/,这里没选择最新的8.7是因为mingw-32编译后的库文件使用有问题,有错误,但是5.6用同样的方式编译就可以正常使用。

2、使用QT环境编译cryptopp562,解压源码包,命令行模式下:qmake -project生成 .Pro文件,修改内容:TEMPLATE = lib,
增加:

DEFINES += CRYPTOPPLIB_LIBRARY

DESTDIR=$PWD/bin

3、命令模式执行:

    qmake

    mingw32-make all

  注意:此处的 mingw32-make.exe文件要跟qtcreator开发环境下的项目编译环境一直,这样才能保证编译后的dll和a文件能正确调用。

编译无错误生成:libcryptopp562.a 和 cryptopp562.dll文件。

4、新建Qt开发项目,可以是widgets或者console程序,目录下新建目录(根据个人喜好):libs\cryptopp\include 和libs\cryptopp\lib。

6、拷贝crypto5.6源码目录下的所有h文件到上面的include目录。拷贝编译后的libcryptopp562.a 和 cryptopp562.dll文件到lib目录。

7、编辑程序项目pro文件,

增加:文章来源地址https://www.toymoban.com/news/detail-682793.html

HEADERS += \
    libs/cryptopp/include/3way.h \
    libs/cryptopp/include/adler32.h \
    libs/cryptopp/include/adv_simd.h \
    libs/cryptopp/include/aes.h \
    libs/cryptopp/include/aes_armv4.h \
    libs/cryptopp/include/algebra.h \
    libs/cryptopp/include/algparam.h \
    libs/cryptopp/include/allocate.h \
    libs/cryptopp/include/arc4.h \
    libs/cryptopp/include/argnames.h \
    libs/cryptopp/include/aria.h \
    libs/cryptopp/include/arm_simd.h \
    libs/cryptopp/include/asn.h \
    libs/cryptopp/include/authenc.h \
    libs/cryptopp/include/base32.h \
    libs/cryptopp/include/base64.h \
    libs/cryptopp/include/basecode.h \
    libs/cryptopp/include/bench.h \
    libs/cryptopp/include/blake2.h \
    libs/cryptopp/include/blowfish.h \
    libs/cryptopp/include/blumshub.h \
    libs/cryptopp/include/camellia.h \
    libs/cryptopp/include/cast.h \
    libs/cryptopp/include/cbcmac.h \
    libs/cryptopp/include/ccm.h \
    libs/cryptopp/include/chacha.h \
    libs/cryptopp/include/chachapoly.h \
    libs/cryptopp/include/cham.h \
    libs/cryptopp/include/channels.h \
    libs/cryptopp/include/cmac.h \
    libs/cryptopp/include/config.h \
    libs/cryptopp/include/config_align.h \
    libs/cryptopp/include/config_asm.h \
    libs/cryptopp/include/config_cpu.h \
    libs/cryptopp/include/config_cxx.h \
    libs/cryptopp/include/config_dll.h \
    libs/cryptopp/include/config_int.h \
    libs/cryptopp/include/config_misc.h \
    libs/cryptopp/include/config_ns.h \
    libs/cryptopp/include/config_os.h \
    libs/cryptopp/include/config_ver.h \
    libs/cryptopp/include/cpu.h \
    libs/cryptopp/include/crc.h \
    libs/cryptopp/include/cryptlib.h \
    libs/cryptopp/include/darn.h \
    libs/cryptopp/include/default.h \
    libs/cryptopp/include/des.h \
    libs/cryptopp/include/dh.h \
    libs/cryptopp/include/dh2.h \
    libs/cryptopp/include/dll.h \
    libs/cryptopp/include/dmac.h \
    libs/cryptopp/include/donna.h \
    libs/cryptopp/include/donna_32.h \
    libs/cryptopp/include/donna_64.h \
    libs/cryptopp/include/donna_sse.h \
    libs/cryptopp/include/drbg.h \
    libs/cryptopp/include/dsa.h \
    libs/cryptopp/include/eax.h \
    libs/cryptopp/include/ec2n.h \
    libs/cryptopp/include/eccrypto.h \
    libs/cryptopp/include/ecp.h \
    libs/cryptopp/include/ecpoint.h \
    libs/cryptopp/include/elgamal.h \
    libs/cryptopp/include/emsa2.h \
    libs/cryptopp/include/eprecomp.h \
    libs/cryptopp/include/esign.h \
    libs/cryptopp/include/factory.h \
    libs/cryptopp/include/fhmqv.h \
    libs/cryptopp/include/files.h \
    libs/cryptopp/include/filters.h \
    libs/cryptopp/include/fips140.h \
    libs/cryptopp/include/fltrimpl.h \
    libs/cryptopp/include/gcm.h \
    libs/cryptopp/include/gf256.h \
    libs/cryptopp/include/gf2_32.h \
    libs/cryptopp/include/gf2n.h \
    libs/cryptopp/include/gfpcrypt.h \
    libs/cryptopp/include/gost.h \
    libs/cryptopp/include/gzip.h \
    libs/cryptopp/include/hashfwd.h \
    libs/cryptopp/include/hc128.h \
    libs/cryptopp/include/hc256.h \
    libs/cryptopp/include/hex.h \
    libs/cryptopp/include/hight.h \
    libs/cryptopp/include/hkdf.h \
    libs/cryptopp/include/hmac.h \
    libs/cryptopp/include/hmqv.h \
    libs/cryptopp/include/hrtimer.h \
    libs/cryptopp/include/ida.h \
    libs/cryptopp/include/idea.h \
    libs/cryptopp/include/integer.h \
    libs/cryptopp/include/iterhash.h \
    libs/cryptopp/include/kalyna.h \
    libs/cryptopp/include/keccak.h \
    libs/cryptopp/include/lea.h \
    libs/cryptopp/include/lsh.h \
    libs/cryptopp/include/lubyrack.h \
    libs/cryptopp/include/luc.h \
    libs/cryptopp/include/mars.h \
    libs/cryptopp/include/md2.h \
    libs/cryptopp/include/md4.h \
    libs/cryptopp/include/md5.h \
    libs/cryptopp/include/mdc.h \
    libs/cryptopp/include/mersenne.h \
    libs/cryptopp/include/misc.h \
    libs/cryptopp/include/modarith.h \
    libs/cryptopp/include/modes.h \
    libs/cryptopp/include/modexppc.h \
    libs/cryptopp/include/mqueue.h \
    libs/cryptopp/include/mqv.h \
    libs/cryptopp/include/naclite.h \
    libs/cryptopp/include/nbtheory.h \
    libs/cryptopp/include/nr.h \
    libs/cryptopp/include/oaep.h \
    libs/cryptopp/include/oids.h \
    libs/cryptopp/include/osrng.h \
    libs/cryptopp/include/ossig.h \
    libs/cryptopp/include/padlkrng.h \
    libs/cryptopp/include/panama.h \
    libs/cryptopp/include/pch.h \
    libs/cryptopp/include/pkcspad.h \
    libs/cryptopp/include/poly1305.h \
    libs/cryptopp/include/polynomi.h \
    libs/cryptopp/include/ppc_simd.h \
    libs/cryptopp/include/pssr.h \
    libs/cryptopp/include/pubkey.h \
    libs/cryptopp/include/pwdbased.h \
    libs/cryptopp/include/queue.h \
    libs/cryptopp/include/rabbit.h \
    libs/cryptopp/include/rabin.h \
    libs/cryptopp/include/randpool.h \
    libs/cryptopp/include/rc2.h \
    libs/cryptopp/include/rc5.h \
    libs/cryptopp/include/rc6.h \
    libs/cryptopp/include/rdrand.h \
    libs/cryptopp/include/resource.h \
    libs/cryptopp/include/rijndael.h \
    libs/cryptopp/include/ripemd.h \
    libs/cryptopp/include/rng.h \
    libs/cryptopp/include/rsa.h \
    libs/cryptopp/include/rw.h \
    libs/cryptopp/include/safer.h \
    libs/cryptopp/include/salsa.h \
    libs/cryptopp/include/scrypt.h \
    libs/cryptopp/include/seal.h \
    libs/cryptopp/include/secblock.h \
    libs/cryptopp/include/secblockfwd.h \
    libs/cryptopp/include/seckey.h \
    libs/cryptopp/include/seed.h \
    libs/cryptopp/include/serpent.h \
    libs/cryptopp/include/serpentp.h \
    libs/cryptopp/include/sha.h \
    libs/cryptopp/include/sha1_armv4.h \
    libs/cryptopp/include/sha256_armv4.h \
    libs/cryptopp/include/sha3.h \
    libs/cryptopp/include/sha512_armv4.h \
    libs/cryptopp/include/shacal2.h \
    libs/cryptopp/include/shake.h \
    libs/cryptopp/include/shark.h \
    libs/cryptopp/include/simeck.h \
    libs/cryptopp/include/simon.h \
    libs/cryptopp/include/simple.h \
    libs/cryptopp/include/siphash.h \
    libs/cryptopp/include/skipjack.h \
    libs/cryptopp/include/sm3.h \
    libs/cryptopp/include/sm4.h \
    libs/cryptopp/include/smartptr.h \
    libs/cryptopp/include/sosemanuk.h \
    libs/cryptopp/include/speck.h \
    libs/cryptopp/include/square.h \
    libs/cryptopp/include/stdcpp.h \
    libs/cryptopp/include/strciphr.h \
    libs/cryptopp/include/tea.h \
    libs/cryptopp/include/threefish.h \
    libs/cryptopp/include/tiger.h \
    libs/cryptopp/include/trap.h \
    libs/cryptopp/include/trunhash.h \
    libs/cryptopp/include/ttmac.h \
    libs/cryptopp/include/tweetnacl.h \
    libs/cryptopp/include/twofish.h \
    libs/cryptopp/include/validate.h \
    libs/cryptopp/include/vmac.h \
    libs/cryptopp/include/wake.h \
    libs/cryptopp/include/whrlpool.h \
    libs/cryptopp/include/words.h \
    libs/cryptopp/include/xed25519.h \
    libs/cryptopp/include/xtr.h \
    libs/cryptopp/include/xtrcrypt.h \
    libs/cryptopp/include/xts.h \
    libs/cryptopp/include/zdeflate.h \
    libs/cryptopp/include/zinflate.h \
    libs/cryptopp/include/zlib.h 

INCLUDEPATH += $$PWD/libs/cryptopp/include
DEPENDPATH += $$PWD/libs/cryptopp/include

LIBS +=  -L$$PWD/libs/cryptopp/lib -llibcryptopp562

到了这里,关于win10+QT5.15+cryptopp562 完整配置开发的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • win10下在Qt中使用VTK(安装VS2017+安装QT5.9.9+编译配置VTK8.2.0)

    作为一个只浅学过C语言和C++的纯小白,在编译VTK(visualization toolkit)并与Qt结合的过程中遇到了很多问题,零零碎碎也看了许多文章教程,但由于版本兼容、过程不完整等问题走了许多弯路,最后东拼西凑勉强完成,故写下这篇文章供大家参考。 本文主要目的是安装vs2017,

    2024年02月11日
    浏览(53)
  • qt5.15.2配置android

    qt安装安卓编译器就直接跳过,我们开始将如何进行配置。 如果专门开发的app,则应该使用android进行开发,qt是熟悉qt语言,或者app需要进行跨平台的话则使用qt for android比较好。 首先安装jdk,最好安装 jdk11,因为他是与qt5.15.2这个能匹配上的 选择javase11 然后进行安装,记住

    2024年02月08日
    浏览(44)
  • VS2019+OpenCV+Qt5.15.2安装及工程配置

    目录 一、下载链接 1.1 VS2019下载安装 1.2 OpenCV下载安装 1.3 Qt5.15下载安装 二、工程环境配置 2.1 OpenCV环境配置 2.1.1  环境变量配置 2.1.2 工程属性表配置  2.1.3 重启vs测试  2.2 Qt环境配置 2.2.1 Qt Creator设置  2.2.2 VS2019配置  2.2.3 创建Qt项目 2.2.4 UI 设计配置 该文件仅 1.39 MB,是 VS

    2024年02月16日
    浏览(61)
  • Qt5.15.10+msvc2019_x86+qwebengine(含mp4)源码编译

    win10 64bit 英文版(或者把“区域”-“管理”-“非Unicode程序中所使用的当前语言”-改为\\\"英语(美国)\\\") 内存16g够用,cpu性能越高越好,硬盘在安装环境、下载源码后,至少还有100g可用空间 https://download.qt.io/archive/qt/5.15/ 1、安装 vs_community_2019.exe 勾选桌面C++开发工具 2、安装

    2024年02月09日
    浏览(51)
  • ubuntu搭建qtcreator(含arm qt5.15且下载、安装、配置、示例)

    1.1 QtCreator选择 在Qt5.15以前,Qt creator与Qt版本库是打包在一起发布的,比如要开发基于Qt5.14的代码,则从官网下载,安装,然后就可以参考Qt5.14的接口,进行开发。 但从Qt5.14以后,集成开发环境和Qt版本库是分开的,如下所示,只有源码,没有qt-opensource-xx 安装Qt,是在安装

    2024年02月03日
    浏览(56)
  • QtCreator12无法识别Qt5.15.2的安卓SDK与NDK配置解决

    解决方法: 设置JDK为JDK11 使用Android Studio下载 Android SDK Command-line Tools 10.0   打开Android SDK Location :   双击打开cmdline-tools 复制10.0中所有东西到latest中   点击Manage Kits并选择Devices   然后点击Android会弹出下图窗口,并自动更 安装完成   成功识别  

    2024年01月18日
    浏览(48)
  • qt中使用QGIS实现二次开发导入shp格式地图(MSVC2019_64bit+qt5.15+qgis)

    在qt开发过程中可能要导入自定义格式的图层地图,那么可以把这些数据导入qgis然后导出为shp格式文件,然后下载qgis源码,在qt项目中配置环境变量导入qgis有关的头文件,然后再引入shp数据格式的地图。 QGIS安装 QGIS安装 QGIS导入数据 然后保存点击Layer-save as导出为shp格式文件

    2024年02月05日
    浏览(53)
  • Qt5开发环境-银河麒麟V10ARM平台

    前言 近期因参与开发的某个软件需要适配银河麒麟v10arm 平台,于是自己搭建起一套Qt 开发环境,在此记录下具体过程,以供有需要的朋友参考。一开始手上并没有Arm架构的PC,先在Windows下用Vs2017和QtCreator 开发,软件开发快结束的时候Arm PC到了。Qt 没有提供可直接安装的arm架

    2024年02月12日
    浏览(61)
  • Qt5.14和Qt5.15在线下载

    https://download.qt.io/archive/qt/5.14/5.14.2/ https://download.qt.io/official_releases/online_installers/ qt 安装太慢的问题如何解决? Qt学习 QT最新版本下载安装(QT5.15及QT6.X) 清华大学 Qt镜像下载中心

    2024年02月12日
    浏览(45)
  • RK3568+QT5+OpenCV Debian10母板开发环境搭建自记录

    最重要的就是需要opencv的源码包,也就是source 1.首先要对Debian10的镜像源进行修改 路径在/etc/apt/source.list中,需要换上下面的镜像,可以在终端直接输入: sudo nautilus 启动root版本的文件管理器直接修改,也可以利用vim等等,旧镜像可以先注释掉 修改后,输入: sudo apt update

    2024年02月13日
    浏览(59)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包