Nominate our 2022 Qt Champions!

Linking against libvlc.dll

  • Hi all,

    I am trying to run a sample code that I found in the internet. However, whatever I do, I couldn't get it running. It compiles, so I assume that it is linking successfully but I can't get an instance.

    I have copied my complete code into DropBox. Could anyone share couple of minutes to have a look where I am making a mistake?

    If you put a break-point to the following line, you will see that vlcInstance is set 0x0 after the call, which is not good.
    @vlcInstance = libvlc_new(0, NULL);@

    "Source code... 1.47Mb":

    Thanks a lot.

  • sorted out. everything is correct but I needed to provide plugins folder under the bin folder where my exe file is located.

  • Lifetime Qt Champion


    Do you mean it doesn't start ? Is the dll in a place where it can be found on your program startup ?

    If not, you have to modify the PATH in the run panel in QtCreator and add the folder where the dll is

    Hope it helps

    EDIT: a bit too late... Great you found out ! Don't forget to update the thread's title to solved so other forum users may know a solution has been found :)

Log in to reply