<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ChipMusic.org - Building gbcflsh From Source in Linux]]></title>
		<link>https://chipmusic.org/forums/topic/10523/building-gbcflsh-from-source-in-linux/</link>
		<description><![CDATA[The most recent posts in Building gbcflsh From Source in Linux.]]></description>
		<lastBuildDate>Mon, 18 Mar 2013 19:07:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Building gbcflsh From Source in Linux]]></title>
			<link>https://chipmusic.org/forums/post/160250/#p160250</link>
			<description><![CDATA[<b><i>Rouwe says:</i></b><p>All errors have been solved. With some internet searching I found a post by someone backing up their Gameboy Camera photos on their Linux box.</p><div class="quotebox"><blockquote><p>So what’s the problem? gbcflsh is only distributed as source, and the source fails to compile under recent releases of Ubuntu. I contacted the developers of gbcflsh, and one gave me some suggestions for fixing the source code. They have yet to publish the fixed source, so I’ll document how I got it to compile.</p><p>Focus on the following files:<br />src/Logic.cpp<br />src/ReadFlashThread.cpp<br />src/ReadRamThread.cpp<br />src/WriteFlashThread.cpp<br />src/WriteRamThread.cpp<br />Add the following to the bottom of the #include section of each file:</p><p>#include &lt;cstdio&gt;</p><p>That’s it! Compile it like you already know how to do (which I won’t get into here).</p></blockquote></div><p>Remember to use sudo when you run gbcflsh or you won&#039;t be able to access the cartridge.</p>]]></description>
			<pubDate>Mon, 18 Mar 2013 19:07:38 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/160250/#p160250</guid>
		</item>
		<item>
			<title><![CDATA[Building gbcflsh From Source in Linux]]></title>
			<link>https://chipmusic.org/forums/post/160174/#p160174</link>
			<description><![CDATA[<b><i>Rouwe says:</i></b><p>Has anyone been successful building gcbflsh from source? I&#039;m getting errors that are beyond my experience to diagnose.</p><div class="codebox"><pre><code>src/EraseThread.cpp: In member function ‘virtual void EraseThread::run()’:
src/EraseThread.cpp:13:14: warning: variable ‘t0’ set but not used [-Wunused-but-set-variable]

src/Logic.cpp: In static member function ‘static long int Logic::file_size(FILE*)’:
src/Logic.cpp:242:22: error: ‘SEEK_END’ was not declared in this scope
src/Logic.cpp:242:30: error: ‘fseek’ was not declared in this scope
src/Logic.cpp:243:21: error: ‘ftell’ was not declared in this scope
src/Logic.cpp:244:22: error: ‘SEEK_SET’ was not declared in this scope
make: *** [Logic.o] Error 1</code></pre></div><p>This is on Linux Mint 14 64bit and all dependencies are met. I find it hard to believe the source has errors in it too. I really don&#039;t feel like installing wine or windows in a vm.</p>]]></description>
			<pubDate>Sun, 17 Mar 2013 23:48:28 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/160174/#p160174</guid>
		</item>
	</channel>
</rss>
