c + +在Windows中使用带有Qt的PortAudio [英] c++ Using PortAudio in Windows with Qt

查看:317
本文介绍了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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