<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joeklow</id>
	<title>VideoLAN Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joeklow"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Joeklow/"/>
	<updated>2026-11-16T01:29:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=User:Joeklow&amp;diff=24682</id>
		<title>User:Joeklow</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=User:Joeklow&amp;diff=24682"/>
		<updated>2013-08-28T19:44:03Z</updated>

		<summary type="html">&lt;p&gt;Joeklow: added dirty hack:Cross-compile and build Win32 VLC plugin out-of-tree at 64-bit Gentoo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== General presentation ==&lt;br /&gt;
&lt;br /&gt;
Software developer who works on a huge load of projects, concepts and ideas thus pays a little attention at his actions/steps. Avid, a bit. Using Gentoo/64-bit as primary development platform.&lt;br /&gt;
&lt;br /&gt;
In a last year, I came to VLC-related projects four or five times. &lt;br /&gt;
&lt;br /&gt;
 * there was an old source of CCTV system I found on the 2010-dated drive, which used transcoding facilities to record data&lt;br /&gt;
 * there&#039;s a specific plugin requested at freelancer portal and the task handed to me&lt;br /&gt;
 * some subtitle magic which wasnt integrated so tighly as that beloved lua plugin at forum is, but still is used..&lt;br /&gt;
 * experimental player UI concept that is still in progress&lt;br /&gt;
 * other occasions&lt;br /&gt;
(note: no license violations happened and I avoid any binary redistribution)&lt;br /&gt;
&lt;br /&gt;
So I decided to land my personal page here and fill it with some logs&#039;o&#039;vandalizing.&lt;br /&gt;
Will probably edit Hacker Guide according to acquired data.&lt;br /&gt;
&lt;br /&gt;
== Dirty hacks ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compile and build Win32 VLC plugin out-of-tree at 64-bit Gentoo ===&lt;br /&gt;
&lt;br /&gt;
I hope that this page will be googled by strangers experiencing same problems, so plan is to leave a full story here. That experiment involved a lot of vandalizing both in my system and vlc sources - much fun.&lt;br /&gt;
&lt;br /&gt;
1) I had troubles with 64-bit toolchain - didn&#039;t checked that x86_64-w64-mingw32 is [http://stackoverflow.com/a/3776853/438039 actually a 64-bit compiler] , and i686-w64-mingw32 is seemingly *not* available on Gentoo via crossdev.&lt;br /&gt;
&lt;br /&gt;
2) someone left bugs in contrib files downloaded at &#039;make prebuilt&#039; step:&lt;br /&gt;
&lt;br /&gt;
  ls -l ../contrib/x86_64-w64-mingw32/lib/|grep libdts&lt;br /&gt;
  lrwxrwxrwx 1 1015 1016       56 Apr  8 20:57 libdts.a -&amp;gt; /home/funman/vlc/contrib/x86_64-w64-mingw32/lib/libdca.a&lt;br /&gt;
   ls -l ../contrib/i586-mingw32msvc/lib/|grep dts&lt;br /&gt;
  lrwxrwxrwx 1 ft   ft         54 Dec 16  2012 libdts.a -&amp;gt; /home/jb/vlc-2.0/contrib/i586-mingw32msvc/lib/libdca.a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) default lines in default vlc-2.0.7/win32/configure.sh are exotic for some builds, like this:&lt;br /&gt;
  --enable-update-check&lt;br /&gt;
