LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-03-2007, 12:42 PM   #1
Zibi1981
Member
 
Registered: Dec 2006
Location: Poland
Distribution: Kubuntu
Posts: 65

Rep: Reputation: 15
Question Can't compile Kaffeine 0.8.4 from sources. Problem with xine-lib detection.


I have a problem with Kaffeine 0.8.4 compilation.
Firstly I have to say, that I'm using Mandriva 2007.1. After fresh install I removed libxine and all other related packages, because I wanted to have the newest xine-lib 1.1.7. I compiled it without problems following instructions on the project web site, then I compiled xine-ui 0.95 and gxine - also without complications. The only thing was I had to add a flag


Code:
PKG_CONFIG=/usr/local/lib/pkgconfig/

so they could see newly compiled xine. Both programs are working fine now. Also I compiled Amarok 1.4.6 from sources, although it didn't require any flags - its configuration script had correctly recognized xine-lib.
The problem is I cant make Kaffeine to compile, because its script don't detect xine-lib. I tried almost everything. Firstly standard configuration


Code:
[zibi1981@localhost kaffeine-0.8.4]$ ./configure --without-dvb
(...)
checking for pkg-config... 0.21
checking for DPMS extension... yes
checking for XTest extension... yes
checking for Xinerama extension... yes
checking for xine-lib... no

---------------------------------------
ERROR: Could not find xine-lib >= 1.0.2
---------------------------------------

configure: error: could not find xine-lib

Then using PKG_CONFIG flag with syntax, that was succesful in xine-ui and gxine compilation


Code:
[zibi1981@localhost kaffeine-0.8.4]$ PKG_CONFIG=/usr/local/lib/pkgconfig/ ./configure --without-dvb
(...)
checking grepping for visibility push/pop in headers... yes
checking whether g++ supports -fvisibility=hidden... yes
checking if Qt is patched for -fvisibility... yes
checking for pkg-config... ./configure: line 36163: /usr/local/lib/pkgconfig/: is a directory

---------------------------------------------------------------------
ERROR: Could not find pkg-config. Make sure it is in your path or set
the PKG_CONFIG environment variable to the full path to pkg-config.
---------------------------------------------------------------------

configure: error: could not find pkg-config

After that I pointed the correct file


Code:
[zibi1981@localhost kaffeine-0.8.4]$ PKG_CONFIG=/usr/local/lib/pkgconfig/libxine.pc ./configure --without-dvb
(...)
checking for pkg-config... /usr/local/lib/pkgconfig/libxine.pc: line 6: Name::                                               ommand not found
/usr/local/lib/pkgconfig/libxine.pc: line 7: Description:: command not found
/usr/local/lib/pkgconfig/libxine.pc: line 8: Version:: command not found
/usr/local/lib/pkgconfig/libxine.pc: line 9: Requires:: command not found
/usr/local/lib/pkgconfig/libxine.pc: line 10: Libs:: command not found
/usr/local/lib/pkgconfig/libxine.pc: line 11: Libs.private:: command not found
/usr/local/lib/pkgconfig/libxine.pc: line 12: Cflags:: command not found
/usr/local/lib/pkgconfig/libxine.pc: line 13: Cflags.private:: command not fou

---------------------------------------------------------------------
ERROR: Could not find pkg-config. Make sure it is in your path or set
the PKG_CONFIG environment variable to the full path to pkg-config.
---------------------------------------------------------------------

configure: error: could not find pkg-config

In my desperation I decided to experiment, and changed destination file for PKG_CONFIG, and for a second I thought I saw a light in the dark


Code:
[zibi1981@localhost kaffeine-0.8.4]$ PKG_CONFIG=/usr/local/lib/libxine.la ./configure --without-dvb
(...)
config.status: executing depfiles commands

-------------------------------------------------------
Kaffeine configure results:

