我设法使用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
发布评论