I installed libraries from libharu.org accordingly to the instructions on the page(without any errors). Then tried to run an example in qt5. After adding paths to installed directories
INCLUDEPATH +=/usr/local/include
LIBS +=/usr/local/lib -libhpdf
qt5 seemed to found them (headers underline disappeared). However during debug it shows errors
cannot find /usr/local/lib: File format not recognized
cannot find -libhpdf
with
LIBS += -L/usr/...
instead gives errors with every libharu header undefined reference to HPDF_xxx