Forum > Free Pascal

fpcres now supports compilation of RC files

<< < (3/5) > >>

marcov:
I just checked what fcl-res unmerged revs there are, and one is the riscv merge (not important for fixes), the other is

r40751 | florian | 2019-01-03 21:55:25 +0100 (Thu, 03 Jan 2019) | 1 line
Changed paths:
   M /trunk/packages/fcl-res/src/elfconsts.pp
   M /trunk/packages/fcl-res/src/elfsubwriter.inc

* set default abi to eabi5 on arm

PascalDragon:
That one could maybe be merged as well, but what is missing (by intention) are the changes for the compiler itself as the -FF option mentioned above is only intended to be temporary until we have a release with an updated fpcres out.

marcov:
Probably that rev wouldn't merge earlier because riscv was merged inbetween, it needs manual merging

Fred vS:
@PascalDragon and Marcov: thanks for your light.

OK, I understand that fpcres will be implement by default later.

But is it possible to use fpcres as stand-alone, something like:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---fpcres myresource.rc
That will produce a myresource.res.

And so first produce the .res , and in code, just use:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$R *.res}
instead of


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$R *.rc}
?

Thanks.

[EDIT]

I did try this without luck:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---fpcres /lazpaint-master/lazpaint/lazpaint.rcError: No known file format detected for file /lazpaint-master/lazpaint/lazpaint.rc' 
Note that lazpaint.rc is perfectly recognized with windres and the lazpaint.res is produced.


--- Code: ---windres /lazpaint-master/lazpaint/lazpaint.rc lazpaint.res
--- End code ---



Fred vS:
Hello.

OK, I get it, this works perfectly on Linux (note the last parameters):


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---fred@fiens ~/l/lazpaint> fpcres /home/fred/lazpaint-master/lazpaint/lazpaint.rc -o lazpaint.res -of res
And the lazpaint.res produced seems perfectly the same as the one produced by windres.

So, for me, ok, let's make it as default for the compiler.

(And big WoW).

Thanks.

Fre;D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version