LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error with "png_struct" (https://www.linuxquestions.org/questions/linux-newbie-8/error-with-png_struct-4175483760/)

sryzdn 11-07-2013 12:09 PM

error with "png_struct"
 
Hi,

I am installing a package called povray version 3.6. When I type "make", I receive the following error on fedora 19:

Quote:

/usr/include/png.h:857:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
typedef struct png_struct_def png_struct;
Your comments for solving this problem will be highly appreciated.

mreff555 11-07-2013 01:05 PM

Never installed it but, Read the install directions and make sure you are running make from the right directory.

knudfl 11-07-2013 02:05 PM

'povray version 3.6' : Problematic. Old version. Very old. 2006 ?
Fixes are available.
Would take some time to try out all "maybe fixes".

Easier : Set up a (temporary) 'atrpms repo'.
( Atrpms is not compatible with the main repos. Updates would fail.
# 'yum install povray' : Will provide povray-3.7.0.RC7-1.fc19

Compiling : povray-3.7.0.RC7 will build on Fedora 19 with no errors.
http://www.povray.org/beta/ >>
>> http://www.povray.org/redirect/www.p....0.RC7.tar.bz2
> povray-3.7.0.RC7.tar.bz2

-

John VV 11-07-2013 11:06 PM

that OLD version of the ray tracer "pov-ray"
is looking for the libpng12 source code
fedora 19 has libpng15

see the problem
also that OLD povray code was built for a OLD version of gcc
( a guess gcc 4.0 )
the current gcc 4.8 in fedora is WAY WAY WAY MORE strict in coding standards

if you MUST use a old version of that program on a VERY VERY NEW operating system , you will have some problems

install gcc 4.1 or 3.4 alongside the 4.8 that is installed ( from source)
install the old libpng 12 ( from source )

force the old version of povray to build with libpng 12 instead of the default 15


I would use the current version of pov-ray
http://www.povray.org/beta/

atrpms repo has it " povray-3.7.0.RC7-1.fc19 "
install the atrpms.repo ( and the yum-prioritizes plugin and CONFIGURE IT !!!!!! )
then use yum to install povray

the repo rpm -- 64 bit !!!
http://dl.atrpms.net/f19-x86_64/atrp...7-1.noarch.rpm

knudfl 11-08-2013 12:48 AM

# 4 .

Fedora 19 comes with 'libpng12-devel'.
Not really any help for povray-6.1, that will still fail
(Fedora 19 / gcc-4.8.1).
But with another libpng error.

-

sryzdn 11-08-2013 06:21 AM

1 Attachment(s)
I did't use atrpms repo. But, I have also tried the newer version of povray (3.7.0) and here is the error I got:

Quote:

checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for boostlib >= 1.37... yes
checking whether the Boost::Thread library is available... yes
checking whether the boost thread library is usable... no
configure: error: in `/home/sara/Packages/povray-3.7.0.RC7':
configure: error: cannot link with the boost thread library
See `config.log' for more details
I searched the config.log, but I can't see what library is missing!!!

knudfl 11-08-2013 07:53 AM

# 6 .

How is your ./configure command ?

This will do : $ ./configure COMPILED_BY="Name mail@mail.foo"
... with Fedora 19 / povray-3.7.0.RC7.tar.bz2

P.S. : The 32bits Fedora 19 was used. Which is yours ?


-

sryzdn 11-08-2013 08:11 AM

Quote:

# 6 .

How is your ./configure command ?

This will do : $ ./configure COMPILED_BY="Name mail@mail.foo"
The configure I used is like what you said. I just erased the name and email in config.log when I wanted to post it here.

Quote:

P.S. : The 32bits Fedora 19 was used. Which is yours ?
Mine is 64bits

knudfl 11-08-2013 09:09 AM

# 8 .

OK, I will try with a test compile on the 64bits Fedora.


# 6 : Why don't you install the Atrpms package ?

-

sryzdn 11-08-2013 12:02 PM

Thanks installed by Atrpms. Just need to find how to make an input file for it.


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