* * *

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

Eccezzziunale...veramente

  • New member
  • *
  • 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: 1800
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

  • New member
  • *
  • 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: 1800
Are you compiling or cross-compiling ? What lazarus version did you install, and for which target (32 or 64 bit) ?

Eccezzziunale...veramente

  • New member
  • *
  • 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: 69
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?)

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus