LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Xine build probs (https://www.linuxquestions.org/questions/linux-software-2/xine-build-probs-84116/)

kanun 08-21-2003 06:01 AM

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 :)
Cheers

cicisbeo 08-21-2003 06:52 AM

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/ld.so.conf 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.
~cicisbeo

kanun 08-21-2003 05:16 PM

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 ld.so.conf:
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.1/lib
/usr/local/lib

Any more ideas?
Cheers :)

BigNate 08-21-2003 09:27 PM

rpm it

exodist 08-21-2003 10:45 PM

download the source for libpng and compile it, that solves the problwm when using slack 8.1.. not sure about others.

mobassir 08-22-2003 03:56 AM

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
$PREFIX
is the directory xine is installed in (e.g. if your xine program is
/usr/bin/xine
then
$PREFIX
/usr/bin/
).
$ rm -r $PREFIX/share/xine
$ rm -r $PREFIX/lib/xine
$ rm $PREFIX/bin/xine
$ rm $PREFIX/lib/libxine.*
Downloading and Installation
web site http://xinehq.de/ 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
$ 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 http://dvd.sourceforge.net/xine-howt...o-4.html#ss4.1
How to http://dvd.sourceforge.net/xine-howt...tml/howto.html
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 http://cambuca.ldhs.cetuc.puc-rio.br/~jcm/skyblade/.
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

thanks


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