<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cryptopath</title>
	<atom:link href="http://blog.cryptopath.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cryptopath.org</link>
	<description>musings of a totally insane developer..</description>
	<lastBuildDate>Wed, 08 Jul 2009 22:50:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to compile ScummVM with latest MinGW32CE and SDL</title>
		<link>http://blog.cryptopath.org/2009/07/how-to-compile-scummvm-with-latest-mingw32ce-and-sdl/</link>
		<comments>http://blog.cryptopath.org/2009/07/how-to-compile-scummvm-with-latest-mingw32ce-and-sdl/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 19:09:11 +0000</pubDate>
		<dc:creator>cerial</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[cegcc]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[mingw32ce]]></category>
		<category><![CDATA[pocketpc]]></category>
		<category><![CDATA[scummvm]]></category>
		<category><![CDATA[windows mobile]]></category>

		<guid isPermaLink="false">http://blog.cryptopath.org/?p=24</guid>
		<description><![CDATA[So, obviously you came here to give your CPU(s) and HDD(s) something to do for the next few hours (and don&#8217;t forget all the gigabytes for all the sources) Prerequisites In the following I assume you have created a directory in your homedir where all of the sources will be located. If not, do the [...]]]></description>
			<content:encoded><![CDATA[<p>So, obviously you came here to give your CPU(s) and HDD(s) something to do for the next few hours (and don&#8217;t forget all the gigabytes for all the sources) <img src='http://blog.cryptopath.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Prerequisites</h2>
<p>In the following I assume you have created a directory in your homedir where all of the sources will be located. If not, do the following:</p>
<div class="user-normal"><label>shell:</label>
<pre><code>mkdir ~/wmports &amp;&amp; cd ~/wmports
</code></pre>
</div>
<p>Additionally, you should download some scripts and put them into your path to make <em>&#8220;configure&#8221;</em> and <em>&#8220;make&#8221;</em> easier with the MinGW32CE toolchain.</p>
<div class="user-normal"><label>shell:</label>
<pre><code>mkdir scripts &amp;&amp; cd scripts
wget http://pocketinsanity.org/patches/scripts/cross-configure-mingw32ce.sh
wget http://pocketinsanity.org/patches/scripts/cross-make-mingw32ce.sh
chmod +x *.sh &amp;&amp; export PATH=$PATH:~/wmports/scripts
cd..
</code></pre>
</div>
<p>The parts with light-blue background have to be executed as your normal user, where the parts with light-red background have to be executed as root (invoked with <em>&#8220;su&#8221;</em>, <span style="text-decoration: underline;">NOT</span> <em>&#8220;su -&#8221;</em> to prevent switching to the root homedir and environment)</p>
<p><strong>Please note:</strong></p>
<ul>
<li>For compiling under Cygwin, you <span style="text-decoration: underline;">NEED</span> to omit all lines with <em>&#8220;su&#8221;</em> or <em>&#8220;exit&#8221;</em></li>
<li>This may have to be <em>&#8220;sudo bash&#8221;</em> in some OSes or distros which do not allow root login by default (Mac OSX or Ubuntu	for example).</li>
</ul>
<p><span id="more-24"></span></p>
<h2>Compile MinGW32CE</h2>
<p>Checkout <a href="http://cegcc.sourceforge.net/" target="_blank">CeGCC</a> from SVN, change into checkout dir and compile:</p>
<div class="user-normal"><label>shell:</label>
<pre><code>svn co https://cegcc.svn.sourceforge.net/svnroot/cegcc/trunk/cegcc cegcc &amp;&amp; cd cegcc
mkdir src/build-mingw32ce &amp;&amp; cd src/build-mingw32ce
su
</code></pre>
</div>
<div class="user-root"><label>root shell:</label>
<pre><code>export gcc_src=gcc
../scripts/build-mingw32ce.sh
cd .. &amp;&amp; scripts/build-mingw32ce-dlls.sh
cd ../..
exit
</code></pre>
</div>
<p>MinGW32CE and its dlls will be compiled and installed in /opt/mingw32ce (hence the requirement for the root shell here).</p>
<h2>Compile FLAC 1.2.1</h2>
<p>Download <a href="http://flac.sourceforge.net/" target="_blank">FLAC</a> 1.2.1, extract, download and apply patch and compile:</p>
<div class="user-normal"><label>shell:</label>
<pre><code>wget http://downloads.sourceforge.net/sourceforge/flac/flac-1.2.1.tar.gz
tar xfvz flac-1.2.1.tar.gz &amp;&amp; cd flac-1.2.1
wget http://pocketinsanity.org/patches/flac-1.2.1.patch &amp;&amp; patch -p0 &lt; flac-1.2.1.patch
CFLAGS="-D_WIN32_WCE=300 -D_UNICODE" CPPFLAGS="-D_WIN32_WCE=300 -D_UNICODE" cross-configure-mingw32ce.sh --prefix=/opt/mingw32ce/arm-mingw32ce --disable-ogg --disable-xmms-plugin -without-libiconv
cross-make-mingw32ce.sh
su
</code></pre>
</div>
<div class="user-root"><label>root shell:</label>
<pre><code>cross-make-mingw32ce.sh install
cd ..
exit
</code></pre>
</div>
<h2>Compile libMAD 0.15.1b</h2>
<p>Download <a href="http://underbit.com/products/mad/" target="_blank">libMAD</a> 0.15.1b, extract, download and apply patch and compile:</p>
<div class="user-normal"><label>shell:</label>
<pre><code>wget ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
tar xfvz libmad-0.15.1b.tar.gz &amp;&amp; cd libmad-0.15.1b
wget http://pocketinsanity.org/patches/libmad-0.15.1b.patch &amp;&amp; patch -p0 &lt; libmad-0.15.1b.patch
cross-configure-mingw32ce.sh --prefix=/opt/mingw32ce/arm-mingw32ce --disable-nls
cross-make-mingw32ce.sh
su
</code></pre>
</div>
<div class="user-root"><label>root shell:</label>
<pre><code>cross-make-mingw32ce.sh install
cd ..
exit
</code></pre>
</div>
<h2>Compile libmpeg2 0.5.1</h2>
<p>Download <a href="http://libmpeg2.sourceforge.net/" target="_blank">libmpeg2</a> 0.5.1, extract, download and apply patch and compile:</p>
<div class="user-normal"><label>shell:</label>
<pre><code>wget http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz
tar xfvz libmpeg2-0.5.1.tar.gz &amp;&amp; cd libmpeg2-0.5.1
wget http://pocketinsanity.org/patches/libmpeg2-0.5.1.patch &amp;&amp; patch -p0 &lt; libmpeg2-0.5.1.patch
CFLAGS="-march=armv5te" cross-configure-mingw32ce.sh --prefix=/opt/mingw32ce/arm-mingw32ce
cross-make-mingw32ce.sh
su
</code></pre>
</div>
<div class="user-root"><label>root shell:</label>
<pre><code>cross-make-mingw32ce.sh install
cd ..
exit
</code></pre>
</div>
<h2>Compile Tremolo 0.07</h2>
<p>Download <a href="http://wss.co.uk/pinknoise/tremolo/" target="_blank">Tremolo</a> 0.07, extract, download and apply patch and compile:</p>
<div class="user-normal"><label>shell:</label>
<pre><code>wget http://wss.co.uk/pinknoise/tremolo/Tremolo007.zip
mkdir Tremolo &amp;&amp; cd Tremolo &amp;&amp; unzip ../Tremolo007.zip
wget http://pocketinsanity.org/patches/tremolo-0.07.patch &amp;&amp; patch -p0 &lt; tremolo-0.07.patch
cross-make-mingw32ce.sh -f Makefile.mingw32ce
su
</code></pre>
</div>
<div class="user-root"><label>root shell:</label>
<pre><code>cross-make-mingw32ce.sh -f Makefile.mingw32ce install
cd ..
exit
</code></pre>
</div>
<h2>Compile zlib 1.2.3</h2>
<p>Download <a href="http://zlib.net/" target="_blank">zlib</a> 1.2.3, extract, download and apply patch and compile:</p>
<div class="user-normal"><label>shell:</label>
<pre><code>wget http://zlib.net/zlib-1.2.3.tar.gz
tar xfvz zlib-1.2.3.tar.gz &amp;&amp; cd zlib-1.2.3
wget http://pocketinsanity.org/patches/zlib-1.2.3.patch &amp;&amp; patch -p0 &lt; zlib-1.2.3.patch
./configure --prefix=/opt/mingw32ce/arm-mingw32ce
cross-make-mingw32ce.sh -f Makefile.mingw32ce
su
</code></pre>
</div>
<div class="user-root"><label>root shell:</label>
<pre><code>cross-make-mingw32ce.sh -f Makefile.mingw32ce install
cd ..
exit
</code></pre>
</div>
<h2>Compile SDL 1.2.13 trunk (r4600+)</h2>
<p>Checkout <a href="http://libsdl.org/" target="_blank">SDL</a> 1.2.13 trunk, download and apply patch and compile:</p>
<div class="user-normal"><label>shell:</label>
<pre><code>svn co http://svn.libsdl.org/branches/SDL-1.2 SDL-1.2 &amp;&amp; cd SDL-1.2
wget http://pocketinsanity.org/patches/libsdl-1.2.13-r4600.patch &amp;&amp; patch -p0 &lt; libsdl-1.2.13-r4600.patch
./autogen.sh
cross-configure-mingw32ce.sh --prefix=/opt/mingw32ce/arm-mingw32ce
cross-make-mingw32ce.sh
su
</code></pre>
</div>
<div class="user-root"><label>root shell:</label>
<pre><code>cross-make-mingw32ce.sh install
cd ..
exit
</code></pre>
</div>
<h2>Compile ScummVM trunk (r42271+)</h2>
<p>Checkout <a href="http://scummvm.org" target="_blank">ScummVM</a> trunk, download and apply patch and compile:</p>
<p>Change into backends/platform/wince</p>
<div class="user-normal"><label>shell:</label>
<pre><code>svn co https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk scummvm &amp;&amp; cd scummvm
wget http://pocketinsanity.org/patches/scummvm-r42271.patch &amp;&amp; patch -p0 &lt; scummvm-r42271.patch
cd backends/platform/wince
cross-make-mingw32ce.sh -f Makefile.mingw32ce dist
mv scummvm.exe scummvm1.exe
</code></pre>
</div>
<p>Edit the file <em>&#8220;Makefile.mingw32ce&#8221;</em>, comment out the first engine block and remove comments for the second engine block (<em>&#8220;cruise&#8221;</em> does not compile ATM).</p>
<div class="user-normal"><label>shell:</label>
<pre><code>cross-make-mingw32ce.sh -f Makefile.mingw32ce clean &amp;&amp; cross-make-mingw32ce.sh -f Makefile.mingw32ce dist
mv scummvm.exe scummvm2.exe
</code></pre>
</div>
<h2>Copy files to device</h2>
<ul>
<li>Create a new folder (even if you already have one) for scummvm on your device or storage(card).</li>
<li>Copy <em>&#8220;scummvm1.exe&#8221;</em> &amp; <em>&#8220;scummvm2.exe&#8221;</em> to this folder.</li>
<li>Copy the following files to the same directory:
<ul>
<li><em>&#8220;drascula.dat&#8221;</em> from <em>&#8220;scummvm/dists/engine-data&#8221;</em></li>
<li><em>&#8220;kyra.dat from&#8221;</em> <em>&#8220;scummvm/dists/engine-data&#8221;</em></li>
<li><em>&#8220;lure.dat from&#8221;</em> <em>&#8220;scummvm/dists/engine-data&#8221;</em></li>
<li><em>&#8220;queen.tbl from&#8221;</em> <em>&#8220;scummvm/dists/engine-data&#8221;</em></li>
<li><em>&#8220;sky.cpt&#8221;</em> from <em>&#8220;scummvm/dists/engine-data&#8221;</em></li>
<li><em>&#8220;pred.dic from&#8221;</em> <em>&#8220;scummvm/dists/&#8221;</em></li>
<li><em>&#8220;scummmodern.zip&#8221;</em> from <em>&#8220;scummvm/gui/themes&#8221;</em> (use this one, the old one is incompatible)</li>
</ul>
</li>
</ul>
<p>DONE!!</p>
<p> <img src='http://blog.cryptopath.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>[UPDATE:]</strong><br />
Updated ScummVM Patch to r42271.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cryptopath.org/2009/07/how-to-compile-scummvm-with-latest-mingw32ce-and-sdl/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Risky sniffing</title>
		<link>http://blog.cryptopath.org/2009/02/risky-sniffing/</link>
		<comments>http://blog.cryptopath.org/2009/02/risky-sniffing/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 12:47:06 +0000</pubDate>
		<dc:creator>cerial</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.cryptopath.org/?p=17</guid>
		<description><![CDATA[MIME sniffing in Internet Explorer enables cross-site scripting attacks Uploading images is a standard requirement in any Web 2.0 application, but some features of Internet Explorer need to be carefully handled, otherwise a gap can open up and facilitate cross-site scripting attacks on site visitors. Read more]]></description>
			<content:encoded><![CDATA[<p>MIME sniffing in Internet Explorer enables cross-site scripting attacks</p>
<blockquote><p>Uploading images is a standard requirement in any Web 2.0 application, but some features of Internet Explorer need to be carefully handled, otherwise a gap can open up and facilitate cross-site scripting attacks on site visitors.</p></blockquote>
<p><a href="http://www.heise-online.co.uk/security/Risky-MIME-sniffing-in-Internet-Explorer--/features/112589">Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cryptopath.org/2009/02/risky-sniffing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

