Qt 安装 taglib 获取媒体信息windows
taglib.org TagLib 1.11.1
Qt 5.9.2
Qt creator 4.4.1
cmake 3.12.1
1.添加环境变量
系统属性-高级系统设置-高级-环境变量-系统变量-path-编辑
添加 …\Qt5.9.2\Tools\mingw530_32\bin 上移到顶
2.运行cmake gui
Where is the source code: 输入源目录
例如:这个 C:\Users\72935\Desktop\Player\taglib-1.11.1\taglib-1.11.1 就是我的源目录
Where to build the binaries:
例如: C:/Users/72935/Desktop/Player/build
3 点击configure
MinGw Makefiles
Specify native compilers
next
C选择Qt5.9.2\Tools\mingw530_32\bin目录下的gcc,C++选择g++
finish
等待
将value中的C:/Program Files (x86)/taglib值改为需要的地址, 我的是C:\Users\72935\Desktop\Player\BugPlayer\taglib
可以勾选ENABLE_STATIC_RUNTIME 和自己需要的各种选项
点击configure
点击generate
4 打开cmd
使用 cd 进入 C:/Users/72935/Desktop/Player/build (Where to build the binaries: )
输入mingw32-make回车
输入mingw32-make install
5 在目录中找到文件
C:\Users\72935\Desktop\Player\BugPlayer\taglib