LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2021, 03:22 PM   #1
ms1689
LQ Newbie
 
Registered: Aug 2021
Posts: 3

Rep: Reputation: Disabled
Libharu


So I am trying to install libharu (libHaru is a free, open source, cross platform library for generating PDF files for applications written in C or C++) which is needed so that I can install this free open source accountability software called accountability pal. I am running manjaro KDE on my laptop. The programme specifically is: Haru Free PDF Library Version 2.0.8 - Nov 25, 2006, URL http://libharu.sourceforge.net.

The exact instructions are:

Build from source on linux platform

1) Unpack the libharu package.

tar -xvzf libharu_2.X.X.tgz
cd libharu-2.X.X

2) Run configure script

./configure [--prefix=$HOME] [--shared]

3) Build library and install

make clean
make
make install

However, when I get to the make install stage I get the following error:



"libharu-2.0.8]$ make install

gcc -o src/hpdf_image_png.o -Iinclude -O2 -Wall -c src/hpdf_image_png.c
src/hpdf_image_png.c: In function ‘ReadPngData_Interlaced’:
src/hpdf_image_png.c:109:25: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
109 | info_ptr->height * sizeof (png_bytep));
| ^~
src/hpdf_image_png.c:114:47: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
114 | HPDF_MemSet (row_pointers, 0, info_ptr->height * sizeof (png_bytep));
| ^~
src/hpdf_image_png.c:115:44: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
115 | for (i = 0; i < (HPDF_UINT)info_ptr->height; i++) {
| ^~
src/hpdf_image_png.c:127:52: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
127 | for (i = 0; i < (HPDF_UINT)info_ptr->height; i++) {
| ^~
src/hpdf_image_png.c:136:44: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
136 | for (i = 0; i < (HPDF_UINT)info_ptr->height; i++) {
| ^~
src/hpdf_image_png.c: In function ‘ReadPngData’:
src/hpdf_image_png.c:158:44: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
158 | for (i = 0; i < (HPDF_UINT)info_ptr->height; i++) {
| ^~
src/hpdf_image_png.c: In function ‘LoadPngData’:
src/hpdf_image_png.c:305:17: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
305 | if (info_ptr->bit_depth == 16)
| ^~
src/hpdf_image_png.c:308:40: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
308 | if (PNG_COLOR_MASK_ALPHA & info_ptr->color_type) {
| ^~
src/hpdf_image_png.c:320:17: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
320 | if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
| ^~
src/hpdf_image_png.c:322:22: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
322 | else if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY)
| ^~
src/hpdf_image_png.c:348:65: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
348 | if (HPDF_Dict_AddNumber (image, "Width", (HPDF_UINT)info_ptr->width)
| ^~
src/hpdf_image_png.c:352:66: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
352 | if (HPDF_Dict_AddNumber (image, "Height", (HPDF_UINT)info_ptr->height)
| ^~

src/hpdf_image_png.c:357:36: error: invalid use of incomplete typedef ‘png_info’ {aka ‘struct png_info_def’}
357 | (HPDF_UINT)info_ptr->bit_depth) != HPDF_OK)
| ^~
src/hpdf_image_png.c: In function ‘PngBeforeWrite’:
src/hpdf_image_png.c:389:49: warning: pointer targets in passing argument 2 of ‘HPDF_FileReader_New’ differ in signedness [-Wpointer-sign]
389 | png_data = HPDF_FileReader_New (obj->mmgr, s->value);
| ~^~~~~~~
| |
| HPDF_BYTE * {aka unsigned char *}
In file included from include/hpdf_encoder.h:21,
from include/hpdf_objects.h:18,
from include/hpdf_image.h:18,
from src/hpdf_image_png.c:17:
include/hpdf_streams.h:150:36: note: expected ‘const char *’ but argument is of type ‘HPDF_BYTE *’ {aka ‘unsigned char *’}
150 | const char *fname);
| ~~~~~~~~~~~~~^~~~~
make: *** [Makefile:137: src/hpdf_image_png.o] Error 1"

Last edited by ms1689; 08-18-2021 at 02:51 PM. Reason: answer to comments
 
Old 08-16-2021, 07:32 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Quote:
make: *** [Makefile:137: src/hpdf_image_png.o] Error 1
Let me make sure I understand. Did you get the above quoted error when you ran make, then you ran make install?

If that is the case, you need to resolve the "make" error first. Unfortunately, when I tried a web search for that error, I turned up a confusing mish-mosh of responses.

Also, please surround any terminal output with "code" tags which become available when you click the "Advanced" button beneath the compose/edit post window. It makes terminal output much easier to read.
 
1 members found this post helpful.
Old 08-17-2021, 02:12 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by ms1689 View Post
I am running manjaro
libharu is in ArchLinux' [community] repository. Should be in Manjaro's too. I don't think you need to compile it manually.
 
1 members found this post helpful.
Old 08-17-2021, 04:04 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
yes, try to install it from repository. Otherwise would be nice to know what did you try to make exactly (what did you download from where), what other steps did you execute before, what OS, compiler do you have exactly.
what you posted (the error message) is not enough to diagnose, it looks like a step was missing or some kind of incompatibility.
 
1 members found this post helpful.
Old 08-20-2021, 02:42 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@ms1689, if you really want to compile libharu from source:

The "year 2013 stable release v2.3.0" http://libharu.org/ → → https://github.com/libharu/libharu/a...EASE_2_3_0.zip

Or: https://github.com/libharu/libharu
 
Old 08-24-2021, 01:37 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by graceholiday View Post
Southeast Asian ladies as friendly, hardworking capable of speak(ing) English.
Please remember that such obvious spammers accounts need to be removed completely because they often put spam links in their profiles, too.
 
Old 08-24-2021, 05:29 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I wanted to edit the post to portray quality's of Asian women.
I get yelled at when I delete posts.
 
Old 08-25-2021, 12:52 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by jefro View Post
I wanted to edit the post to portray quality's of Asian women.
I get yelled at when I delete posts.
Not sure I understand.
Not sure you understand.
The above user's profile page contains a spam link; the whole account has to be removed to get rid of that, not just one post.
 
2 members found this post helpful.
Old 08-25-2021, 01:49 AM   #9
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
Possibly, only jeremy='root' can delete accounts. (like can't #rm -rf ..)
Quote:
Originally Posted by jeremy View Post
We don't remove accounts that have posts associated with them.
Use the 'Contact Us' link at bottom of page. (vs pm/email 'root')
(suggest root remove posts #6-on from this thread &also)

Last edited by GentleThotSeaMonkey; 08-26-2021 at 09:27 PM.
 
Old 08-25-2021, 03:37 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I see no link on their profile page.
 
Old 08-25-2021, 05:02 PM   #11
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by jefro View Post
I see no link on their profile page.
It's at the bottom, under "Contact Info" > "Home Page".

 
Old 08-25-2021, 10:09 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I have no access to delete that as far as I know.
 
Old 08-25-2021, 11:52 PM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Knowing that jeremy moderates that subforum, I have added a link to one such offending profile to this thread.
Somebody might open a dedicated thread for reporting such profiles.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration