Lazarus

Programming => General => Topic started by: Patrice68 on May 21, 2019, 12:41:51 pm

Title: 1st step with Lazarus ... and compil error with program demo
Post by: Patrice68 on May 21, 2019, 12:41:51 pm
Hello,
I have download https://sourceforge.net/projects/fortes4lazarus/files/ (https://sourceforge.net/projects/fortes4lazarus/files/) fortesreport-3.24-LCL-R2.zip, and I try the program demo.
(of course, I have install Fortes4Lazarus whis the online package manager)
But, when I compil for exemple the project "Etiqueta", I have this message :
Quote
Compilation du projet - Cible : Etiqueta.exe : Code de sortie 1 - Erreurs : 1 - Avertissements : 2
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
Etiqueta.lpr(19,1) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.
Codetools - Erreurs : 1
:o
What is happening ?


Title: Re: 1st step with Lazarus ... and compil error with program demo
Post by: wp on May 21, 2019, 03:56:14 pm
I cannot confirm with 32bit Laz/fpc on Win10/64bit, but I can with 64bit Laz/fpc.

When I open then project file of the "Etiqeta" demo I see the line "{$IFDEF WINDOWS}{$R Etiqueta.rc}{$ENDIF}" which is usually not found in a Lazarus program. When I remove this line the program compiles and runs fine also on 64 bit Lazarus. Maybe the windres resource compiler is not compatible with 64 bit.

Next time when you post a question, please don't double-post - a single post is enough.
Title: Re: 1st step with Lazarus ... and compil error with program demo
Post by: Patrice68 on May 21, 2019, 05:10:20 pm
Oh!  :o Yes! remove the line, remove the problem, and it compiles!
weird  %)

Quote
Next time when you post a question, please don't double-post - a single post is enough.
Sorry, but I sure to click once on the "Post" button ... arfff! forum bug :D
Title: Re: 1st step with Lazarus ... and compil error with program demo
Post by: marcov on May 21, 2019, 05:56:48 pm
windres is for 32-bit, win64 uses gorc iirc.