LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-12-2015, 11:14 AM   #1
shirin123
LQ Newbie
 
Registered: Mar 2015
Posts: 22

Rep: Reputation: Disabled
png error in centos 7


Hi guys,
I want to install rasdaman software. when I run 'make* command I receive the following error:



[QUOTE]In file included from /usr/include/png.h:452:0,
from png.cc:49:
png.cc: In member function ‘virtual r_convDesc& r_Conv_PNG::convertTo(const char*)’:
png.cc:185:34: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
else if (setjmp(write_ptr->jmpbuf))
^
In file included from png.cc:49:0:
/usr/include/png.h:857:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
typedef struct png_struct_def png_struct;
^
png.cc:231:69: error: invalid use of incomplete type ‘png_info {aka struct png_info_def}’
itemsScanned = sscanf( trans_string, " %hi ", &(info_ptr->trans_vals.gray) );
^
In file included from png.cc:49:0:
/usr/include/png.h:730:16: error: forward declaration of ‘png_info {aka struct png_info_def}’
typedef struct png_info_def png_info;..................

make[2]: *** [png.o] Error 1
make[2]: Leaving directory `/home/rasdaman/conversion'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rasdaman'
make: *** [all] Error 2



also, I have installed libpng-devel library by yum command. its version is 1.5.
would you please help me how to solve this error??

thank you.
 
Old 03-12-2015, 05:07 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
install the compatibility libpng12 and libpng12-devel

this is very well documented in the changes in png15 and png16

or

update your old code to the current standard
 
Old 03-12-2015, 09:57 PM   #3
shirin123
LQ Newbie
 
Registered: Mar 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hi John,
would you please describe how to do that?? since I have searched a lot but non of the codes described in the web were not applicable for me.
 
Old 03-12-2015, 11:08 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
there is no real
step #1
step#2
step #3

it is dependent on the program being built
cent uses "alternatives "
or
you can use a simlink in
/usr/lib64/pkgconfig/libpng12.pc > libpng.pc
-- and back to default ---
/usr/lib64/pkgconfig/libpng15.pc > libpng.pc

you can state to use -Lpng12 in the makefile.in or makefile.am
or configure.in
or export it before running configure



is this the software ?
http://www.rasdaman.org/

if so it is rather complex
from the documentation

RHEL6 is supported 7 is NOT YET

you might want to look through the FAQ
http://rasdaman.org/wiki/FAQ
and the install guide
http://rasdaman.org/wiki/Install

BUT for redhat you need to use this guide for RHEL6
http://rasdaman.org/wiki/RPM


porting this to 7 will take a lot of effort

Last edited by John VV; 03-12-2015 at 11:13 PM.
 
Old 03-12-2015, 11:15 PM   #5
shirin123
LQ Newbie
 
Registered: Mar 2015
Posts: 22

Original Poster
Rep: Reputation: Disabled
I have installed all the requirement packages for this software and take all of its error except this one. so, how can I port it to 7??
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5 will not show PNG icons, errors when X starts. vectro Linux - Desktop 10 03-31-2010 08:18 PM
PNG files not recognized in GNOME in Centos 5.4 whyzerman Linux - Desktop 2 01-18-2010 12:51 PM
Red Hat switchdesk.png Error craig467 Red Hat 3 07-14-2006 01:06 PM
Webalizer: configure: error: png library not found... please install png. mikeshn Linux - Software 5 01-10-2005 02:28 PM
Where is trashcan_full/empty.png and kmenu.png??? d33pdream Linux - General 2 02-25-2003 11:13 PM

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

All times are GMT -5. The time now is 07:05 AM.

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