http://stackoverflow.com/questions/3517694/linking-libraries-to-a-qt-project-using-pkg-config-output
http://beaufour.dk/blog/2008/02/using-pkgconfig.html
Using pkg-config in qmake
By beaufour on February 5, 2008 12:24 PM | Permalink | Comments (0)
I saw some random mentions of pkg-config support in qmake lying around on the ‘net, but of course found no documentation about it in Qt. (I even mailed their support dept. which said it did not exist :) ).
Nevertheless it does (at least in Qt 4.3.3). So for example to add the necessary magic to use Alsa, just do this:
CONFIG += link_pkgconfig
PKGCONFIG += alsa
Tags: pkgconfig, qmake, qt
Leave a comment
Sign in to comment on this entry.
本文介绍了如何在Qt的qmake构建系统中利用pkg-config来链接外部库,通过简单的配置即可实现Alsa等库的集成。
1万+

被折叠的 条评论
为什么被折叠?



