Recent

Author Topic: LazBuild console programm puts Gtk-WARNING **: cannot open display: [solved]  (Read 258 times)

Jan_

  • New Member
  • *
  • Posts: 17
Hello i build my projekt with Lazbuild:

lazbuild --lazarusdir="/usr/share/lazarus/2.2.6/" myprogram.lpi


when i start it i get:
(myprogram:125490): Gtk-WARNING **: cannot open display:

used packages:
pascalscript

other programs runs.
how to force lazbuild to build a console Application?
« Last Edit: March 18, 2024, 02:22:34 pm by Jan_ »

Jan_

  • New Member
  • *
  • Posts: 17
Re: LazBuild console programm puts Gtk-WARNING **: cannot open display:
« Reply #1 on: March 18, 2024, 02:22:21 pm »
found the answer:
- open Project/ProjectOptions/CompilerOptions/AdditionsAndOverrides

- In this dialogue there is a dropdown above the listbox named:
Set "LCLWidgetType" drop it down and find the entry
"Value nogui"
and select it

TRon

  • Hero Member
  • *****
  • Posts: 2398
You should also be able to use the command-line option --widgetset=<widgetset> or --ws=<widgetset> (see lazbuild wiki)

 

TinyPortal © 2005-2018