<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — BUILD prob with 'sf_default_resource.rc']]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=674</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=674&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in BUILD prob with 'sf_default_resource.rc'.]]></description>
		<lastBuildDate>Sat, 14 Apr 2018 21:04:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: BUILD prob with 'sf_default_resource.rc']]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3123#p3123</link>
			<description><![CDATA[<p>Jeff,&nbsp; not for a picosecond would anyone on this forum suppose you to be inattentive to matters raised here!&nbsp; </p><p>But thank you!<br />--- <br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Sat, 14 Apr 2018 21:04:27 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3123#p3123</guid>
		</item>
		<item>
			<title><![CDATA[Re: BUILD prob with 'sf_default_resource.rc']]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3122#p3122</link>
			<description><![CDATA[<p>John,</p><p>I still haven&#039;t had a chance to go back and look at why the resource compiler is having trouble launching the C preprocessor under WINE.&nbsp; I do have it on my To-Do list, however.&nbsp; I didn&#039;t want you to think I had forgotten.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 13 Apr 2018 20:59:01 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3122#p3122</guid>
		</item>
		<item>
			<title><![CDATA[Re: BUILD prob with 'sf_default_resource.rc']]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3121#p3121</link>
			<description><![CDATA[<p>John,</p><p>The issue is with the resource compiler not working properly for whatever reason.&nbsp; That program has always been highly problematic.&nbsp; What the resource compiler can&#039;t seem to find is the C compiler, which is necessary to preprocess the resource file.&nbsp; The icon&#039;s location is not part of the problem at all.&nbsp; The location of the C compiler is also not the problem.&nbsp; The entire problem is confined to the resource compiler&#039;s poor handling of paths and process creation.&nbsp; It&#039;s a bug that seems to be manifesting itself only under WINE.</p><p>The fact that Simply Fortran is mishandling the icon&#039;s presence or absence, though, is a bug.&nbsp; I&#039;ll need to look at that as it should be an easy fix.&nbsp; Fixing the resource compiler is not an easy fix, though, and will require more time.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Mon, 09 Apr 2018 16:00:29 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3121#p3121</guid>
		</item>
		<item>
			<title><![CDATA[Re: BUILD prob with 'sf_default_resource.rc']]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3120#p3120</link>
			<description><![CDATA[<p>Thanks for the lightning fast reply Jeff.</p><p>I&#039;ve followed your four-point list but it made no difference.<br />What might be relevant is that the icon panel in Project options is always blank.&nbsp; When I add an icon, and when I add no icon and just press &#039;cancel&#039;, in both cases, it always shows blank.</p><p>Perhaps it&#039;s relevant that, when I tick the GUI box and click to add an icon, the file dialog box always opens in the folder containing the .prj file, and I have to navigate up on level then down a level into an Icons folder, to select a .ico file.</p><p>My Linux Mint file structure is as follows, for 32-bit and 64-bit, using SF-linux and SF-Windows, all sharing the same source files.&nbsp; This is why I have to climb up the folder tree to find the icon.ico files.&nbsp; Could this be why the SF-Windows [WINE] project options is showing blank icons?&nbsp; When using SF-Linux, of course, there is no icon selector so this doesn&#039;t arise.&nbsp; I haven&#039;t checked what happens if the icon file isn&#039;t in the .prj file folder, when using a Windows laptop.&nbsp; Should I do so and let you know?</p><p><strong><span class="bbu">File structure</span></strong></p><p>PROJECT FOLDER &lt;-- with the project name</p><p>&nbsp; &gt; SourceFiles<br />&nbsp; &nbsp; &nbsp;&gt; Current<br />&nbsp; &nbsp; &nbsp;&gt; Recent<br />&nbsp; &nbsp; &nbsp;&gt; Modules</p><p>&nbsp; &gt; TestDataFiles</p><p>&nbsp; &gt; Icons</p><p>&nbsp; &gt; Lin.SF<br />&nbsp; &nbsp; &nbsp;&gt; Build64<br />&nbsp; &nbsp; &nbsp;&gt; Modules64<br />&nbsp; &nbsp; &nbsp;&gt; Makefile64<br />&nbsp; &nbsp; &nbsp;&gt; Projectfile64.prj&nbsp; &lt;-- with the project name<br />&nbsp; &nbsp; &nbsp;&gt; Build32<br />&nbsp; &nbsp; &nbsp;&gt; Modules32<br />&nbsp; &nbsp; &nbsp;&gt; Makefile32<br />&nbsp; &nbsp; &nbsp;&gt; Projectfile32.prj&nbsp; &lt;-- with the project name<br />&nbsp; &nbsp; &nbsp;&gt; Otherstuff</p><p>&nbsp; &gt; Win.SF&nbsp; &nbsp;&lt;-- When using SF with WINE<br />&nbsp; &nbsp; &nbsp;&gt; Build64<br />&nbsp; &nbsp; &nbsp;&gt; Modules64<br />&nbsp; &nbsp; &nbsp;&gt; Makefile64<br />&nbsp; &nbsp; &nbsp;&gt; Projectfile64.prj&nbsp; &lt;-- with the project name<br />&nbsp; &nbsp; &nbsp;&gt; Builf32<br />&nbsp; &nbsp; &nbsp;&gt; Modules32<br />&nbsp; &nbsp; &nbsp;&gt; Makefile32<br />&nbsp; &nbsp; &nbsp;&gt; Projectfile32.prj&nbsp; &lt;-- with the project name<br />&nbsp; &nbsp; &nbsp;&gt; Otherstuff</p><p>&nbsp; &gt; Other stuff<br />----- <br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Mon, 09 Apr 2018 12:10:10 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3120#p3120</guid>
		</item>
		<item>
			<title><![CDATA[Re: BUILD prob with 'sf_default_resource.rc']]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3119#p3119</link>
			<description><![CDATA[<p>John,</p><p>You&#039;ll need to remove the icon from the project too.&nbsp; I believe you might have to:</p><p>1. Check Windows GUI in Project Options<br />2. Click the icon<br />3. Select Cancel in the file dialog<br />4. Uncheck Windows GUI</p><p>Selecting Cancel in the file dialog should &quot;un-choose&quot; an icon, but it might not.&nbsp; There could be a bug where the program is stuck with an icon forever without a manual change to the project file itself.&nbsp; I can fix that manually for the time being if you need me to.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Mon, 09 Apr 2018 10:40:37 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3119#p3119</guid>
		</item>
		<item>
			<title><![CDATA[Re: BUILD prob with 'sf_default_resource.rc']]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3118#p3118</link>
			<description><![CDATA[<p>I have <br /> - un-ticked the GUI option, <br /> - saved the project, <br /> - CLEANed the build,<br /> - exited from SF,<br /> - re-started SF,<br /> - checked options, GUI still unticked,<br /> - re-run BUILD.</p><p>Build status display:</p><div class="codebox"><pre><code>===========================
Generating Makefile... Okay
===========================
Compiling ..\Source\MODULES\mM.for
Compiling ..\Source\MODULES\mParams.for
Compiling ..\Source\MODULES\mRestr.for
Compiling ..\Source\addlod.for
:
:
: [many]
:
:
Compiling ..\Source\WinINIT.for
Compiling ..\Source\WinMenus.for
Compiling ..\Source\WinSCR.for
Processing default resource
Can&#039;t recognise &#039;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gcc.exe -E -xc -DRC_INVOKED  build64\sf_default_resource.rc&#039; as an internal or external command, or batch script.
C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\windres.exe: preprocessing failed.
Error: Last command making (build64\sf_default_resource.res) returned a bad status
Error: Make execution terminated

* Failed *</code></pre></div><p> Relevant Makefile extracts: </p><div class="codebox"><pre><code>#
# Automagically generated by Approximatrix Simply Fortran 2.41
#
FC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gfortran.exe&quot;
CC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gcc.exe&quot;
AR=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\ar.exe&quot;
WRC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\windres.exe&quot;
RM=rm -f

IDIR=-IZ:/home/john/DEV/IOlibWin/Win.SF/modules64 
# warning - directory error: ..\IOlibWin\modules64
:
:
:

&quot;build64\WinMenus.o&quot;: &quot;..\Source\WinMenus.for&quot; &quot;modules64\drw.mod&quot; &quot;modules64\loading.mod&quot; &quot;modules64\m.mod&quot; &quot;modules64\materials.mod&quot; &quot;modules64\members.mod&quot; &quot;modules64\nodes.mod&quot; &quot;modules64\params.mod&quot; &quot;modules64\properties.mod&quot; &quot;modules64\restraints.mod&quot; &quot;modules64\winstuff.mod&quot;
    @echo Compiling ..\Source\WinMenus.for
    @$(FC) -c -o &quot;build64\WinMenus.o&quot; $(FFLAGS) &quot;..\Source\WinMenus.for&quot;

&quot;build64\WinSCR.o&quot;: &quot;..\Source\WinSCR.for&quot; &quot;modules64\loading.mod&quot; &quot;modules64\materials.mod&quot; &quot;modules64\members.mod&quot; &quot;modules64\nodes.mod&quot; &quot;modules64\params.mod&quot; &quot;modules64\properties.mod&quot; &quot;modules64\restraints.mod&quot; &quot;modules64\winstuff.mod&quot;
    @echo Compiling ..\Source\WinSCR.for
    @$(FC) -c -o &quot;build64\WinSCR.o&quot; $(FFLAGS) &quot;..\Source\WinSCR.for&quot;


&quot;build64\sf_default_resource.res&quot;: &quot;build64\sf_default_resource.rc&quot; &quot;..\Icons\Icon64.ico&quot;
    @echo Processing default resource
    @$(WRC) build64\sf_default_resource.rc $(RCFLAGS) -o build64\sf_default_resource.res

clean: .SYMBOLIC
    @echo Deleting build64\addlod.o and related files
    @$(RM) &quot;build64\addlod.o&quot;
    @echo Delet... . .
:
:</code></pre></div><p>---<br />John.</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Mon, 09 Apr 2018 10:36:33 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3118#p3118</guid>
		</item>
		<item>
			<title><![CDATA[Re: BUILD prob with 'sf_default_resource.rc']]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3117#p3117</link>
			<description><![CDATA[<p>John,</p><p>It sounds like <em>windres.exe</em> is failing on Linux under WINE for whatever reason.&nbsp; I&#039;ll have to figure out why that is occurring, but <em>windres.exe</em> has significant problems with paths.</p><p>In the meantime, I would suggest simply disabling the Windows GUI option in Project Options.&nbsp; Your executable won&#039;t have an icon, but it will at least compile properly since it shouldn&#039;t be invoking the resource compiler.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sat, 07 Apr 2018 01:21:08 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3117#p3117</guid>
		</item>
		<item>
			<title><![CDATA[BUILD prob with 'sf_default_resource.rc']]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3116#p3116</link>
			<description><![CDATA[<p>Using Windows SF 2.41.2559 under WINE in Linux Mint:</p><p>After BUILD has successfully compiled all source files, I am getting this error message and the process fails before any object files get linked:<br /></p><div class="codebox"><pre><code>Processing default resource
Can&#039;t recognise &#039;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gcc.exe -E -xc -DRC_INVOKED  build64\sf_default_resource.rc&#039; as an internal or external command, or batch script.
C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\windres.exe: preprocessing failed.
Error: Last command making (build64\sf_default_resource.res) returned a bad status
Error: Make execution terminated

* Failed *</code></pre></div><p>The relevant part of the Makefile seems to be,<br /></p><div class="codebox"><pre><code>&quot;build64\sf_default_resource.res&quot;: &quot;build64\sf_default_resource.rc&quot;
    @echo Processing default resource
    @$(WRC) build64\sf_default_resource.rc $(RCFLAGS) -o build64\sf_default_resource.res</code></pre></div><p>I have tried using Options&gt;Project and clicking on the icon gadget to add the correct icon file.&nbsp; The icon doesn&#039;t then appear on the gadget face but no error message is triggered by the attempt.</p><p>Any suggestions anyone?<br />--- <br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Fri, 06 Apr 2018 23:28:57 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3116#p3116</guid>
		</item>
	</channel>
</rss>
