Click to See Complete Forum and Search --> : frustrating struggle to install Xine


Ramin
09-14-2003, 01:07 PM
Well, it took about 5 hours and eventually failed!
This is Suse 8.1 and the goal is to install Xine. I failed to install to binary packages so decided to install the source RPM packages.
I succeeded installing the Xine package but can't run it witout gXine, and i failed to install gxine! After proceeding step by step within all dependencies when running ./configure the last package it was looking for was gtk+-2.0! I installed this package ( at least it seems so, but i don't know how to check this!?). This is what it gives me when runnning ./configure:
-----------------------------------------
videotron:/usr/local/gxine-0.3.3 # ./config
bash: ./config: No such file or directory
videotron:/usr/local/gxine-0.3.3 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i486-suse-linux/bin/ld
checking if the linker (/usr/i486-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /usr/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i486-suse-linux/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking X11/Xaw/Form.h usability... yes
checking X11/Xaw/Form.h presence... yes
checking for X11/Xaw/Form.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.0.0... yes
checking GLIB2_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GLIB2_LIBS... -lglib-2.0
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
___________________________________

So it can't find the gtk+-2.0! What can i do now?
Basicly i also need to know
1- When installing from source, it is eventually apparently up to me where to install the package, right? I can install it say at /usr/local or at /opt or any other place. However how the OS knows the location of the installed package and make necessary links to other applications that need this particular package?

2- I installed the gtk+-2.0 from rpm package. SO i don't know where it is installed. How can i know that it is really installed and if so, where is its directory?

I would apprecaite your help. And the answer to this question should ease it for me to install other packages in the future whenever i want.

Thanks, Ramin
:confused:

deanrantala
09-14-2003, 08:03 PM
gxine is for gtk - the error is saying that it can't find the most important part. Did you install Suse from FTP or CD? Xine requires two parts: xinelib and xineui. Personally, rather than use gxine, you should try xineui.

But that aside, you should know that SuSE is not the best platform for compiling on. SuSE sticks everything in oddball places, and therefore ./configure often has a hard time finding stuff in SuSE. As for the RPM's... If you got the CD set, you should just install xine via the RPM's on the disk. To do so, go to the YaST control center and select the software management tab. You should have an option somewhere to install software from disk. Doing it this way (rather than just browsing the disk) will automatically select other RPMs that are needed for the ones you select to work.

Ramin
09-15-2003, 12:28 PM
OK I wil try with Xineui. I hope this one is not that problematic. I am not sure if xine has come with the disks and even if so it must be an old version where is not much useful in watching films.
By the way which distros are better for compiling purposes?
Thanks, Ramin

kevinatkins
09-15-2003, 07:01 PM
hi - i'd agree with deanrantala on this one. i'm using suse 8.2 and xine is there with the distro cd's. xine itself is, as i understand it, composed of a core 'engine', and a variety of 'front-ends' such as xineui (which i use).

as regards films....

if you're hoping to view dvds, then you'll find that most are encrypted using the copyright scrambling system (css). out-of-the-box, xine won't play such disks (nor will windows media player by the way.) so if you want to play dvds, you'll need an extra plugin, the legality of which is suspect but is available if you search.. i'm not going to say where!!

deanrantala
09-15-2003, 07:18 PM
Best for compiling? Without doubt, Slackware. If you do a full slack install, you will have every mail library needed for most compiling. Of coarse, if you use Debian or Gentoo, then it is also just as good, but they often require a little more knowledge to actually use (from what I have heard)

The xineui should be on the SuSE disk.

As for what kevinatkins said about playing DVD's, if you need a little help with that, I'll send you a PM later and try pointing you in the right direction:)