This forum has been archived. All content is frozen. Please use KDE Discuss instead.

VLC engine ?

Tags: None
(comma "," separated)
viaq
Registered Member
Posts
6
Karma
0

VLC engine ?

Mon Feb 05, 2007 9:30 pm
Hi !


I just read Issue 6 of amarok newsletter and I can see that:

Code: Select all
Éric Alber informed developers about his VLC engine:

I've written an engine for Amarok in order to use the VLC media playback
library (http://www.videolan.org) as backend for your excellent audio player.
There are still several bugs with the equalizer and the scope, but music
playback works well :)
VLC can be configured with the following file :
~/.kde/share/apps/amarok/vlc-config.xml


I have amarok 1.4.5 and vlc 0.8.6a now and I have no idea how to add vlc engine... :/

Musst use amarok svn ?


Can someone help me ?
User avatar
marcel
Registered Member
Posts
595
Karma
0
OS

Re: VLC engine ?

Tue Feb 06, 2007 9:14 am
VLC engine is not integrated in the Amarok source tree. Either the original author posted a patch somewhere or he has not yet released it.
sven423
Registered Member
Posts
5
Karma
0

Re: VLC engine ?

Tue Feb 06, 2007 9:28 am
It was posted on the mailing list: http://lists.kde.org/?t=117011250900001&r=1&w=2
cyrus007
Registered Member
Posts
42
Karma
0

Re: VLC engine ?

Wed Feb 07, 2007 2:25 am
Does anybody have the steps to enable this ? The tarball has the Makefile.am file and I tried all I could but could not get automake/autoconf tools to generate the Makefile.

EDIT: Finally got it working. Step by step guide at http://amarok4kde.blogspot.com/2007/02/ ... n-145.html

Last edited by cyrus007 on Sun Feb 18, 2007 12:41 am, edited 1 time in total.
cyrus007
Registered Member
Posts
42
Karma
0

Re: VLC engine ?

Sun Feb 18, 2007 12:43 am
Got it working now ...
viaq
Registered Member
Posts
6
Karma
0

Re: VLC engine ?

Fri Feb 23, 2007 3:53 pm
Hi!

