LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-02-2011, 12:11 PM   #1
sharonshabtai
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Rep: Reputation: 0
Problem with libpng while trying to install Stage-3.2.2


I got the following error while running make on stage-3.2.2
after looking looking around the web I have already installed these packages:
(im working on ubunto i686 -> if it helps :P )

freeglut3 (for stage)
freeglut3-dev (for stage)
libfltk1.1 (for stage)
libfltk1.1-dev (for stage)
libgtk2.0-dev (for stage)
libltdl7 (for stage)
libltdl7-dev (for stage)
libpng12-0 (for stage)
libpng12-0-dev (for stage)

and still I get the same errors

-----------------------------------

Linking CXX shared library libstage.so
[ 59%] Built target stage
[ 61%] Building CXX object libstage/CMakeFiles/stagebinary.dir/main.o
Linking CXX executable stage
libstage.so.3.2.2: undefined reference to `png_create_info_struct'
libstage.so.3.2.2: undefined reference to `png_set_IHDR'
libstage.so.3.2.2: undefined reference to `png_set_rows'
libstage.so.3.2.2: undefined reference to `png_destroy_write_struct'
libstage.so.3.2.2: undefined reference to `png_init_io'
libstage.so.3.2.2: undefined reference to `png_write_png'
libstage.so.3.2.2: undefined reference to `fl_register_images()'
libstage.so.3.2.2: undefined reference to `Fl_PNG_Image::Fl_PNG_Image(char const*)'
libstage.so.3.2.2: undefined reference to `png_create_write_struct'
collect2: ld returned 1 exit status
make[2]: *** [libstage/stage] Error 1
make[1]: *** [libstage/CMakeFiles/stagebinary.dir/all] Error 2
make: *** [all] Error 2


----------------------------

any help would be very much appreciated
 
Old 03-02-2011, 02:20 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,865

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
I bet there's an earlier error you missed. It looks like it's missing libpng. I have libpng-1.4.2 on slackware-13.1. I did a search for that png_create_info_struct and found a lot that might read a png, and these

Binary file /usr/lib64/libpng14.so.14.2.0 matches
Binary file /usr/lib64/libwmf.so matches
Binary file /usr/lib64/compiz/libpng.so matches
Binary file /usr/lib64/libpng14.so matches

That might be important in writing one.
 
Old 03-02-2011, 04:21 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,315

Rep: Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576
Welcome to LQ.

The command 'cat /etc/issue' will show your Ubuntu version. Please specify.
http://linuxsilo.net/docs/smart-questions_en.html

sudo apt-get install libpng12-dev :
Installs version 1.2.44-1 on Ubuntu 10.10 Maverick.

( It's only Slackware ( and Arch ), that uses a libpng-1.4.x, I think.)

Installing Player/Stage on Ubuntu
https://codex.cs.bham.ac.uk/irlab/in...n_Ubuntu_10.04

Packages http://playerstage.sourceforge.net/wiki/Download
Ubuntu http://playerstage.sourceforge.net/w...buntu_packages
> > stage-3.2.2 https://launchpad.net/~thjc/+archive/ppa/

Last edited by knudfl; 03-02-2011 at 04:22 PM.
 
Old 03-07-2011, 10:19 AM   #4
sharonshabtai
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Hi sorry for the late reply I've been away from my computer for the weekend.

the linux version returned by cat /etc/issue is : Ubuntu 10.10 \n \l

I downloaded all the source packages again and the same error repeated itself,

I tried following the installation guide that you gave me :

https://codex.cs.bham.ac.uk/irlab/in...n_Ubuntu_10.04

but I'm not sure really how to use the commands in there ( in the Installing Dependencies part), I tried writing them, but in the result it said that it was unable to locate several packages so I'm pretty much clueless on what to do now. This is the result I got for typing those commands:

------------------------------------------------
~$ sudo apt-get install autotools-dev build-essential \
> cmake cpp freeglut3 freeglut3-dev libart-2.0-2 libatk1.0-0 \
> libboost-signals1.40.0 libboost-signals1.40-dev \
> libboost-thread1.40.0 libboost-thread1.40-dev libc6 libcairo2 libcv4 \
> libcv-dev libcvaux4 libfontconfig1 libfreetype6 libgcc1 \
> libgl1-mesa-glx libglib2.0-0 libglu1-mesa libglu1 libgnomecanvas2-0 \
> libgsl0ldbl libgsl0-dev libgtk2.0-0 libhighgui4 libjpeg62 \
> libjpeg62-dev liblodo0 libltdl7 libpango1.0-0 libplayerc++2 \
> libplayerc2 libplayercore2 libplayerdrivers2 libplayererror2 \
> libplayertcp2 libplayerxdr2 libpmap0 libstdc++6 zlib1g libxmu-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libglu1-mesa' instead of 'libglu1'
Note, selecting 'libplayerc2-dev' for regex 'libplayerc++2'
Note, selecting 'libplayerc3.0-dev' instead of 'libplayerc2-dev'
Package libplayercore2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libplayererror2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package libcv4
E: Unable to locate package libcvaux4
E: Unable to locate package libhighgui4
E: Unable to locate package liblodo0
E: Unable to locate package libplayerc2
E: Package 'libplayercore2' has no installation candidate
E: Unable to locate package libplayerdrivers2
E: Package 'libplayererror2' has no installation candidate
E: Unable to locate package libplayertcp2
E: Unable to locate package libplayerxdr2
E: Unable to locate package libpmap0


--------------------------------------------------

my error remains the same I get the same result after running make

P.S:Im not really sure how to search for a certain struct like you did "buisness_kid", I tried the "find" command followed by "grep png_create_info_struct" but I'm guessing that only works for file names and doesn't search inside files.
 
Old 03-07-2011, 01:44 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,865

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
I did say libpng.
This way in Ubuntu

I used this
grep png_create_info_struct /usr/lib/*

Just looking at that name 'png_create_info_struct' I formed the notion it had to do with writing png files. I found many things that might write a file (imlib, imagemagick, sdl, cairo, cups, qt, etc) and libpng, which they all probably call to write the png file. Not hugely scientific, just sneaky & lazy. The libs in imagemagick are saying 'call png_create_info_struct in libpng.so' and libpng.so has the png_create_info_struct routine which writes the file.

I then did a grep in /var/log/packages/* to get a name for the package with libpng.so.
grep libpng.so /var/log/packages/* (This is a slackware thing).

All of this leaves out pkgconfig. There is a dir /usr/lib/pkgconfig which has a list of installed tools in a software friendly format and the configure script might just be checking /usr/lib/pkgconfig and saying to itself "He has/has not got libpng installed"

Have you got /usr/lib(64)/libpng.so?
 
Old 03-08-2011, 10:32 AM   #6
sharonshabtai
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Q: Have you got /usr/lib(64)/libpng.so?
A: No, in /usr/lib(64) I only have a dir called libfakeroot, but I do have this /usr/lib/libpng.so

any idea?
 
Old 03-08-2011, 11:52 AM   #7
sharonshabtai
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sharonshabtai View Post
Hi sorry for the late reply I've been away from my computer for the weekend.

the linux version returned by cat /etc/issue is : Ubuntu 10.10 \n \l

I downloaded all the source packages again and the same error repeated itself,

I tried following the installation guide that you gave me :

https://codex.cs.bham.ac.uk/irlab/in...n_Ubuntu_10.04

but I'm not sure really how to use the commands in there ( in the Installing Dependencies part), I tried writing them, but in the result it said that it was unable to locate several packages so I'm pretty much clueless on what to do now. This is the result I got for typing those commands:

------------------------------------------------
~$ sudo apt-get install autotools-dev build-essential \
> cmake cpp freeglut3 freeglut3-dev libart-2.0-2 libatk1.0-0 \
> libboost-signals1.40.0 libboost-signals1.40-dev \
> libboost-thread1.40.0 libboost-thread1.40-dev libc6 libcairo2 libcv4 \
> libcv-dev libcvaux4 libfontconfig1 libfreetype6 libgcc1 \
> libgl1-mesa-glx libglib2.0-0 libglu1-mesa libglu1 libgnomecanvas2-0 \
> libgsl0ldbl libgsl0-dev libgtk2.0-0 libhighgui4 libjpeg62 \
> libjpeg62-dev liblodo0 libltdl7 libpango1.0-0 libplayerc++2 \
> libplayerc2 libplayercore2 libplayerdrivers2 libplayererror2 \
> libplayertcp2 libplayerxdr2 libpmap0 libstdc++6 zlib1g libxmu-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libglu1-mesa' instead of 'libglu1'
Note, selecting 'libplayerc2-dev' for regex 'libplayerc++2'
Note, selecting 'libplayerc3.0-dev' instead of 'libplayerc2-dev'
Package libplayercore2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libplayererror2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package libcv4
E: Unable to locate package libcvaux4
E: Unable to locate package libhighgui4
E: Unable to locate package liblodo0
E: Unable to locate package libplayerc2
E: Package 'libplayercore2' has no installation candidate
E: Unable to locate package libplayerdrivers2
E: Package 'libplayererror2' has no installation candidate
E: Unable to locate package libplayertcp2
E: Unable to locate package libplayerxdr2
E: Unable to locate package libpmap0


--------------------------------------------------

my error remains the same I get the same result after running make

P.S:Im not really sure how to search for a certain struct like you did "buisness_kid", I tried the "find" command followed by "grep png_create_info_struct" but I'm guessing that only works for file names and doesn't search inside files.
-------------------------------------------------
i succeed to get all the packages:
/home/admin123/Downloads/Stage-3.2.2-Source/build# sudo apt-get install autotools-dev build-essential \
> cmake cpp freeglut3 freeglut3-dev libart-2.0-2 libatk1.0-0 \
> libboost-signals1.40.0 libboost-signals1.40-dev \
> libboost-thread1.40.0 libboost-thread1.40-dev libc6 libcairo2 libcv4 \
> libcv-dev libcvaux4 libfontconfig1 libfreetype6 libgcc1 \
> libgl1-mesa-glx libglib2.0-0 libglu1-mesa libglu1 libgnomecanvas2-0 \
> libgsl0ldbl libgsl0-dev libgtk2.0-0 libhighgui4 libjpeg62 \
> libjpeg62-dev liblodo0 libltdl7 libpango1.0-0 libplayerc++2 \
> libplayerc2 libplayercore2 libplayerdrivers2 libplayererror2 \
> libplayertcp2 libplayerxdr2 libpmap0 libstdc++6 zlib1g libxmu-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libglu1-mesa' instead of 'libglu1'
Note, selecting 'libplayerc2-dev' for regex 'libplayerc++2'
Note, selecting 'libplayerc2' for regex 'libplayerc++2'
Note, selecting 'libplayerc3.0-dev' instead of 'libplayerc2-dev'
autotools-dev is already the newest version.
build-essential is already the newest version.
cpp is already the newest version.
freeglut3 is already the newest version.
freeglut3-dev is already the newest version.
libart-2.0-2 is already the newest version.
libatk1.0-0 is already the newest version.
libfontconfig1 is already the newest version.
libgcc1 is already the newest version.
libgl1-mesa-glx is already the newest version.
libglu1-mesa is already the newest version.
libgnomecanvas2-0 is already the newest version.
libgsl0-dev is already the newest version.
libgsl0ldbl is already the newest version.
libgtk2.0-0 is already the newest version.
libjpeg62 is already the newest version.
libjpeg62-dev is already the newest version.
libltdl7 is already the newest version.
libstdc++6 is already the newest version.
libxmu-dev is already the newest version.
zlib1g is already the newest version.
libboost-signals1.40-dev is already the newest version.
libboost-signals1.40.0 is already the newest version.
libboost-thread1.40-dev is already the newest version.
libboost-thread1.40.0 is already the newest version.
libcv-dev is already the newest version.
libplayerc3.0-dev is already the newest version.
cmake is already the newest version.
libc6 is already the newest version.
libcairo2 is already the newest version.
libfreetype6 is already the newest version.
libglib2.0-0 is already the newest version.
libpango1.0-0 is already the newest version.
libplayerc2 is already the newest version.
libplayerdrivers2 is already the newest version.
libpmap0 is already the newest version.
libplayercore2 is already the newest version.
libhighgui4 is already the newest version.
libcvaux4 is already the newest version.
libplayertcp2 is already the newest version.
libplayerxdr2 is already the newest version.
libcv4 is already the newest version.
liblodo0 is already the newest version.
libplayererror2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
N: Ignoring file 'apt-build' in directory '/etc/apt/sources.list.d/' as it has no filename extension

--------------------------------------------------------------------------------
but i still have the same problem!

Last edited by sharonshabtai; 03-08-2011 at 12:04 PM.
 
Old 03-09-2011, 04:31 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,865

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Don't send me long lists, please, I glaze over. I did notice this
Quote:
Q: Have you got /usr/lib(64)/libpng.so?
A: No, in /usr/lib(64) I only have a dir called libfakeroot, but I do have this /usr/lib/libpng.so
You need /usr/lib(64)/libpng.so & associated header files. I sent you a thread in post #5.

The first response in that said:
Quote:
Re: [Solved] How can I easily install libpng.so.2 ??
sudo apt-get install libpng2 should do it.

Might I suggest you try that?
 
Old 03-09-2011, 10:45 AM   #9
sharonshabtai
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Hi I tried using that command and I get this

----------------
~# sudo apt-get install libpng2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libpng2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

N: Ignoring file 'apt-build' in directory '/etc/apt/sources.list.d/' as it has no filename extension
E: Package 'libpng2' has no installation candidate
--------------------------------

I figure I probably have have 2 problems here the 1st regarding sources.list and the 2nd regarding libpng
I tried looking around the web but didn't find a solution for the 1st, I figure its got something to do with apt-cache.

I'm not sure if the first problem is causing my libpng problem, or if its because I need to get another source ( which I don't know how to do).
any ideas?
 
Old 03-10-2011, 04:07 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,865

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
http://sourceforge.net/projects/libp...ar.gz/download

You could Download the source and build that. It's pretty straightforward. Use --prefix=/usr

Another way forward is to download the package from a mirror. My local mirror is
ftp://ftp.heanet.ie/mirrors/

Both debian & ubuntu are there.
 
Old 03-14-2011, 12:26 PM   #11
sharonshabtai
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
I installed the library from the first link you gave me and still
/usr/lib(64) contains only a folder called libfakeroot
and also the make error remains the same.

As regarding the mirror site , I'm not sure how to make my ubunto search files from there,
I tried finding the file manually at that site but I'm not sure which one to install(i386, alpha, amd64, ia64 ...)
 
Old 03-15-2011, 04:56 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,865

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Tell us about your box. 32 bit or 64 bit?
What's the cpu?
If 32 bit, libpng should be in /usr/lib
if 64 bit, libpng should be in /usr/lib64

Except on debian type systems, which use /usr/lib32 for 32 bit libs and /usr/lib for 64 bi9t ones.
Quote:
I tried finding the file manually at that site but I'm not sure which one to install(i386, alpha, amd64, ia64 ...)
/Draws deep breadth.
/long sigh

I hope you're winding me up. If you don't know what the box is, better leave it alone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Build problem hard to solve : zeroradiant and libpng 1.4 (libpng compatibility pb) naaman Linux - Software 1 01-01-2011 05:03 AM
error while loading shared libraries: libpng.so.2: [I reinstalled libPNG!] Shioni Linux - Software 1 09-09-2006 08:21 PM
chroot'ing problem in Gentoo Stage 1 Install logosys Linux - Distributions 6 07-18-2005 01:10 PM
MPlayer install problems with libpng & libpng-devel Trey2501 Linux - Newbie 18 03-06-2004 12:24 AM
RHL 8.0 install problem -cd not mounting at a stage whencat Red Hat 0 09-12-2003 12:08 PM

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

All times are GMT -5. The time now is 02:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration