[vlc-devel] Part of solution : Issue developping a simpler wxWindows interface module with wxwidget 2.6
Steve MOREAU
moreau at essi.fr
Wed May 4 11:51:11 CEST 2005
Hello,
I have finally got a part of solution of my problem. I can now use vlc
with wxGTK 2.6. Here is what I've done on Fedora Core 3 if it could help
someone :
- Install wxGTK2.4 rpms given with the vlc fedora package.
- Compile vlc (after ./configure --enable-wxwindows
--with-ffmpeg-tree=../ffmpeg-20050209)
- Compile wxGTK2.6 sources above wxGTK2.6 (after ./configure --prefix=/usr
--with-gtk --enable-compat22)
- Recompiling mymodule
And now it works... well it's not work entirely but the module loads.
I have now another error because I try to read an HTTP stream sent with a
vlc under windows, mp4 video, and MPEG TS. Debug trace says :
[root at localhost mymodule]# vlc -I mymodule --vout=x11 http://serveur:1234
-vvv
...
[00000110] main module debug: using demux2 module "ps"
...
[00000070] main module debug: using decoder module "libmpeg2"
[00000249] main decoder debug: thread -1267709008 (decoder) created at
priority 0 (src/input/decoder.c:157)
[00000211] main input debug: control type=1
[00000217] ps demuxer warning: garbage at input
[00000249] libmpeg2 decoder warning: invalid picture encountered
[00000217] ps demuxer warning: garbage at input
I have read some posts on this problem but I hadn't find solution yet
(maybe it is not due to the installation of wxGTK2.6, in fact I don't know
at all what it means)
See you later
Steve
> Hello,
>
> Firstly, thanks to Greg for his pieces of advices.
>
> I've finally reinstall properly my Linux and vlc, and I still have some
> problems. However, as Greg said last time, I know from now on that it's
> enough to copy libmymodule_plugin.so into the /usr/lib/vlc/gui directory
> in in order to make 'vlc -I mymodule' to load it.
>
> If my module correctly load, I noticed that embedded video which was
> working with wxwidget 2.5.5, didn't work anymore with 2.4 (maybe due to
> differences between these two versions). So, I tryed to erase all my
> wxGTK2.4* packages and to download and to compile wxGTK 2.6.
>
> After the compilation, I tried to run 'vlc -I mymodule' and it didn't work
> anymore. Moreover, wxwindows module didn't work.
>
> It is the same problems than occured to me before...
>
> Finally, I erased 2.6 and put wxGTK-2.4 back, and now it works again.
>
> I don't know why my installation of wxwindows is not clean. I don't know
> what the wxGTK-2.4 rpm add to have vlc to work, that wxGTK-2.6 sources
> compilation does not do...
>
> Do you have any clue please ? Does somebody compile vlc after compiling
> wxGTK > 2.4 and does not meet such problems ?
>
> Thanks in advance
>
> Steve
>
>> Copying a module into a vlc directory should be enough, provided:
>> - all the required libraries for that module are in place
>> - the module_suffix and module_symbol are the same (the module meets the
>> api
>> requirements of the version of vlc you are trying to run it with)
>>
>> Good luck,
>> -Greg
>>
>>> -----Original Message-----
>>> From: vlc-devel-bounce at videolan.org
>>> [mailto:vlc-devel-bounce at videolan.org] On Behalf Of Steve MOREAU
>>> Sent: Friday, April 29, 2005 4:37 AM
>>> To: vlc-devel at videolan.org
>>> Subject: [vlc-devel] Re: Issue developping a simpler
>>> wxWindows interface module
>>>
>>> Hello Greg,
>>>
>>> Thanks for your answer :-)
>>>
>>> As for my wx interface module, it's a simple wxFrame to play
>>> the video only. I did it to understand wxwindows and vlc modules.
>>>
>>> I ran ldconfig and I try to write some tests files in my
>>> /home/steve directory, that are using a "home" makefile. I
>>> didn't meet this problem before.
>>>
>>> I still didn't understand why libwxwindows doesn't want to
>>> load from elsewhere than vlc-sources dir. Maybe, I have a
>>> clue because I encountered some difficulties to install vlc.
>>> I did (I don't remember exactly...) :
>>> - I got vlc-sources for fedora core 3 (0.8.1-1.1)
>>> - I compiled them with --disable-wxwindows (because
>>> ./configure threw wx-gtk was installed)
>>> - Then I installed wx-gtk and re-compiled
>>> - I remembered having done 'yum install videolan-client' and
>>> 'yum uninstall' (I know it's a doom but sorry I'm French :-))
>>> for dependencies...
>>>
>>> As a result, I have vlc libs in /usr/lib/vlc and
>>> /usr/local/lib/vlc with 2 vlc binaries. I decided to
>>> reinstall my Linux in order to have my ideas cleaner... But
>>> maybe I did never know why I had these errors.
>>>
>>> I will tell you later
>>>
>>> Bye, and thanks
>>>
>>> Steve
>>>
>>> PS : Greg, can I ask you a question ? Would you know if to
>>> copy a module into a remote /usr/lib/vlc/gui directory (I
>>> mean not the one of the computer where the library has been
>>> compiled) is enough to run 'vlc -I mymodule' or you must do
>>> something else ? Because I tried on another computer with
>>> just videolan-client installed and it doesn't want to load it
>>> (there is no error however : it seems to probe it but it's
>>> all). Thanks again
>>>
>>> > Did you run ldconfig (as root) after installing wx? It
>>> looks like your
>>> > interface module can't find the shared wx libraries (but I
>>> can't read
>>> > french, so maybe it has a more informative error).
>>> >
>>> > I'd like to hear more about this simple wx interface module.
>>> >
>>> > -Greg
>>> >
>>> >> -----Original Message-----
>>> >> From: vlc-devel-bounce at videolan.org
>>> >> [mailto:vlc-devel-bounce at videolan.org] On Behalf Of Steve MOREAU
>>> >> Sent: Thursday, April 28, 2005 4:27 AM
>>> >> To: vlc-devel at videolan.org
>>> >> Subject: [vlc-devel] Issue developping a simpler wxWindows
>>> interface
>>> >> module
>>> >>
>>> >> Hello,
>>> >>
>>> >> First of all, I would like to thank you for your player ;-)
>>> >>
>>> >> I'm currently developping a wxWindows interface module.
>>> >> Following your documentation, I have got it to compile,
>>> and to work
>>> >> but only in certain conditions. I explain :
>>> >> 1. If I run vlc inside the vlc sources directory where I
>>> compiled it,
>>> >> everything's fine an my module is loaded.
>>> >>
>>> >> 2. But, if I run it from elsewhere, vlc loads a "dummy"
>>> skins module
>>> >> instead of my module
>>> >>
>>> >> In my opinion, it could be a variable problem but how to
>>> know which ?
>>> >>
>>> >> Have you already encountered this kind of you problem
>>> developping a
>>> >> module interface ?
>>> >> Thanks in advance
>>> >>
>>> >> Steve
>>> >>
>>> >> PS : Here are the debug trace from vlc :
>>> >>
>>> >> 1. Correct interface module loaded :
>>> >>
>>> >> [root at localhost vlc_sources/modules/gui/mymodule]# vlc -I mymodule
>>> >> -vvv ...
>>> >> [00000001] main vlc debug: recursively browsing `modules'
>>> >> [00000001] main vlc debug: recursively browsing
>>> `/usr/local/lib/vlc'
>>> >> ...
>>> >> [00000207] main interface debug: looking for interface module
>>> >> [00000207] main interface debug: probing 4 candidates
>>> [00000200] main
>>> >> module debug: using interface module "mymodule"
>>> >> [00000207] main interface debug: interface initialized
>>> >>
>>> >>
>>> >> 2. "Dummy" skins2 module loaded instead of mymodule :
>>> >>
>>> >> [root at localhost elsewhere]# vlc -I mymodule -vvv ...
>>> >> [00000209] main interface debug: probing 4 candidates
>>> [00000209] main
>>> >> interface warning: cannot load module
>>> >> `/usr/local/lib/vlc/gui/libmymodule_plugin.so'
>>> >> (libwx_gtk2_xrc-2.5.so.5:
>>> >> Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou
>>> >> répertoire de ce type) [00000209] main interface warning:
>>> >> cannot load module
>>> >> `/usr/local/lib/vlc/gui/libwxwindows_plugin.so'
>>> >> (libwx_gtk2_xrc-2.5.so.5:
>>> >> Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou
>>> >> répertoire de ce type) ...
>>> >> [00000209] skins2 interface error: No suitable dialogs
>>> provider found
>>> >> [00000209] skins2 interface debug: Cannot open directory
>>> >> /root/.vlc/skins2 [00000209] skins2 interface
>>> >> debug: Cannot open directory share/skins2 [00000209]
>>> skins2 interface
>>> >> debug: found skin /usr/local/share/vlc/skins2/default.vlt
>>> >> [00000201] main module debug: using interface module "skins2"
>>> >> [00000209] main interface debug: interface initialized
>>> >>
>>> >> --
>>> >> This is the vlc-devel mailing-list, see
>>> http://www.videolan.org/vlc/
>>> >> To unsubscribe, please read
>>> http://developers.videolan.org/lists.html
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > This is the vlc-devel mailing-list, see
>>> http://www.videolan.org/vlc/
>>> > To unsubscribe, please read
>>> http://developers.videolan.org/lists.html
>>> >
>>> >
>>>
>>>
>>> --
>>> This is the vlc-devel mailing-list, see
>>> http://www.videolan.org/vlc/ To unsubscribe, please read
>>> http://developers.videolan.org/lists.html
>>>
>>>
>>
>>
>> --
>> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
>> To unsubscribe, please read http://developers.videolan.org/lists.html
>>
>>
>
>
> --
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://developers.videolan.org/lists.html
>
>
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list