ravas
July 28, 2016, 7:59pm
1
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
ravas
July 28, 2016, 8:14pm
2
LIBS += -L/usr/lib64/ -lyaml-cpp
seems to work… >_<
ravas:
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
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
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