Recent

Author Topic: Error in compiling resource files into .rc format, in Mac M1  (Read 869 times)

Sanem

  • Full Member
  • ***
  • Posts: 174
Hello,

I'm experiencing an issue with Lazarus stable version on macOS (x86_64-darwin-cocoa). When I compile my project, I encounter an error in compiling resource files into .rc format. The error message is:

Error: resource compiler "windres" not found, switching to external mode

Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.

Additionally, even after compiling windres, I still get an error stating that it can't detect the architecture.

Any thoughts on how to fix this?

Here are the specifications of my Mac machine:
Model: MacBook Air (M1, 2020)
Chip: Apple M1
Memory: 8 GB
Startup Disk: Macintosh HD
macOS: Sonoma 14.5

Here are the specifications of my Lazarus:
Lazarus: 3.4
FPC: 3.2.2

Thanks!

Thaddy

  • Hero Member
  • *****
  • Posts: 15722
  • Censorship about opinions does not belong here.
Re: Error in compiling resource files into .rc format, in Mac M1
« Reply #1 on: June 29, 2024, 06:42:55 pm »
The rc format is a text based format to create res files. rc itself is just a plain text format. It is the sourcecode to the res binary resource.
Maybe there is your error. Instead of windres, you could try with fpcres or gorc if that wasnt the issue.
« Last Edit: June 29, 2024, 06:45:13 pm by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

 

TinyPortal © 2005-2018