Forum > Linux

LazBuild console programm puts Gtk-WARNING **: cannot open display: [solved]

(1/1)

Jan_:
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?

Jan_:
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:
You should also be able to use the command-line option --widgetset=<widgetset> or --ws=<widgetset> (see lazbuild wiki)

Navigation

[0] Message Index

Go to full version