Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vue.js/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
c++;在Windows和Qt中使用PortAudio_Qt_Mingw_Libraries_Msys_Portaudio - Fatal编程技术网

c++;在Windows和Qt中使用PortAudio

c++;在Windows和Qt中使用PortAudio,qt,mingw,libraries,msys,portaudio,Qt,Mingw,Libraries,Msys,Portaudio,我已经使用MSYS在windows上编译了PortAudio。 此进程已创建2个文件:libportaudio-2.dll和libportaudio.dll.a 现在我想链接QtCreator中的库,但我不能,因为它需要一个.lib文件 如果有人有在windows下使用MSYS编译和使用库的经验,我们将非常感谢您的意见 (注意:它们是用MindGW编译器编译的。我不想用Microsoft Visual Studio编译,因为那时我必须编译QT)解决您的问题非常简单。这里我报告一个文件示例。需要使

我已经使用MSYS在windows上编译了PortAudio。 此进程已创建2个文件:libportaudio-2.dll和libportaudio.dll.a

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

如果有人有在windows下使用MSYS编译和使用库的经验,我们将非常感谢您的意见


(注意:它们是用MindGW编译器编译的。我不想用Microsoft Visual Studio编译,因为那时我必须编译QT)

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

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
QT+=core
QT-=gui
目标=mioTestAudio
配置+=控制台
配置-=应用程序包
模板=应用程序
LIBS+=-lportaudio.dll