Recent

Author Topic: FPC 3.2.2 + Lazarus 3.4 Components fail to build on Console  (Read 317 times)

paule32

  • Sr. Member
  • ****
  • Posts: 437
FPC 3.2.2 + Lazarus 3.4 Components fail to build on Console
« on: April 23, 2025, 01:27:33 pm »
Hello,
I would like compile a TForm based Application under the Windows Console, but I fail.
I use the following command(s):

Code: Bash  [Select][+][-]
  1. fpc ^
  2.     -FiC:\lazarus\lcl\include ^
  3.     ^
  4.     -FuC:\lazarus\lcl ^
  5.     -FuC:\lazarus\lcl\interfaces ^
  6.     -FuC:\lazarus\lcl\interfaces\gtk3 ^
  7.     -FuC:\lazarus\lcl\units\x86_64-win64 ^
  8.     -FuC:\lazarus\lcl\units\x86_64-win64\win32 ^
  9.     -FiC:\lazarus\components ^
  10.     -Fu. -vewnhi test.pas
  11.  

and get the following Message:

Code: Bash  [Select][+][-]
  1. Hint: Start of reading config file C:\fpcupdeluxe\fpc\bin\x86_64-win64\fpc.cfg
  2. Hint: End of reading config file C:\fpcupdeluxe\fpc\bin\x86_64-win64\fpc.cfg
  3. Free Pascal Compiler version 3.2.2-r0d122c49 [2024/11/15] for x86_64
  4. Copyright (c) 1993-2021 by Florian Klaempfl and others
  5. Target OS: Win64 for x64
  6. Compiling test.pas
  7. Compiling C:\lazarus\lcl\interfaces\gtk3\interfaces.pp
  8. Compiling C:\lazarus\lcl\interfacebase.pp
  9. Compiling C:\lazarus\lcl\lclproc.pas
  10. lclproc.pas(29,35) Fatal: Can't find unit Laz_AVL_Tree used by LCLProc
  11. Fatal: Compilation aborted
  12.  
  13. Error: C:\fpcupdeluxe\fpc\bin\x86_64-win64\ppcx64.exe
  14. returned an error exitcode
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12181
  • FPC developer.
Re: FPC 3.2.2 + Lazarus 3.4 Components fail to build on Console
« Reply #1 on: April 23, 2025, 02:31:53 pm »
Yes this is normal. The LCL depends on (among others) lazutils, and that is not in your search path.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11130
  • Debugger - SynEdit - and more
    • wiki
Re: FPC 3.2.2 + Lazarus 3.4 Components fail to build on Console
« Reply #2 on: April 23, 2025, 03:32:22 pm »
use lazbuild.exe and it will call the compiler for you with the correct arguments

paule32

  • Sr. Member
  • ****
  • Posts: 437
Re: FPC 3.2.2 + Lazarus 3.4 Components fail to build on Console
« Reply #3 on: April 23, 2025, 11:18:59 pm »
Thank you for your replies.

To clearify the requested issue, I post the MS-Console Batch File there in the hope it will be usefull:

Code: Bash  [Select][+][-]
  1. fpc ^
  2.     -FiC:\lazarus\lcl\include ^
  3.     -FuC:\lazarus\lcl ^
  4.     -FuC:\lazarus\lcl\widgetset ^
  5.     -FuC:\lazarus\lcl\forms ^
  6.     -FuC:\lazarus\lcl\units\x86_64-win64 ^
  7.     -FuC:\lazarus\lcl\interfaces\win32 ^
  8.     -FuC:\lazarus\components\lazutils ^
  9.     ^
  10.     -Fu. -vewnhi test.pas
  11.  
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.

 

TinyPortal © 2005-2018