I have installed LibHaru on my ubuntu machine. When I try to run a demo case, the following errors appear. Can somebody help me to solve these errors:
CMakeFiles/untitled.dir/main.cpp.o: In function `show_stripe_pattern(_HPDF_Dict_Rec*, float, float)':
/home/d/Dropbox/podofo/untitled/main.cpp:47: undefined reference to `HPDF_Page_SetRGBStroke'
/home/d/Dropbox/podofo/untitled/main.cpp:48: undefined reference to `HPDF_Page_SetLineWidth'
/home/d/Dropbox/podofo/untitled/main.cpp:49: undefined reference to `HPDF_Page_MoveTo'
/home/d/Dropbox/podofo/untitled/main.cpp:50: undefined reference to `HPDF_Page_TextWidth'
/home/d/Dropbox/podofo/untitled/main.cpp:51: undefined reference to `HPDF_Page_LineTo'
/home/d/Dropbox/podofo/untitled/main.cpp:52: undefined reference to `HPDF_Page_Stroke'
/home/d/Dropbox/podofo/untitled/main.cpp:56: undefined reference to `HPDF_Page_SetLineWidth'
CMakeFiles/untitled.dir/main.cpp.o: In function `show_description(_HPDF_Dict_Rec*, float, float, char const*)':
/home/d/Dropbox/podofo/untitled/main.cpp:66: undefined reference to `HPDF_Page_GetCurrentFontSize'
/home/d/Dropbox/podofo/untitled/main.cpp:67: undefined reference to `HPDF_Page_GetCurrentFont'
/home/d/Dropbox/podofo/untitled/main.cpp:68: undefined reference to `HPDF_Page_GetRGBFill'
/home/d/Dropbox/podofo/untitled/main.cpp:70: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:71: undefined reference to `HPDF_Page_SetRGBFill'
/home/d/Dropbox/podofo/untitled/main.cpp:72: undefined reference to `HPDF_Page_SetTextRenderingMode'
/home/d/Dropbox/podofo/untitled/main.cpp:73: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:74: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:75: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:77: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:78: undefined reference to `HPDF_Page_SetRGBFill'
CMakeFiles/untitled.dir/main.cpp.o: In function `main':
/home/d/Dropbox/podofo/untitled/main.cpp:108: undefined reference to `HPDF_New'
/home/d/Dropbox/podofo/untitled/main.cpp:115: undefined reference to `HPDF_Free'
/home/d/Dropbox/podofo/untitled/main.cpp:120: undefined reference to `HPDF_SetCompressionMode'
/home/d/Dropbox/podofo/untitled/main.cpp:123: undefined reference to `HPDF_GetFont'
/home/d/Dropbox/podofo/untitled/main.cpp:126: undefined reference to `HPDF_AddPage'
/home/d/Dropbox/podofo/untitled/main.cpp:139: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:140: undefined reference to `HPDF_Page_TextWidth'
/home/d/Dropbox/podofo/untitled/main.cpp:141: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:143: undefined reference to `HPDF_Page_GetHeight'
/home/d/Dropbox/podofo/untitled/main.cpp:142: undefined reference to `HPDF_Page_GetWidth'
/home/d/Dropbox/podofo/untitled/main.cpp:143: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:144: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:146: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:147: undefined reference to `HPDF_Page_GetHeight'
/home/d/Dropbox/podofo/untitled/main.cpp:147: undefined reference to `HPDF_Page_MoveTextPos'
/home/d/Dropbox/podofo/untitled/main.cpp:158: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:161: undefined reference to `HPDF_Page_MoveTextPos'
/home/d/Dropbox/podofo/untitled/main.cpp:166: undefined reference to `HPDF_Page_GetWidth'
/home/d/Dropbox/podofo/untitled/main.cpp:165: undefined reference to `HPDF_Page_MeasureText'
/home/d/Dropbox/podofo/untitled/main.cpp:171: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:174: undefined reference to `HPDF_Page_MoveTextPos'
/home/d/Dropbox/podofo/untitled/main.cpp:175: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:181: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:189: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:190: undefined reference to `HPDF_Page_MoveTextPos'
/home/d/Dropbox/podofo/untitled/main.cpp:191: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:193: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:194: undefined reference to `HPDF_Page_MoveTextPos'
/home/d/Dropbox/podofo/untitled/main.cpp:203: undefined reference to `HPDF_Page_SetRGBFill'
/home/d/Dropbox/podofo/untitled/main.cpp:204: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:206: undefined reference to `HPDF_Page_MoveTextPos'
/home/d/Dropbox/podofo/untitled/main.cpp:215: undefined reference to `HPDF_Page_SetRGBFill'
/home/d/Dropbox/podofo/untitled/main.cpp:216: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:218: undefined reference to `HPDF_Page_MoveTextPos'
/home/d/Dropbox/podofo/untitled/main.cpp:227: undefined reference to `HPDF_Page_SetRGBFill'
/home/d/Dropbox/podofo/untitled/main.cpp:228: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:231: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:238: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:239: undefined reference to `HPDF_Page_SetRGBFill'
/home/d/Dropbox/podofo/untitled/main.cpp:240: undefined reference to `HPDF_Page_SetLineWidth'
/home/d/Dropbox/podofo/untitled/main.cpp:245: undefined reference to `HPDF_Page_SetTextRenderingMode'
/home/d/Dropbox/podofo/untitled/main.cpp:246: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:247: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:248: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:253: undefined reference to `HPDF_Page_SetTextRenderingMode'
/home/d/Dropbox/podofo/untitled/main.cpp:254: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:255: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:256: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:261: undefined reference to `HPDF_Page_SetTextRenderingMode'
/home/d/Dropbox/podofo/untitled/main.cpp:262: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:263: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:264: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:269: undefined reference to `HPDF_Page_GSave'
/home/d/Dropbox/podofo/untitled/main.cpp:270: undefined reference to `HPDF_Page_SetTextRenderingMode'
/home/d/Dropbox/podofo/untitled/main.cpp:271: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:272: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:273: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:275: undefined reference to `HPDF_Page_GRestore'
/home/d/Dropbox/podofo/untitled/main.cpp:280: undefined reference to `HPDF_Page_GSave'
/home/d/Dropbox/podofo/untitled/main.cpp:281: undefined reference to `HPDF_Page_SetTextRenderingMode'
/home/d/Dropbox/podofo/untitled/main.cpp:282: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:283: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:284: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:286: undefined reference to `HPDF_Page_GRestore'
/home/d/Dropbox/podofo/untitled/main.cpp:291: undefined reference to `HPDF_Page_GSave'
/home/d/Dropbox/podofo/untitled/main.cpp:292: undefined reference to `HPDF_Page_SetTextRenderingMode'
/home/d/Dropbox/podofo/untitled/main.cpp:293: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:294: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:295: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:297: undefined reference to `HPDF_Page_GRestore'
/home/d/Dropbox/podofo/untitled/main.cpp:300: undefined reference to `HPDF_Page_SetTextRenderingMode'
/home/d/Dropbox/podofo/untitled/main.cpp:301: undefined reference to `HPDF_Page_SetRGBFill'
/home/d/Dropbox/podofo/untitled/main.cpp:302: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:312: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:314: undefined reference to `HPDF_Page_SetTextMatrix'
/home/d/Dropbox/podofo/untitled/main.cpp:315: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:316: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:323: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:330: undefined reference to `HPDF_Page_SetTextMatrix'
/home/d/Dropbox/podofo/untitled/main.cpp:331: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:332: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:339: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:340: undefined reference to `HPDF_Page_SetTextMatrix'
/home/d/Dropbox/podofo/untitled/main.cpp:341: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:342: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:349: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:350: undefined reference to `HPDF_Page_SetTextMatrix'
/home/d/Dropbox/podofo/untitled/main.cpp:351: undefined reference to `HPDF_Page_ShowText'
/home/d/Dropbox/podofo/untitled/main.cpp:352: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:363: undefined reference to `HPDF_Page_SetFontAndSize'
/home/d/Dropbox/podofo/untitled/main.cpp:364: undefined reference to `HPDF_Page_SetRGBFill'
/home/d/Dropbox/podofo/untitled/main.cpp:367: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:368: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:369: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:372: undefined reference to `HPDF_Page_SetCharSpace'
/home/d/Dropbox/podofo/untitled/main.cpp:374: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:375: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:376: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:379: undefined reference to `HPDF_Page_SetWordSpace'
/home/d/Dropbox/podofo/untitled/main.cpp:381: undefined reference to `HPDF_Page_BeginText'
/home/d/Dropbox/podofo/untitled/main.cpp:382: undefined reference to `HPDF_Page_TextOut'
/home/d/Dropbox/podofo/untitled/main.cpp:383: undefined reference to `HPDF_Page_EndText'
/home/d/Dropbox/podofo/untitled/main.cpp:386: undefined reference to `HPDF_SaveToFile'
/home/d/Dropbox/podofo/untitled/main.cpp:389: undefined reference to `HPDF_Free'
collect2: error: ld returned 1 exit status
CMakeFiles/untitled.dir/build.make:94: recipe for target 'untitled' failed
make[3]: *** [untitled] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/untitled.dir/all' failed
make[2]: *** [CMakeFiles/untitled.dir/all] Error 2
CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/untitled.dir/rule' failed
make[1]: *** [CMakeFiles/untitled.dir/rule] Error 2
Makefile:118: recipe for target 'untitled' failed
make: *** [untitled] Error 2