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.