determining the Qt .pro file entry for libs

I don’t really understand how to determine the .pro file entry for libs.

I’ve downloaded yaml-cpp-devel

/usr/lib64/libyaml-0.so.2
/usr/lib64/libyaml-0.so.2.0.4
/usr/lib64/libyaml-cpp.so.0.5
/usr/lib64/libyaml-cpp.so.0.5.3
/usr/lib64/libyaml-cpp.so

but the following doesn’t work:

LIBS += -L/usr/lib64/ -llibyaml-cpp

LIBS += -L/usr/lib64/ -lyaml-cpp

seems to work… >_<

Hi
If you look at using pkg-config (PKGCONFIG += yaml-cpp) it probably helps, in your case check /usr/lib64/pkgconfig/yaml-cpp.pc file, it is -lyaml-cpp, no lib :wink:

Have you installed the deveopment files for yaml? https://software.opensuse.org/
And when installed (maybe already) I think you only have to

LIBS += -llibyaml
or
LIBS += -lyaml

To be shure, check that yaml (.h for header) in /usr/include (or subdirectory)
/J

Thanks guys :-]