Skip to content

lazbuild not work on windows #9

@pobearm

Description

@pobearm
  1. I installed Lazarus 4.4 on windows: D:\lazarus

  2. add system env: LAZARUSDIR=D:\lazarus

  3. config in my vscode:
    "fpctoolkit.lazarus.preferLazbuild": true,
    "fpctoolkit.lazarus.enabled": true,
    "fpctoolkit.env.PP": "D:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe",
    "fpctoolkit.env.FPCDIR": "D:\lazarus\fpc\3.2.2\source",
    "fpctoolkit.env.LAZARUSDIR": "D:\lazarus",
    "fpctoolkit.format.enabled": true,
    "fpctoolkit.mcp.enabled": true,
    "fpctoolkit.lsp.initializationOptions.checkSyntax": true,
    "fpctoolkit.lsp.initializationOptions.publishDiagnostics": true,

  4. terminal in vscode:
    which lazbuild
    /d/lazarus/lazbuild

  5. on window FPC PROJECTS, build project:
    D:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe DmsClient.lpr -Twin32 -Px86_64 -oDmsClient -FuD:\lazarus\components* -FuC:\Users\Wondfo\AppData\Local\lazarus\onlinepackagemanager\packages* -Fubiz -Fupkgs\rpcclient -Fuforms -Fupkgs\xlog -Fupkgs\config -FUlib/x86_64-win32 -O3 -CX -XX -Filib/x86_64-win32 -dLCL -dLCLWin -vq

Error: Illegal parameter: -Twin32
Error: D:\lazarus\fpc\3.2.2\bin\x86_64-win64\ppcx64.exe returned an error exitcode
Exited with code 1.
Build complete.

  1. First, it not use lazbuild.
    Second, it use fpc.exe with error param: -Twin32.

How to fix it ? thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions