<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - Building gbcflsh From Source in Linux]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/10523/"/>
	<updated>2013-03-18T19:07:38Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/10523/building-gbcflsh-from-source-in-linux/</id>
		<entry>
			<title type="html"><![CDATA[Re: Building gbcflsh From Source in Linux]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/160250/#p160250"/>
			<content type="html"><![CDATA[<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>]]></content>
			<author>
				<name><![CDATA[Rouwe]]></name>
				<uri>https://chipmusic.org/Rouwe</uri>
			</author>
			<updated>2013-03-18T19:07:38Z</updated>
			<id>https://chipmusic.org/forums/post/160250/#p160250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Building gbcflsh From Source in Linux]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/160174/#p160174"/>
			<content type="html"><![CDATA[<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>]]></content>
			<author>
				<name><![CDATA[Rouwe]]></name>
				<uri>https://chipmusic.org/Rouwe</uri>
			</author>
			<updated>2013-03-17T23:48:28Z</updated>
			<id>https://chipmusic.org/forums/post/160174/#p160174</id>
		</entry>
</feed>
