Libharu explain link in QT c++

201 Views Asked by At

I download libharu.zip, try to include it into QT creator c++. But I don't have lib*.a files in libharu. What do I need to do? It has some makefiles etc.

I find some info about makefile, but don`t understand how it works in QT creator.

nmake -f Makefile.win

What do I need to run this command?

1

There are 1 best solutions below

4
msx_br On

You will need a .so or a .a for linking, in qt creator edit your .pro:

INCLUDEPATH     += <path_to_lib>/your_lib_include

When you have a .so for linking:

LIBS += -L<path_to_lib> -l<libname>

When you have a .a for linking:

LIBS += <path_to_lib>/libname.a