Results 1 to 2 of 2

Thread: Creating a Qt Plugin that returns a Video Player using libvlc

  1. #1
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Creating a Qt Plugin that returns a Video Player using libvlc

    Hello, I'm trying to make a Qt Plugin that have a method that returns a QWidget subclass, this widget should render a media using libvlc. Libvlc works fine for me in other project that is not a plugin, but when I try to create a plugin whit the "same" code and load it in other application, the plugin loader gives me the errorString "Can not find the specified module". It happens when I use at least one of libvlc functions in my plugin. If somebody knows what could be, please tell me. Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Creating a Qt Plugin that returns a Video Player using libvlc

    the plugin loader gives me the errorString "Can not find the specified module"
    it is probable that you are dealing with at least two different problems.
    To simplify things do the following:
    1. Create an "empty" plugin which does not have external dependencies (not linking to libvlc), and have it load successfully in your application.
    2. Once you know that your plugin setup is correct and working, add the specific code you need it to perform, and the additional dependencies (libvlc).
    Don't forget, that your plugin will always will have to be able to link to libvlc and know where it libvlc is, unless you build your plugin statically against libvlc.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. [SOLVED] DirectShow Video Player Inside Qt
    By ToddAtWSU in forum Qt Programming
    Replies: 16
    Last Post: 3rd November 2011, 08:47
  2. how to set duration of a video in a video player in qt
    By qt_user in forum Qt Programming
    Replies: 1
    Last Post: 7th August 2010, 11:51
  3. Phonon Video Player Problem...
    By emrez in forum Qt Programming
    Replies: 0
    Last Post: 14th July 2010, 15:26
  4. Phonon Video Player + XML
    By igor.schkrab in forum Qt Programming
    Replies: 0
    Last Post: 25th November 2009, 00:49
  5. To make audio and video file player in Qt
    By merry in forum Qt Programming
    Replies: 11
    Last Post: 24th January 2008, 07:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.