<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AOutOfTreeCompile</id>
	<title>Talk:OutOfTreeCompile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AOutOfTreeCompile"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Talk:OutOfTreeCompile&amp;action=history"/>
	<updated>2026-11-04T18:12:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Talk:OutOfTreeCompile&amp;diff=30056&amp;oldid=prev</id>
		<title>Dmko at 21:59, 1 June 2015</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Talk:OutOfTreeCompile&amp;diff=30056&amp;oldid=prev"/>
		<updated>2015-06-01T21:59:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:59, 1 June 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2) Hint to compiler install - basically, some of the info needs to be grafted from the main compiling for windows32 page. Specifically, the requirement to get the mingw cross-compile toolchain setup.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2) Hint to compiler install - basically, some of the info needs to be grafted from the main compiling for windows32 page. Specifically, the requirement to get the mingw cross-compile toolchain setup.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;3) The Makefile here is only for Linux, would be great to provide one for cross-compiling. I&#039;m too embarrassed to admit how long it took me to figure out, but for example when cross-compiling it should use x86_64-w64-mingw32-gcc (or whatever the target host is -gcc and -ld). Also the -z and defs flags &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;through &lt;/del&gt;errors for me and I needed to change the output from .so to .dll (cosmetic but important). Overall I was just sortof taking what worked on linux natively, and slowly adjusted piece by piece till it compiled on windows. Would be good to know what a proper Makefile would look like though :)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;3) The Makefile here is only for Linux, would be great to provide one for cross-compiling. I&#039;m too embarrassed to admit how long it took me to figure out, but for example when cross-compiling it should use x86_64-w64-mingw32-gcc (or whatever the target host is -gcc and -ld). Also the -z and defs flags &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;threw &lt;/ins&gt;errors for me and I needed to change the output from .so to .dll (cosmetic but important). Overall I was just sortof taking what worked on linux natively, and slowly adjusted piece by piece till it compiled on windows. Would be good to know what a proper Makefile would look like though :)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;4) This took me forever to figure out since tons of googling yielded nothing- and was ultimately the clincher for what put everything together- so I&amp;#039;m guessing there&amp;#039;s a more automatic way, but like I said above I&amp;#039;m describing what worked for me and it could be thought of more as a hint than the ultimate way to do it: essentially, PKG_CONFIG_PATH envrironment variable must be set to the *windows* sdk (the one that comes via the 7zip)/lib/pkgconfig - and also the *.pc files in there need to be edited!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;4) This took me forever to figure out since tons of googling yielded nothing- and was ultimately the clincher for what put everything together- so I&amp;#039;m guessing there&amp;#039;s a more automatic way, but like I said above I&amp;#039;m describing what worked for me and it could be thought of more as a hint than the ultimate way to do it: essentially, PKG_CONFIG_PATH envrironment variable must be set to the *windows* sdk (the one that comes via the 7zip)/lib/pkgconfig - and also the *.pc files in there need to be edited!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dmko</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Talk:OutOfTreeCompile&amp;diff=30055&amp;oldid=prev</id>
		<title>Dmko at 21:57, 1 June 2015</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Talk:OutOfTreeCompile&amp;diff=30055&amp;oldid=prev"/>
		<updated>2015-06-01T21:57:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:57, 1 June 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;5) I did all this and was then able to compile the old time filter with a new name/description on linux and export it as dll to be brought over to a windows machine, targeting windows 64 bit. Yay!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;5) I did all this and was then able to compile the old time filter with a new name/description on linux and export it as dll to be brought over to a windows machine, targeting windows 64 bit. Yay!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;--[[User:Dmko|Dmko]] ([[User talk:Dmko|talk]]) 23:57, 1 June 2015 (CEST)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dmko</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Talk:OutOfTreeCompile&amp;diff=30054&amp;oldid=prev</id>
		<title>Dmko: Created page with &quot;So I am a newbie and it&#039;s possible I missed some things that are obvious to more seasoned linux/vlc/c coders- but there is lots of information missing here in regards to succe...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Talk:OutOfTreeCompile&amp;diff=30054&amp;oldid=prev"/>
		<updated>2015-06-01T21:57:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;So I am a newbie and it&amp;#039;s possible I missed some things that are obvious to more seasoned linux/vlc/c coders- but there is lots of information missing here in regards to succe...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;So I am a newbie and it&amp;#039;s possible I missed some things that are obvious to more seasoned linux/vlc/c coders- but there is lots of information missing here in regards to successfully cross-compiling an out-of-tree module against the latest released VLC, from Linux with windows target&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s what ended up working for me- please consider integrating whatever is correct here into the main page (and correcting what isn&amp;#039;t, ;))&lt;br /&gt;
&lt;br /&gt;
1) This line is misleading: &amp;quot;On Debian/Ubuntu, you can simply install them: sudo apt-get install libvlc-dev. On Windows, you can find those files within the vlc-*-win*.zip file, inside the sdk/ directory.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
First of all, it&amp;#039;s not clear whether we&amp;#039;re talking about the host or target system. Secondly, the zip file for 2.2.1 (latest release as of this writing) does not contain all the correct folders, while the .7z does!&lt;br /&gt;
&lt;br /&gt;
2) Hint to compiler install - basically, some of the info needs to be grafted from the main compiling for windows32 page. Specifically, the requirement to get the mingw cross-compile toolchain setup.&lt;br /&gt;
&lt;br /&gt;
3) The Makefile here is only for Linux, would be great to provide one for cross-compiling. I&amp;#039;m too embarrassed to admit how long it took me to figure out, but for example when cross-compiling it should use x86_64-w64-mingw32-gcc (or whatever the target host is -gcc and -ld). Also the -z and defs flags through errors for me and I needed to change the output from .so to .dll (cosmetic but important). Overall I was just sortof taking what worked on linux natively, and slowly adjusted piece by piece till it compiled on windows. Would be good to know what a proper Makefile would look like though :)&lt;br /&gt;
&lt;br /&gt;
4) This took me forever to figure out since tons of googling yielded nothing- and was ultimately the clincher for what put everything together- so I&amp;#039;m guessing there&amp;#039;s a more automatic way, but like I said above I&amp;#039;m describing what worked for me and it could be thought of more as a hint than the ultimate way to do it: essentially, PKG_CONFIG_PATH envrironment variable must be set to the *windows* sdk (the one that comes via the 7zip)/lib/pkgconfig - and also the *.pc files in there need to be edited!&lt;br /&gt;
&lt;br /&gt;
Edited means that the paths should be changed from /home/funman/etc. to the actual location of the sdk. The -I includes are also hardcoded, and even repeated..all and all the .pc files need to be cleaned and edited for a few easy lines (this is one reason I&amp;#039;m guessing I missed something and maybe this is automated somewhere)&lt;br /&gt;
&lt;br /&gt;
5) I did all this and was then able to compile the old time filter with a new name/description on linux and export it as dll to be brought over to a windows machine, targeting windows 64 bit. Yay!&lt;/div&gt;</summary>
		<author><name>Dmko</name></author>
	</entry>
</feed>