&lt;br /&gt;
4) different amount of .pc files per contrib&#039;s platform version:&lt;br /&gt;
&lt;br /&gt;
  find ../src/vlc-2.0.7/contrib/i586-mingw32msvc/ |grep &amp;quot;\.pc&amp;quot; | wc -l&lt;br /&gt;
  66&lt;br /&gt;
  find ../src/vlc-2.0.7/contrib/x86_64-w64-mingw32/ |grep &amp;quot;\.pc&amp;quot; | wc -l&lt;br /&gt;
  62&lt;br /&gt;
  diff 32 64&lt;br /&gt;
  4c4&lt;br /&gt;
  &amp;lt; libswresample.pc&lt;br /&gt;
  ---&lt;br /&gt;
  &amp;gt; libchromaprint.pc&lt;br /&gt;
  7d6&lt;br /&gt;
  &amp;lt; portaudio-2.0.pc&lt;br /&gt;
  11d9&lt;br /&gt;
  &amp;lt; taglib_c.pc&lt;br /&gt;
  19d16&lt;br /&gt;
  &amp;lt; gnutls.pc&lt;br /&gt;
  25d21&lt;br /&gt;
  &amp;lt; zvbi-0.2.pc.orig&lt;br /&gt;
  36a33&lt;br /&gt;
  &amp;gt; harfbuzz.pc&lt;br /&gt;
  63d59&lt;br /&gt;
  &amp;lt; fluidsynth.pc&lt;br /&gt;
&lt;br /&gt;
5) default vlc-2.0.7/configure file does not export PKG_CONFIG_PATH when it&#039;s required, but sets PKG_CONFIG_LIBDIR&lt;br /&gt;
&lt;br /&gt;
    if test &amp;quot;$build&amp;quot; = &amp;quot;$host&amp;quot; -o &amp;quot;$PKG_CONFIG_LIBDIR&amp;quot;; then :&lt;br /&gt;
      export PKG_CONFIG_PATH=&amp;quot;${CONTRIB_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH&amp;quot;&lt;br /&gt;
  else&lt;br /&gt;
&lt;br /&gt;
    export PKG_CONFIG_LIBDIR=&amp;quot;${CONTRIB_DIR}/lib/pkgconfig&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
haven&#039;t checked if copying PKG_CONFIG_PATH line to second section helps something, but did it too while resolving problems.&lt;br /&gt;
&lt;br /&gt;
6) on my system, there&#039;s a symlink from /usr/bin/x86_64-w64-mingw-pkg-config, /usr/bin/ming32-pkg-config to /usr/bin/crossdev-pkg-config&lt;br /&gt;
and in that crossdev-pkg-config -  &#039;unset&#039; happens for PKG_CONFIG_PATH&lt;br /&gt;
&lt;br /&gt;
7) same file, crossdev-pkg-config, contains function &#039;error&#039;, which must be eliminated from returning exit code 1 with unnecessary errors: it breaks configure.&lt;br /&gt;
&lt;br /&gt;
  error() { 0; }&lt;br /&gt;
&lt;br /&gt;
after that, it still produces makefile errors due to line separator&lt;br /&gt;
&lt;br /&gt;
  CFLAGS_ogg =  -I/work/vlc/src/vlc-2.0.7/contrib/i586-mingw32msvc/include&lt;br /&gt;
  -I/work/vlc/src/vlc-2.0.7/contrib/i586-mingw32msvc/include&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
