Forum > Windows (32/64)
Error: resource compiler "windres.exe" not found, switching to external mode
apostleofchrist:
Greetings fellow developers!
I have hit a wall here. I uninstalled my previous version of Lazarus in order to use the new 1.6.
I downloaded and installed, as I always have and when I tried to compile my project, I've got this message:
--- 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";}};} ---epassdist.lpr(34,1) Error: resource compiler "windres.exe" not found, switching to external mode
I've searched inside Lazarus instalation folder for that file and it isn't anywhere.
Here it is my .lpr file code:
--- 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";}};} ---program epassdist; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset Forms, udistprincipal, LResources, zcomponent, datamod1, printer4lazarus, memdslaz; {$IFDEF WINDOWS}{$R epassdist.rc}{$ENDIF} const //IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE = $8000; // Following are already defined in D7's Windows.pas IMAGE_FILE_RELOCS_STRIPPED = $0001; IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP = $0400; IMAGE_FILE_NET_RUN_FROM_SWAP = $0800; //{$R *.res}//{$SetPEOptFlags IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE}{$SetPEFlags IMAGE_FILE_RELOCS_STRIPPED or IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP or IMAGE_FILE_NET_RUN_FROM_SWAP} begin {$I epassdist.lrs} Application.Initialize; Application.CreateForm(TFrmDistPrincipal, FrmDistPrincipal); Application.CreateForm(TDM1, DM1); Application.Run;end.
I'd appreciate any assistance you may provide.
Thank you.
molly:
windres is part of fpc (and should be located inside its platform dependent directory), in my particular Free pascal specific case: G:\WinDev\FPC\3.0.0\bin\i386-win32\windres.exe
Since you've installed Lazarus 1.6 (assuming release candidate there), you should be able to find it inside your FPC (3.0) directory.
When you started lazarus for the first time, was it able to find you fpc and fpc sources directory ?
Other then that, i don't think it is necessary anymore to use the include solution you presented in your code.
apostleofchrist:
Thank you for you reply molly.
It's not a RC version. It's the stable one. I did what I always do: I downloaded and installed it.
But the windres.exe is nowhere inside lazarus folder [C:\lazarus]
Could be something missing in the installer package? That's really odd.
molly:
if you start your lazarus (select an new empty project) and select the menu-item: view/IDE internal/About FPC does it then show the correct Free Pascal version / directory for you ?
It could be that there is some residue left from an old installation somewhere (configuration file pointing to wrong location(s) or a path out of the ordinary).
apostleofchrist:
Hey molly.
I've checked the configuration as you told, and this is what I found about FPC:
--- 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";}};} ---Global IDE options:LazarusDirectory=Resolved LazarusDirectory=C:\lazarus\Project's CompilerFilename=$(CompPath)Resolved Project's CompilerFilename=C:\lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.exeDefault CompilerFilename=C:\lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.exeResolved default compilerFilename=C:\lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.exeCompilerMessagesFilename=Resolved CompilerMessagesFilename=C:\lazarus\components\codetools\fpc.errore.msg
But here's the thing: There weren't leftover from previous version, since I deleted the lazarus folder before doing a new instalation and during the instalation I checked the option which asks about cleaning any previous user configuration.
I've just searched the entire C: drive and have found two of these windres files. One is called i386-win32-windres and it is located in C:\lazarus\fpc\3.0.0\bin\x86_64-win64 and the other is called windres and it is located in C:\Program Files (x86)\CodeBlocks\MinGW\bin.
Which one is to be used and how do I tell the IDE to locate it?
Navigation
[0] Message Index
[#] Next page