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

xlnt在Windows中的dll,lib生成

前言

花了半天时间想要把xlnt 集成到VS2022 Cmake项目中,以我目前掌握的能力,Cmake语法对于我来说难懂,对于只是使用过Cmake编译MySQL,或是其他lib,dll库的小白来说,不应该为了显示自己能力多么出众,强行去配置一些程序内容。
生活中没有绝对的事情,有舍有得.

https://github.com/tfussell/xlnt
VS2022,打开xlnt的source文件夹,直接用CMakeLists进行编译库.
会提示如下信息

...
-- Configuring done (3.6s)
CMake Error at C:/Users/38684/Downloads/xlnt-master/xlnt-master/third-party/libstudxml.build/CMakeLists.txt:52 (add_library):Cannot find source file:C:/Users/38684/Downloads/xlnt-master/xlnt-master/third-party/libstudxml/libstudxml/parser.cxxTried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm.ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90.f95 .f03 .hip .ispcCMake Error at C:/Users/38684/Downloads/xlnt-master/xlnt-master/third-party/libstudxml.build/CMakeLists.txt:52 (add_library):No SOURCES given to target: libstudxmlCMake Generate step failed.  Build files cannot be regenerated correctly.

https://github.com/kamxgal/libstudxml

将libstudxml-master中的libstudxml 放入 xlnt-master中的 third-party

会遇到 GB2312 936编码 与Unicode编码不一致的问题.

这似乎在提醒诸位,使用Windows C++ 编程的时候,尽量使用Unicode编码.

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

相关文章:

  • 【网络】私有IP和公网IP的转换——NAT技术
  • java 面试 PDF 资料整理
  • 初步认识Linux系统
  • JavaScript AI 编程助手
  • 达梦数据库的系统视图v$datafile
  • Triton/window安装: triton-2.0.0-cp310-cp310-win_amd64.whl文件
  • 应急响应-DDOS-典型案例
  • JAVA学习之知识补充(下)
  • qt生成一幅纯马赛克图像
  • python循环——九九乘法表(更加轻松的理解循环结构)
  • UDS诊断系列之十八故障码的状态掩码
  • 【jvm】直接引用
  • PythonStudio 控件使用常用方式(二十七)TActionList
  • PDF 转Word 开源库
  • Docker - 深入理解Dockerfile中的 RUN, CMD 和 ENTRYPOINT
  • Python 函数式编程 内置高阶函数及周边【进阶篇 3】推荐
  • 【Rust光年纪】探秘Rust GUI库:从安装配置到API概览
  • Element plus部分组件样式覆盖记录
  • 重塑业务生态,Vatee万腾平台:引领行业变革的新引擎
  • 标准术语和定义中的【架构】应该如何描述
  • 华为鸿蒙Core Vision Kit 骨骼检测技术
  • Table API SQL系统(内置)函数System (Built-in) Function详解
  • 一键运行RocketMQ5.3和Dashboard
  • HAL STM32 SG90舵机驱动控制
  • 【Kubernetes】k8s集群图形化管理工具之rancher
  • AI编程系列一1小时完成链家房价爬虫程序
  • 【JavaEE初阶】文件内容的读写—数据流
  • Spring Boot项目中使用Sharding-JDBC实现读写分离
  • 【网络安全】SSO登录过程实现账户接管
  • Admin.NET源码学习(3:LazyCaptcha使用浅析)