 
    
<?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>13.12 Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/13-12/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/13-12/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Tue, 12 Nov 2013 20:12:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Using FLTK with Code::Blocks</title>
		<link>https://complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks/</link>
					<comments>https://complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks/#comments</comments>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Tue, 12 Nov 2013 20:12:22 +0000</pubDate>
				<category><![CDATA[FLTK]]></category>
		<category><![CDATA[12.10]]></category>
		<category><![CDATA[13.12]]></category>
		<category><![CDATA[codeblocks]]></category>
		<category><![CDATA[directory not found]]></category>
		<category><![CDATA[fltk]]></category>
		<category><![CDATA[project not working]]></category>
		<category><![CDATA[wizard cannot continue]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=3011</guid>

					<description><![CDATA[<p>FLTK is a easy to use, free GUI library. While Code::Blocks provides a FLTK project option, the problem is that it doesn’t work correctly. </p>
<p>The post <a href="https://complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks/">Using FLTK with Code::Blocks</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p><a href="http://fltk.org">FLTK</a> is a easy to use, free GUI library.</p>
<p>While Code::Blocks provides a FLTK project option, the problem is that it doesn&#8217;t work correctly. This is because Code::Blocks expects the FLTK <code>include</code> directory to be somewhere else.</p>
<p>These instructions are for FLTK 1.3.2 and Code::Blocks 12.10 or Code::Blocks 13.12 running on Windows 7.</p>
<p>The instructions are probably the same for other version combinations, but no guarantee is made.</p>
<p>Assumes you have already built and installed the FLTK libraries.</p>
</div>
<p>When you try to create a FLTK project using Code::Blocks, after you enter your FLTK directory, you are presented with the following error message:</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/11/cb-fix-fltk-project-0.png" alt="The path you entered seems valid, but the wizard can't locate the include directory. The wizard cannot continue." border="0" class="centered"/></p>
<p>This occurs because the Code::Blocks wizard is pretty stupid and expects header files to be found in a <code>/include</code> directory. FLTK, puts its header files in the directory <code>/FL</code>.</p>
<div class="c2">
<p>The function at fault is <code>GetCompilerIncludeDir</code> found in the file <code>common_functions.script</code> located in the <code>..\CodeBlocks\templates\wizard</code> directory.</p>
</div>
<h1>Solution #1</h1>
<div class="c4">
<p><strong>Note:</strong> this does not work for Code::Blocks 13.12</p>
</div>
<div class="c1">
<p>This is the easiest solution, but it changes the FLTK directory structure &#8211; it also means you have file duplication (if you choose the copy option).</p>
</div>
<p><strong>1) Create</strong> an <code>include</code> directory in your FLTK directory:
</p>
<p><strong>2) Copy</strong> (or move) the <code>FL</code> folder into the <code>include</code> directory.</p>
<h1>Solution #2</h1>
<div class="c1">
<p>A little more complicated, but preserves the FLTK directory structure.</p>
</div>
<p>This requires editing the FLTK wizard script.</p>
<p><strong>1) Open</strong> the file <code>wizard.script</code>. This is located in the</p>
<p><code>..\CodeBlocks\share\CodeBlocks\templates\wizard\fltk</code> directory.</p>
<div class="c2">
<p>If you used the standard Code::Blocks install, it is probably located in the <code>C:</code> drive at <code>C:\Program Files (x86)\CodeBlocks\share\CodeBlocks\templates\wizard\fltk</code>.</p>
<p>If the file is located in <code>C:\Program Files (x86)...</code> then you will probably have difficulty editing it because, as a security feature, Windows 7 (and other versions) prevent anyone other than an administrator from editing content in that directory.</p>
<p>You will need to open a file editor with administrator privileges to be able to edit the file.</p>
<p>Instructions on how to open a file editor with administrator privileges can be found <a href="//complete-concrete-concise.com/blog/windows-7-how-to-give-administrator-privilege-to-a-program">here</a>.</div>
<p><strong>2) Locate</strong> <code>FltkPathDefaultInc</code> and <strong>change</strong> <code>#fl.fl</code> to <code>#fl</code> for the line :</p>
<div class="c1">
<p>For Code::Blocks 13.12, you change <code>#fl.include</code> to <code>#fl</code>.</p>
</div>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/11/cb-fix-fltk-project-1.png" alt="" border="0" class="centered"/><br />
<img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/11/cb-fix-fltk-project-2.png" alt="" border="0" class="centered"/></p>
<p><strong>3) Comment out</strong> (or delete) the entire function <code>OnLeave_FltkPath(fwd)</code> (you can use the standard C++ single line comment <code>//</code> to comment out each line):</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/11/cb-fix-fltk-project-3.png" alt="" border="0" class="centered"/></p>
<p><strong>4) Restart</strong> Code::Blocks (if Code::Blocks was open when you made these changes).</p>

<p>The post <a href="https://complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks/">Using FLTK with Code::Blocks</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://complete-concrete-concise.com/programming/fltk/using-fltk-with-codeblocks/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