to fix it, had to remove the whole final section around cross-dev-pkgconfig&#039;s bad_lines and add echo &amp;quot;${output}&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
8) on Gentoo, proper compiler binary for 32-bit mingw is, for example, mingw32-gcc, mingw32-g++. (note: I read the wiki, but decided to try expected host value)&lt;br /&gt;
&lt;br /&gt;
  ../bootstrap --host=mingw32-gcc&lt;br /&gt;
  make prebuilt&lt;br /&gt;
  curl -f -L -- &amp;quot;ftp://ftp.videolan.org/pub/videolan/contrib/mingw32-gcc/vlc-contrib-mingw32-gcc-latest.tar.bz2&amp;quot; &amp;gt; &amp;quot;vlc-contrib-mingw32-gcc-latest.tar.bz2&amp;quot;&lt;br /&gt;
  curl: (9) Server denied you to change to the given directory&lt;br /&gt;
  make: *** [vlc-contrib-mingw32-gcc-latest.tar.bz2] Error 9&lt;br /&gt;
  make: *** Deleting file `vlc-contrib-mingw32-gcc-latest.tar.bz2&#039;&lt;br /&gt;
&lt;br /&gt;
I went to ftp://ftp.videolan.org/pub/videolan/contrib/ and found the proper configuration is named i586-mingw32msvc *only*&lt;br /&gt;
(aha, that is described at wiki too,... so &#039;mingw32&#039; config must exist: ln -s i586-mingw32msvc mingw32)&lt;br /&gt;
&lt;br /&gt;
9) configure line (called from vlc-2.0.7/win32):&lt;br /&gt;
  ../extras/package/win32/configure.sh --host=mingw32-gcc --disable-lua  --disable-nls --disable-lua --disable-mad --disable-avcodec --disable-avformat --disable-swscale --disable-postproc --disable-dvdread --disable-shout --disable-twolame --disable-dca --disable-flac --disable-theora --disable-schroedinger --disable-x264 --disable-caca --disable-skins2 --disable-libgcrypt --disable-update-check&lt;br /&gt;
&lt;br /&gt;
10) random bug:&lt;br /&gt;
  preferences.hpp:72:19: error: expected unqualified-id before ‘char’ - &lt;br /&gt;
&lt;br /&gt;
https://forum.videolan.org/viewtopic.php?f=14&amp;amp;t=102257 - &amp;quot;This is a bug in your toolchain.&amp;quot; (c), so this case of Debianum Tremens shall be resolved by someone later. But on this case, it was required to build 3rdparty plugin out-of-tree, and so I just had to give proper dirs in makefile to make it fly:&lt;br /&gt;
&lt;br /&gt;
11) don&#039;t know what garbage cross-pkg-config should provide to make this compile, because build seemingly lacked to pick all possible options&lt;br /&gt;
12) mingw32 collect2/ld seems to require -lLIBNAME argument to be passed AFTER *.o files&lt;br /&gt;
13) some functions like &#039;asprintf&#039; and &#039;strcasestr&#039; are hard to obtain on mingw32.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s my makefile for cross-building out-of-tree plugin (which is actually a modified subtitle demux): http://www.everfall.com/paste/id.php?15a3kv64pdt9&lt;/div&gt;</summary>
		<author><name>Joeklow</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=User:Joeklow&amp;diff=24681</id>
		<title>User:Joeklow</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=User:Joeklow&amp;diff=24681"/>
		<updated>2013-08-28T19:33:31Z</updated>

		<summary type="html">&lt;p&gt;Joeklow: personal page created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== General presentation ==&lt;br /&gt;
&lt;br /&gt;
Software developer who works on a huge load of projects, concepts and ideas thus pays a little attention at his actions/steps. Avid, a bit. Using Gentoo/64-bit as primary development platform.&lt;br /&gt;
&lt;br /&gt;
In a last year, I came to VLC-related projects four or five times. &lt;br /&gt;
&lt;br /&gt;
 * there was an old source of CCTV system I found on the 2010-dated drive, which used transcoding facilities to record data&lt;br /&gt;
 * there&#039;s a specific plugin requested at freelancer portal and the task handed to me&lt;br /&gt;
 * some subtitle magic which wasnt integrated so tighly as that beloved lua plugin at forum is, but still is used..&lt;br /&gt;
 * experimental player UI concept that is still in progress&lt;br /&gt;
 * other occasions&lt;br /&gt;
(note: no license violations happened and I avoid any binary redistribution)&lt;br /&gt;
&lt;br /&gt;
So I decided to land my personal page here and fill it with some logs&#039;o&#039;vandalizing.&lt;br /&gt;
Will probably edit Hacker Guide according to acquired data.&lt;br /&gt;
&lt;br /&gt;
== Dirty hacks ==&lt;br /&gt;
&lt;br /&gt;
// TBD&lt;/div&gt;</summary>
		<author><name>Joeklow</name></author>
	</entry>
</feed>