Build with xcb support:                             yes
Build with DPMS support:                            yes
Build with XTest support:                           yes
Build with Xinerama support:                        yes
Build with DVB support:                              no
Build GStreamer player part:                        yes
IMPORTANT: the GStreamer player part is experimental
Build Ogg Vorbis encoder plugin:                    yes
Build LAME encoder plugin:                          yes

Good - your configure finished. Start make now

But unfortunately, the make command ended with an error


Code:
(...)
postfilter.cpp:(.text+0x5ce8): undefined reference to `xine_post_output'
postfilter.cpp:(.text+0x5dab): undefined reference to `xine_post_output'
postfilter.cpp:(.text+0x5dcb): undefined reference to `xine_post_output'
postfilter.cpp:(.text+0x5deb): undefined reference to `xine_post_output'
postfilter.cpp:(.text+0x5e01): undefined reference to `xine_post_list_outputs'
postfilter.cpp:(.text+0x5e15): undefined reference to `xine_post_output'
.libs/postfilter.o: In function `PostFilter::getInput() const':
postfilter.cpp:(.text+0x5e78): undefined reference to `xine_post_input'
postfilter.cpp:(.text+0x5f3b): undefined reference to `xine_post_input'
postfilter.cpp:(.text+0x5f5b): undefined reference to `xine_post_input'
postfilter.cpp:(.text+0x5f7b): undefined reference to `xine_post_input'
.libs/xineconfig.o: In function `XineConfig::getCategories()':
xineconfig.cpp:(.text+0xbde): undefined reference to `xine_config_get_first_entry'
xineconfig.cpp:(.text+0xc4a): undefined reference to `xine_config_get_next_entry'
.libs/xineconfig.o: In function `XineConfig::createPage(QString const&, bool, QWidget*)':
xineconfig.cpp:(.text+0x2265): undefined reference to `xine_config_get_first_entry'
xineconfig.cpp:(.text+0x2306): undefined reference to `xine_config_get_next_entry'
.libs/xineconfig.o: In function `XineConfig::slotApplyPressed()':
xineconfig.cpp:(.text+0x3629): undefined reference to `xine_config_lookup_entry'
xineconfig.cpp:(.text+0x3703): undefined reference to `xine_config_update_entry'
collect2: ld returned 1 exit status
make[5]: *** [libxinepart.la] Error 1
make[5]: Leaving folder `/home/zibi1981/tmp/kaffeine-0.8.4/kaffeine/src/player-parts/xine-part'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving folder `/home/zibi1981/tmp/kaffeine-0.8.4/kaffeine/src/player-parts'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving folder `/home/zibi1981/tmp/kaffeine-0.8.4/kaffeine/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving folder `/home/zibi1981/tmp/kaffeine-0.8.4/kaffeine'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving folder `/home/zibi1981/tmp/kaffeine-0.8.4'
make: *** [all] Error 2

What am I doing wrong??? Please help.
 
Old 07-03-2007, 01:35 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
It's not PKG_CONFIG, it's PKG_CONFIG_PATH=/usr/local/lib/pkgconfig. Look at the error message
Quote:
checking for pkg-config... ./configure: line 36163: /usr/local/lib/pkgconfig/: is a directory

---------------------------------------------------------------------
ERROR: Could not find pkg-config. Make sure it is in your path or set
the PKG_CONFIG environment variable to the full path to pkg-config.
---------------------------------------------------------------------

configure: error: could not find pkg-config
It can't find the pkg-config application because you told it to use /usr/local/lib/pkgconfig instead of the default /usr/bin/pkgconfig.
 
Old 07-04-2007, 05:26 AM   #3
Zibi1981
Member
 
Registered: Dec 2006
Location: Poland
Distribution: Kubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Post

Thx for Your reply weibullguy

Maybe You're right, and I'll give Your suggestion a try, but I wonder why in this case did xine-ui 0.95 and gxine compiled without any problems using the syntax I mentioned above. Both progs are working fine. Moreover ./configure --help showed that this flag should be PKG_CONFIG, not PKG_CONFIG_PATH. Any ideas?
 
Old 07-04-2007, 08:41 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
This is what kaffeine's ./configure --help says
Code:
PKG_CONFIG  Path to pkg-config
That is the path to the application pkg-config, NOT the path to metadata files that are used by pkg-config. I don't know why gxine and xine-ui configured with the wrong syntax because they shouldn't have. I've tried to get gxine to configure and it won't.
 
Old 07-09-2007, 03:17 AM   #5
Zibi1981
Member
 
Registered: Dec 2006
Location: Poland
Distribution: Kubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Question

Forgive me, but I'm confused What is a "metadata file"? Should I use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig? Did this syntax work for You?
 
Old 07-09-2007, 05:33 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
A metadata file is the type of file used by the pkg-config application; these are the files with the pc extension. Here is an example of gedit's
Code:
prefix=/opt/gnome
exec_prefix=${prefix}
libdir=/opt/gnome/lib64
includedir=${prefix}/include

Name: gedit
Description: gedit
Requires: libgnomeui-2.0 libglade-2.0 libgnomeprintui-2.2 gtksourceview-1.0
Version: 2.18.0
Cflags: -I${includedir}/gedit-2.16
However, now that I look at my box, xine-lib doesn't use a metadata file. Rather, it uses a program called xine-config that is called by other packages to get the information they need to build against xine-lib. Execute xine-config --libs and see what the output is.
 
Old 07-14-2007, 01:21 PM   #7
Zibi1981
Member
 
Registered: Dec 2006
Location: Poland
Distribution: Kubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Post

Hello again!

This is what I got when used syntax as below

Code:
[zibi1981@localhost kaffeine-0.8.4]$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --without-dvb
(...)
checking for xine-lib... yes
checking for xcb and xine-lib >= 1.1.5... no
checking for GStreamer... yes
(...)
-------------------------------------------------------
Kaffeine configure results:

Build with xcb support:                              no
IMPORTANT: this is strongly discouraged
Build with DPMS support:                            yes
Build with XTest support:                           yes
Build with Xinerama support:                        yes
Build with DVB support:                              no
Build GStreamer player part:                        yes
IMPORTANT: the GStreamer player part is experimental
Build Ogg Vorbis encoder plugin:                    yes
Build LAME encoder plugin:                          yes

Good - your configure finished. Start make now
Well, I'm very surprised
Firstly why did the script detect xine-lib, but didn't properly detect its version? I'm sure I uninstalled anything about libxine in my system

Code:
[zibi1981@localhost kaffeine-0.8.4]$ rpm -qa | grep xine
libxinerama1-devel-1.0.1-4mdv2007.1
libxinerama1-1.0.1-4mdv2007.1
xinetd-2.3.14-5mdv2007.1
and the only one I have at the moment is version 1.1.7 compiled from sources... So what did the script detect exactly?
Secondly it isn't a problem with xcb, because I have it installed also

Code:
[zibi1981@localhost kaffeine-0.8.4]$ rpm -qa | grep xcb
libxcb1-1.0-1mdv2007.1
libxcb1-devel-1.0-1mdv2007.1
And on the end output of xine-config --libs

Code:
[zibi1981@localhost kaffeine-0.8.4]$ xine-config --libs
-L/usr/local/lib -lxine -lz -lresolv -lnsl -pthread -lrt
What should I do with it?
 
Old 07-14-2007, 03:59 PM   #8
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
What is the output of this
Code:
xine-config --version
But, why not try executing make.
 
Old 07-15-2007, 03:53 AM   #9
Zibi1981
Member
 
Registered: Dec 2006
Location: Poland
Distribution: Kubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Smile

Hi again! Thx for interest in the topic

Code:
[zibi1981@localhost ~]$ xine-config --version
1.1.7
I don't want to compile Kaffeine on this stage, because my whole play with xine-lib compilation was for getting xcb support. At the moment I'm back to the place I was before I replaced libxine 1.1.4 with 1.1.7.
 
Old 07-15-2007, 07:44 AM   #10
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Just noticed...
Quote:
checking for xcb and xine-lib >= 1.1.5... no
It didn't find xcb. It DID find xine-lib>=1.1.5.
 
Old 07-15-2007, 07:59 AM   #11
Zibi1981
Member
 
Registered: Dec 2006
Location: Poland
Distribution: Kubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Maybe, but why? As I wrote above I have xcb and its devel package installed on my computer. What could be the reason that the script didn't find it?
 
Old 07-15-2007, 11:06 AM   #12
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Because you only told pkg-config to look in this directory
Code:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
Your xcb is probably in /usr/lib/.
 
Old 07-18-2007, 04:14 AM   #13
Zibi1981
Member
 
Registered: Dec 2006
Location: Poland
Distribution: Kubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Question

So how should the appropriate syntax look? Maybe something like

Code:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig PKG_CONFIG_PATH=/usr/lib/ ./configure
???
 
Old 07-18-2007, 06:06 AM   #14
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
No. The PKG_CONFIG_PATH variable is no different than any other environment variable. If it needs to be set , it is a list of colon ( separated paths. You really shouldn't have set it if you don't have things in odd places; /usr/lib/pkgconfig and /usr/local/lib/pkgconfig are standard paths for pkg-config to search. In any event, if you do need to explicitly set the variable the syntax would be
Code:
unset PKG_CONFIG_PATH && PKG_CONFIG_PATH="/usr/lib:/pkgconfig:usr/local/lib/pkgconfig" ./configure --without-dvb
Your syntax sets PKG_CONFIG_PATH to /usr/local/lib/pkgconfig, then sets PKG_CONFIG_PATH to /usr/lib.
 
Old 07-21-2007, 06:53 AM   #15
Zibi1981
Member
 
Registered: Dec 2006
Location: Poland
Distribution: Kubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Unhappy

OK, when I tried to use

Code:
[zibi1981@localhost kaffeine-0.8.4]$ unset PKG_CONFIG_PATH && PKG_CONFIG_PATH="/usr/lib:/pkgconfig:usr/local/lib/pkgconfig" ./configure --without-dvb
the script returned

Code:
checking for xine-lib... no

---------------------------------------
ERROR: Could not find xine-lib >= 1.0.2
---------------------------------------

configure: error: could not find xine-lib
Then I slightly modified the syntax which You suggested and got this

Code:
[zibi1981@localhost kaffeine-0.8.4]$ unset PKG_CONFIG_PATH && PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig" ./configure --without-dvb
(...)
Kaffeine configure results:

Build with xcb support:                              no
IMPORTANT: this is strongly discouraged
Build with DPMS support:                            yes
Build with XTest support:                           yes
Build with Xinerama support:                        yes
Build with DVB support:                              no
Build GStreamer player part:                        yes
IMPORTANT: the GStreamer player part is experimental
Build Ogg Vorbis encoder plugin:                    yes
Build LAME encoder plugin:                          yes

Good - your configure finished. Start make now
So, back to the point of return???
 
  


Reply



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
Kaffeine cannot find xine-lib simopal6 Linux - Software 5 03-05-2007 08:30 AM
Xine/Kaffeine problem - Partial Solution LinuxHobbit SUSE / openSUSE 5 03-13-2006 09:52 AM
Kaffeine installation xine-lib Blipside Linux - Newbie 8 12-29-2005 02:59 PM
Installing Kaffeine (Xine-Lib) Boffy Linux - Software 1 01-24-2005 12:05 PM
Xine/Kaffeine DVD Problem Boffy Linux - Software 1 06-22-2004 04:06 PM

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

All times are GMT -5. The time now is 04:16 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
Open Source Consulting | Domain Registration