Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-21-2003, 07:01 AM   #1
LQ Newbie
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 2

Rep: Reputation: 0
Unhappy Xine build probs

First of all hi to everyone

Ok, when I run the configure script for xine-ui i get an error message:
"libpng is needed (PNG library not found) - try to use --with-png-prefix option"
Welli definitely have libpng installed, I can see all the files in /usr/lib. But when i try to run
./configure --with-png-prefix=/usr/lib
i still get the same problem. I've tried running ldconfig but it didn't help.

I dunno why it won't find the frickin libraries. there a bunch of files named libpng* (some are links), surely one of them was what it's looking for? apparently not...

Any help would be hugely appreciated
Old 08-21-2003, 07:52 AM   #2
Registered: Jul 2003
Distribution: slackware9.0
Posts: 34

Rep: Reputation: 15
If you do:
./configure 2>config.out
and post the contents of 'config.out' it may be helpful.
What distribution are you running?
Have you installed xine-lib-1-rc0.tar.gz' yet ?
What does your /etc/ file look like ?
Some of these questions may help, I hope.
I recently installed xine on slackware9 2.40.20 without much
trouble. I got xine-lib & xine-ui, did the installation (xine-lib 1st)
and now the only trouble is stutter in DVD playback.
Hope this points you in the right direction at least.
Old 08-21-2003, 06:16 PM   #3
LQ Newbie
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 2

Original Poster
Rep: Reputation: 0
The whole thing would be too long to post here, but here's the last bit of it:

checking for png_read_info in -lpng... no
configure: error: *** libpng is needed (PNG library not found) - try to use --with-png-prefix option ***

Yes, i have installed the xinelibs and that went fine.
contents of

Any more ideas?
Old 08-21-2003, 10:27 PM   #4
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
rpm it
Old 08-21-2003, 11:45 PM   #5
Senior Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 47
download the source for libpng and compile it, that solves the problwm when using slack 8.1.. not sure about others.
Old 08-22-2003, 04:56 AM   #6
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
this is my experince on xine now its working fine

Compiling and installing xine
The following instructions assume that you are installing from the source archives available from the xine website. You will need at least two packages (named xine-lib.x.y.z.tar.gz and xine-ui.x.y.z.tar.gz). Ensure that both archives correspond to the same version of xine.Firstly it is recommended that you remove any previous instances of xine form your system. You can do this using the following instructions. Here
How to Remove Old version
is the directory xine is installed in (e.g. if your xine program is
$ rm -r $PREFIX/share/xine
$ rm -r $PREFIX/lib/xine
$ rm $PREFIX/bin/xine
$ rm $PREFIX/lib/libxine.*
Downloading and Installation
web site download lates two packages (named xine-lib.x.y.z.tar.gz and xine-ui.x.y.z.tar.gz)
Download the files to some convenient directory. Open a terminal and change to that directory. For example, if you downloaded the file to the directory /download/xine type the following:
$ cd /download/xine/
The xine-lib file is the xine run-time library which contains the code for the xine engine itself. The xine-ui file contains a number of user interfaces for xine. Currently there is a X-windows based graphical user interface and an experimental text-only interface (which renders video as so-called 'ASCII-art').
Type the following. It will extract the xine library and user interface source archives. Substitute x.y.z for the version of xine that you downloaded.
$ tar xvzf xine-lib.x.y.z.tar.gz
$ tar xvzf xine-ui.x.y.z.tar.gz
The xine-lib archive must be installed first. Change to the xine-lib.x.y.z directory and configure the source code for your machine and compile the code by typing:
$ ./configure
$ make
You may wish to use the ./configure --help command to see if you have to setup any machine specific options. Now, as the user root, enter the following command:
$ make all install
IMPORTANT! Before you can compile xine-ui, you may need to inform your system of the location of the xine libraries, you may need to set the LD_LIBRARY_PATH environment variable to the directory you installed the xine library and/or run the ldconfig program. For example, if you had installed xine-lib to /usr/local, you may need to enter the following command before compiling xine-ui.
$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Once the xine library is installed, you can repeat these steps with the xine-ui.x.y.z directory.
Installing xine in a different directory
To install xine in, for example, the directory /usr/local/xine, use the following option to configure
$ ./configure --prefix=/usr/local/xine
and, as root enter
$ make install
Exta Info
(How can I supply additional flags to the C-compiler?
You can do so by setting the GLOBAL_CFLAGS variable and then run ./configure again.This can be useful to specify additional include paths or library paths to the compiler. For example:
$ export GLOBAL_CFLAGS="-I/usr/include -L/home/guenter/xine_libs" )
now Compile 2nd xine-ui pakege
$ cd /download/xine/
Change to the xine-lib.x.y.z directory and configure the source code for your machine and compile the code by typing:

$ ./configure
$ make
$ make all install
Congatulations Yous xine player is install and ready to use
just type xine
or you can creat short cut on desktop by New lancher (when you right click on desk top) give path by brows and select any icon
for Additional help xine –help
for useges see this site
How to
Pre-built binaries
If you do not wish to compile xine from source, there are several pre-built `packages' available from the xine web-site. Also there are several packages containing common third-party plugins and patches available at
Note that there are other methods of installing packages, you may wish to use graphical programmes such as kpackage.
Debian packages (.deb)
If you are using the `unstable' branch of Debian, you can install xine by using the following command as root:
$ apt-get install xine-ui
Red-Hat packages (.rpm)
Download the RPMs from the xine web-site and enter the following command as root, substituting in the name of the file you downloaded.
$ rpm -ivh xine-lib.x.x.x.rpm xine-ui.x.x.x.rpm



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
RH9 - did 2.6.x kernel build and probs with .config stardotstar Red Hat 5 09-15-2004 07:21 PM
GTK (Get That Killah) 2.4 Build Probs handle2001 Linux - Software 5 04-01-2004 01:08 AM
Big probs installing xine deejayqf Linux - Software 3 01-18-2004 12:04 AM
XINE probs jon_k Linux - Software 1 07-21-2003 04:43 PM
xine probs -where is LD_LIBRARY_PATH rickenbacherus Linux - Software 7 03-11-2003 01:51 PM

All times are GMT -5. The time now is 10:46 PM.

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