Page 1 of 1

libvlc_new return 0 on windows xp

Posted: 10 Oct 2015 09:30
by liacat
i have successfully complied vlc 3.0.0 for windows on ubuntu 15.04(Mingw-w64 toolchain).
i copy the vlc-3.0.0-git folder to windows 7; vlc.exe runs ok.
i copy the vlc-3.0.0-git folder to windows xp; vlc.exe run fail:
a message box popup: "VLC media player could not start. Either the command line options were invalid or no plugins were found."
on windows xp, i write a program with libvlc. but function libvlc_new(0, 0) return 0; the debugging message is like this:
core libvlc warning: cannot load module `C:\vlc-3.0.0-git\plugins\logger\libfile_logger_plugin.dll' (找不到指定的程序。 (error 127))
core libvlc warning: cannot load module `C:\vlc-3.0.0-git\plugins\meta_engine\libfolder_plugin.dll' (找不到指定的程序。 (error 127))
core libvlc warning: cannot load module `C:\vlc-3.0.0-git\plugins\misc\libaudioscrobbler_plugin.dll' (找不到指定的程序。 (error 127))

how can i solve it?
thank you for reading and reply.
(sorry for my poor english)

Re: libvlc_new return 0 on windows xp

Posted: 10 Oct 2015 23:18
by Rémi Denis-Courmont
As you should know, Windows XP has been unsupported for over a year. You should probably not use an unsupported OS; but if you really must, then don't update the software on it.

Re: libvlc_new return 0 on windows xp

Posted: 13 Oct 2015 12:32
by liacat
yes, vlc 3.0 don't support xp.
in plugin.c function module_Load calls api SetThreadErrorMode which is exsit from win7.
i delete SetThreadErrorMode call. recompile the vlc. and vlc can run on xp.