c + +在Windows中使用带有Qt的PortAudio

编程入门 行业动态 更新时间:2024-10-24 14:18:19
本文介绍了c + +在Windows中使用带有Qt的PortAudio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我设法使用MSYS在Windows上编译PortAudio. 此过程已创建2个文件:libportaudio-2.dll和libportaudio.dll.a

I have managed to compile PortAudio on windows using MSYS. this process has created 2 files: libportaudio-2.dll and libportaudio.dll.a

现在,我想链接QtCreator中的库,但是我不能,因为它需要一个.lib文件.

Now i want to link the libraries in QtCreator, but i can not since it requires a .lib file.

如果任何人都具有在Windows下使用MSYS编译和使用库的经验,那么您的输入将不胜感激.

If anybody have experience of compiling and using libraries with MSYS under windows, your input is appreciated.

(注意:它们是使用MindGW编译器进行编译的.我不想使用Microsoft Visual Studio进行编译,因为那样的话我将不得不编译QT)

(Note: they are compiled using MindGW compiler. I dont want to compile it with Microsoft Visual Studio, since then i will have to compile QT)

推荐答案

解决问题非常简单.在这里,我报告一个文件示例.需要使用的专业人士:

to solve your problem is very simple. Here I report an example of a file. pros who need to use:

QT += core QT -= gui TARGET = mioTestAudio CONFIG += console CONFIG -= app_bundle TEMPLATE = app LIBS += -lportaudio.dll <-------- this is the part you are interested SOURCES += main.cpp

更多推荐

c + +在Windows中使用带有Qt的PortAudio

本文发布于:2023-10-25 22:18:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1528266.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Windows   Qt   PortAudio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!