All was going well (I copied your files to right directories, make -f Makefile.cvs and configure) until make :(

Code: Select all
linking ./amarok/src/engine/vlc/libamarok_vlc-engine_plugin.la

...

./amarok/src/engine/vlc/VlcEngine.moc.lo
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb24f): In function `VLC_Init':
: undefined reference to `libhal_ctx_new'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb263): In function `VLC_Init':
: undefined reference to `dbus_error_init'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb26d): In function `VLC_Init':
: undefined reference to `dbus_bus_get'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb277): In function `VLC_Init':
: undefined reference to `dbus_error_is_set'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb282): In function `VLC_Init':
: undefined reference to `dbus_error_free'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb28f): In function `VLC_Init':
: undefined reference to `libhal_ctx_set_dbus_connection'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb298): In function `VLC_Init':
: undefined reference to `libhal_ctx_init'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb2af): In function `VLC_Init':
: undefined reference to `libhal_get_all_devices'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb2ec): In function `VLC_Init':
: undefined reference to `libhal_device_property_exists'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb307): In function `VLC_Init':
: undefined reference to `libhal_device_get_property_bool'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb326): In function `VLC_Init':
: undefined reference to `libhal_device_get_property_string'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb371): In function `VLC_Init':
: undefined reference to `libhal_free_string'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb38c): In function `VLC_Init':
: undefined reference to `libhal_free_string_array'
/usr/lib/libvlc.a(libvlc_a-libvlc.o)(.text+0xb395): In function `VLC_Init':
: undefined reference to `libhal_ctx_shutdown'
/usr/lib/libvlc.a(libvlc_a-modules.o)(.text+0x1c41): In function `__module_LoadBuiltins':
: undefined reference to `vlc_entry__memcpymmx'
/usr/lib/libvlc.a(libvlc_a-modules.o)(.text+0x1c4e): In function `__module_LoadBuiltins':
: undefined reference to `vlc_entry__i420_rgb_mmx'
/usr/lib/libvlc.a(libvlc_a-modules.o)(.text+0x1c5b): In function `__module_LoadBuiltins':
: undefined reference to `vlc_entry__i422_yuy2_mmx'
/usr/lib/libvlc.a(libvlc_a-modules.o)(.text+0x1c68): In function `__module_LoadBuiltins':
: undefined reference to `vlc_entry__i420_ymga_mmx'
/usr/lib/libvlc.a(libvlc_a-modules.o)(.text+0x1c75): In function `__module_LoadBuiltins':
: undefined reference to `vlc_entry__i420_yuy2_mmx'
/usr/lib/libvlc.a(libvlc_a-modules.o)(.text+0x1c82): In function `__module_LoadBuiltins':
: undefined reference to `vlc_entry__memcpymmxext'
/usr/lib/libvlc.a(libvlc_a-modules.o)(.text+0x1c8f): In function `__module_LoadBuiltins':
: undefined reference to `vlc_entry__memcpy3dn'
/usr/lib/libvlc.a(libvlc_a-modules.o)(.text+0x1c9c): In function `__module_LoadBuiltins':
: undefined reference to `vlc_entry__mux_ts'
collect2: ld returned 1 exit status
Error creating ./amarok/src/engine/vlc/libamarok_vlc-engine_plugin.la. Exit status 1.
make: *** [all] Error 1


Is there something wrong with my hal/dbus ?
Are hal/dbus necessary for vlc engine ?

What to do ? :(
viaq
Registered Member
Posts
6
Karma
0

Re: VLC engine ?

Fri Feb 23, 2007 6:30 pm
I'm not a programmer, so is it possible to tell me simply how to try to do that ?
What exactly I have to do with "-lvlc_pic" and Makefile ? add lvlc to makefile or to configure ?

If that's too hard for non-programmer guy like me, then I'll wait, thanks for interresting :)
cyrus007
Registered Member
Posts
42
Karma
0

Re: VLC engine ?

Sat Feb 24, 2007 1:45 am
viaq wrote:I'm not a programmer, so is it possible to tell me simply how to try to do that ?
What exactly I have to do with "-lvlc_pic" and Makefile ? add lvlc to makefile or to configure ?

If that's too hard for non-programmer guy like me, then I'll wait, thanks for interresting :)


Forget about what I said before. This problem is related to your VLC version. As stated in the original email to the kde.org mailing list here - http://mail.kde.org/pipermail/amarok/20 ... 02677.html - you have to modify MODULE_SYMBOL definition for earlier version. A better option would be to upgrade the vlc library to the latest version. My vlc library has hal related calls.
viaq
Registered Member
Posts
6
Karma
0

Re: VLC engine ?

Sat Feb 24, 2007 10:08 am
I have the latest version...

More latest than you even :P

Because I don't have 0.8.6... I have 0.8.6a, I read about  MODULE_SYMBOL, I just didn't think that the "a" in the 0.8.6a matters...

OK, I'll try to change it... should it look like that:

define MODULE_SYMBOL 0_8_6a

or more like that :

define MODULE_SYMBOL 0_8_6_a ?
cyrus007
Registered Member
Posts
42
Karma
0

Re: VLC engine ?

Sat Feb 24, 2007 7:09 pm
Could it be that your libvlc-dev version is different from libvlc ? The headers your amarok-vlc plugin is compiling against assumes HAL/DBUS support but your library may not if it is still giving the above errors. Check the following in /usr/lib for it's support (or whereever you have your libvlc.so.0 library => you can find out by "$ldconfig -p | grep libvlc") by running the following command.

$strings /usr/lib/libvlc.so.0.0.0 | grep dbus -> mine produces the following:
dbus_error_init
dbus_bus_get
dbus_error_is_set
dbus_error_free
libhal_ctx_set_dbus_connection
libdbus-1.so.3

HTH
-cyrus
viaq
Registered Member
Posts
6
Karma
0

Re: VLC engine ?

Tue Feb 27, 2007 1:57 pm
Hmm.. it's weird, but I don't have libvlc... :/

I compiled vlc by myself with --prefix=/usr , so I don't understand it...

I have only /usr/lib/libvlc.a


What does it mean ?
Should I compile again vlc with some different flags for configure ?
cyrus007
Registered Member
Posts
42
Karma
0

Re: VLC engine ?

Wed Feb 28, 2007 4:25 pm
Seems like it built a static version of your vlc player without the dynamic library. Check the flag in ./configure --help to build dynamic version which should create libvlc.so and link it to your player. You should be able to check that it is dynamic and linking to the library by using $ldd `which vlc`
viaq
Registered Member
Posts
6
Karma
0

Re: VLC engine ?

Tue Mar 06, 2007 5:50 pm
Hi !

I can't install shared libvlc :(
I post in on vlc forum, but I have no answer few days already...

Maybe you know what to do ?

http://forum.videolan.org/viewtopic.php ... fc850bd276


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]