Reputation: 97
I have qtcreator 5 and I want to use the libpng12-0 library. I don't know how I have to link into my project ? There's a problem when I writte:
loadedimage = IMG_Load(filename.c_str());
I know that I have to writte something like:
LIBS += -L
LIBS += -libpng12-0
Does anyone know what I have to do ?
I tried a lot of things but I'm new on qt creator 5. Thanks for help. Sorry for my english.
Upvotes: 2
Views: 182
Reputation: 480
If you need a GUI method then,
If you directly want to edit .pro file, then library name will be -lpng12-0
not -libpng12-0
.
Upvotes: 2