I'm doing a project in C++ for school in which I decided to use LastFM's library (github repo). I followed the instructions and installed it and all the dependencies but when I put LIBS += -llastfm
in the .pro file in Qt as stated in the 'Using liblastfm' section from the repo, I get the error "File liblastfm.so.1 could not be found".
I went to the library's folder in '/usr/include' (as far as I remember) and found three files:
- liblastfm.so
- liblastfm.so.1
- liblastfm.so.1.0.8
These files were organized as following: liblastfm.so was a link to liblastfm.so.1 and liblastfm.so.1 was a link to liblastfm.so.1.0.8 which was, in fact, the library file. I'm assuming they did this for easy maintenance when it comes to updates but as far as I could tell QtCreator doesn't know how the follow the link since it's finding the liblastfm.so but can't reach liblastfm.so.1.
I tried to delete the .so and .so.1 files and then rename the .so.1.0.8 file into just liblastfm.so but it still said that it can't find the .so.1 file, which was kinda' confusing.
I also tried addid the library manually by right clicking the project and select "Add library" but when I reached the liblastfm's folder, only the liblastfm.so file was recognized as a library file and if I added it, the same error occured.
So, any help would be appreciated!