
Mozilla-vlc-plugin for Windows xpi
There is such a cool thing, mozilla-vlc-plugin is called. But in order to install it under Windows we need to install a whole vlc, and also remember to mark the plugin in the list of installed components. It’s not always possible to install the entire application (di and desire, too), but the plug-in for firefox in xpi format would be just right. Vlc developers themselves do not collect anything, so you have to do everything yourself. Let's get started.
I did everything under Kubuntu 9.10, and the final product should work under Windows, I recommend that you find an experimental Windows machine in advance, although wine may work.
To get started, download the latest version of vlc source from the manufacturer’s website. I downloaded 1.0.6 from here (the more recent version from the git repository refused to work for me).
A guide was found on the VideoLan wiki: http://wiki.videolan.org/Win32Compile , which helped a lot. In addition , the necessary patch was found on the vlc-devel mailing list , which later needs to be applied to the sources.
Now we put the cross-compiler with mingw32 support, everything is very simple in (k) ubuntu: The sources themselves are downloaded, now we download the compiled libraries that are necessary for building vlc: http://people.videolan.org/~jb/Contribs/ . Download in accordance with the installed version of mingw32. Unpack to the root with a command of the form: Next, we will use these libraries for assembly, for convenience, export the variable:
Next, go to the directory with vlc source codes and apply the patch downloaded from the mailing list. This patch creates the install.rdf file, which is necessary for our plug-in to be compatible with the 3rd version of firefox. In addition, this patch creates the goal of building the package with the plugin and makes several corrections to vlcplugin.cpp.
Before applying the patch in it, you need to replace the maximum version of firefox from 3.5. * With 3.6. * In the block that creates install.rdf; otherwise, the plugin for FF 3.6 will not work. Or do it already in the created install.rdf.in.
Next, we follow the instructions with the VideoLan Wiki, go to the directory and vlc sources and execute:
Next, run the configure script with the necessary parameters. The required parameters are --enable-mozilla and --with-mozilla-sdk-path. Accordingly, the first parameter says that the plug-in for mozilla will still have to be built, and the second shows where the necessary dev components of this mozilla lie. As a result, I ran the script with this set of parameters: After that, you can run it , but the system will probably swear by something like this: Open the Makefile and change the spaces at the beginning of the specified line to honest tabs and so on with almost the whole block that was inserted from the patch. That's it, now we start and go to drink tea, it was going to me for quite a while. After that we do
UPD: At the request of the workers laid out the finished package .
I did everything under Kubuntu 9.10, and the final product should work under Windows, I recommend that you find an experimental Windows machine in advance, although wine may work.
To get started, download the latest version of vlc source from the manufacturer’s website. I downloaded 1.0.6 from here (the more recent version from the git repository refused to work for me).
A guide was found on the VideoLan wiki: http://wiki.videolan.org/Win32Compile , which helped a lot. In addition , the necessary patch was found on the vlc-devel mailing list , which later needs to be applied to the sources.
Now we put the cross-compiler with mingw32 support, everything is very simple in (k) ubuntu: The sources themselves are downloaded, now we download the compiled libraries that are necessary for building vlc: http://people.videolan.org/~jb/Contribs/ . Download in accordance with the installed version of mingw32. Unpack to the root with a command of the form: Next, we will use these libraries for assembly, for convenience, export the variable:
apt-get install mingw32 mingw32-binutils
tar jxf contrib-20061122-win32-bin-gcc-3.4.5-only.tar.bz2 -C /
export CONTRIBS=/usr/win32
Next, go to the directory with vlc source codes and apply the patch downloaded from the mailing list. This patch creates the install.rdf file, which is necessary for our plug-in to be compatible with the 3rd version of firefox. In addition, this patch creates the goal of building the package with the plugin and makes several corrections to vlcplugin.cpp.
Before applying the patch in it, you need to replace the maximum version of firefox from 3.5. * With 3.6. * In the block that creates install.rdf; otherwise, the plugin for FF 3.6 will not work. Or do it already in the created install.rdf.in.
Next, we follow the instructions with the VideoLan Wiki, go to the directory and vlc sources and execute:
./bootstrap && \
export PKG_CONFIG_LIBDIR=$CONTRIBS/lib/pkgconfig PKG_CONFIG_PATH=$CONTRIBS/lib/pkgconfig \
CPPFLAGS="-I$CONTRIBS/include -I$CONTRIBS/include/ebml" CXXCPP=i586-mingw32msvc-cpp \
LDFLAGS=-L$CONTRIBS/lib \
CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++
Next, run the configure script with the necessary parameters. The required parameters are --enable-mozilla and --with-mozilla-sdk-path. Accordingly, the first parameter says that the plug-in for mozilla will still have to be built, and the second shows where the necessary dev components of this mozilla lie. As a result, I ran the script with this set of parameters: After that, you can run it , but the system will probably swear by something like this: Open the Makefile and change the spaces at the beginning of the specified line to honest tabs and so on with almost the whole block that was inserted from the patch. That's it, now we start and go to drink tea, it was going to me for quite a while. After that we do
./configure --host=i586-mingw32msvc --build=i386-linux \
--disable-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=$CONTRIBS/bin \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \
--with-wx-config-path=$CONTRIBS/bin \
--with-freetype-config-path=$CONTRIBS/bin \
--with-fribidi-config-path=$CONTRIBS/bin \
--with-libgcrypt-prefix=$CONTRIBS \
--enable-live555 --with-live555-tree=$CONTRIBS/live.com \
--enable-caca --with-caca-config-path=$CONTRIBS/bin \
--with-xml2-config-path=$CONTRIBS/bin \
--with-dvdnav-config-path=$CONTRIBS/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--disable-fluidsynth --disable-qt4 --disable-skins2 \
--enable-mozilla --with-mozilla-sdk-path=/usr/win32/gecko-sdk
make all
Makefile:1961: *** пропущен разделитель. Останов.
make all
make package-win32-xpi
and after a couple of moments in the directory ./vlc-1.0.6/vlc-plugin we get vlc-1.0.6.xpi ready for use. UPD: At the request of the workers laid out the finished package .