开发者

How to link to yaml-cpp on Arch Linux with qtcreator?

I'm interested in using Yaml in my media player project. The only problem is I can't figure out how you compile with Yaml, especially on qt-creator. The AUR package for yaml-cpp doesn't seem to install the libs in /usr/lib for some reason, so I'm not sure how to go about doing this. I'm using Qt and developing within the Qtcreator environment. Help would be ap开发者_运维知识库preciated.


I used QtCreator to start a CMake project, then used a CMake file to find yaml-cpp. Here is the CMake file to link yaml-cpp to your project.

Additionally, you should be able to go into your ".pro" file, r-click, and hit "add library". Select "system library", then you can use either pkgconfig or manual if you know where the lib is. If you can't figure out where it is, look in the PKGBUILD for yaml-cpp - it will tell you where it installs everything.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