Recent

Author Topic: Error: resource compiler "windres.exe" not found, switching to external mode  (Read 22609 times)

Eccezzziunale...veramente

  • Newbie
  • Posts: 6
I have the same issue.
I didn't undenstand how to fix it. Should I install an old versione of the IDE?

molly

  • Hero Member
  • *****
  • Posts: 2330
I have the same issue.
I didn't undenstand how to fix it. Should I install an old versione of the IDE?
Nope, ther is no need to install an older version of the IDE.

You can download the files that are attached at this bugreport: http://bugs.freepascal.org/view.php?id=29698 (the file is named winres.zip), extract the files and place them inside your \bin\x86_64-win64 directory.

Eccezzziunale...veramente

  • Newbie
  • Posts: 6
Now I get another error

Warning: windres [option(s)] [input-file] [output-file]
Warning: windres: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex
Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.

molly

  • Hero Member
  • *****
  • Posts: 2330
Are you compiling or cross-compiling ? What lazarus version did you install, and for which target (32 or 64 bit) ?

Eccezzziunale...veramente

  • Newbie
  • Posts: 6
Just compiling.
I'd like the application to run on both targets.

Edit

I solved uninstalling 64 bit version (lazarus-1.6.0-fpc-3.0.0-win64) and installing the 32 bit one (lazarus-1.6.0-fpc-3.0.0-win32).
« Last Edit: August 23, 2016, 04:31:43 pm by Eccezzziunale...veramente »

trayres

  • Jr. Member
  • **
  • Posts: 92
Re: Error: resource compiler "windres.exe" not found, switching to external mode
« Reply #20 on: September 24, 2016, 01:40:01 am »
I just had this same error; when I go to View-Ide Internals-Information About Used FPC, one section sticks out:

FPC executable:
Compiler=C:\lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.exe
Options=
CompilerDate=2/14/2016 13:21:00
RealCompiler=C:\lazarus\fpc\3.0.0\bin\x86_64-win64\ppcx64.exe
RealCompilerDate=2/14/2016 13:21:00
RealTargetOS=win64
RealTargetCPU=x86_64
RealCompilerInPath=C:\lazarus\fpc\3.0.0\bin\x86_64-win64\ppcx64.exe
Version=3.0.0
CfgFilename=C:\lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.cfg

It looks like the RealCompilerInPath is ppcx64? That doesn't look right.

I think there's a path problem (maybe caused by MSYS2?)

msch

  • New Member
  • *
  • Posts: 10

1. Look for the fpc/bin Directory where you can find the windres.exe.
2. Copy the path of this directory into the Windows-"path" variable.
3. Restart Windows, restart Lazarus. Usually it works now.
 :)

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Better IMHO than altering a global PATH variable is to locate your fpc.cfg file,locate within it the line
Code: Pascal  [Select][+][-]
  1. # searchpath for tools
and add
-FD/path/to/your/windres executable  (it would be fpcres on non-Windows platforms)
below that line.
« Last Edit: February 05, 2019, 04:19:09 pm by howardpc »

 

TinyPortal © 2005-2018