Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-01

Lazarus fails to start with "TWinControl.CreateWnd: The nogui widgetset does not support visual controls."

9 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Frank Church

I rebuilt the IDE with NoGUI option, and after closing and restart Lazarus it fails to open with the above message "TWinControl.CreateWnd: The nogui widgetset does not support visual controls", followed by a few others.

Is there some way to get to revert to the original GTK2 with some command line based rebuilding?

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110118/63e3ff7b/attachment.html>

Reply by email

Vincent Snijders
to Frank Church

2011/1/18 Frank Church :

Show quoted text 7 lines
I rebuilt the IDE with NoGUI option, and after closing and restart Lazarus it fails to open with the above message "TWinControl.CreateWnd: The nogui widgetset does not support visual controls", followed by a few others. Is there some way to get to revert to the original GTK2 with some command line based rebuilding?

cp lazarus.old lazarus ?

Or if you don't have lazarus.old (anymore), make in the lazarus directory is probably good enough.

Vincent

Reply by email

Mattias Gaertner
to Frank Church: I rebuilt the IDE with NoGUI option, and after closing and restart Lazarus it fails to…
Show quoted text 6 lines
I rebuilt the IDE with NoGUI option, and after closing and restart Lazarus it fails to open with the above message "TWinControl.CreateWnd: The nogui widgetset does not support visual controls", followed by a few others. Is there some way to get to revert to the original GTK2 with some command line based rebuilding?

cd path/to/your/lazarus
./lazbuild --build-ide= --ws=gtk2

Mattias

Reply by email

Frank Church
to Mattias Gaertner
Mattias Gaertner wrote 15 lines
On Tue, 18 Jan 2011 21:06:48 +0000 Frank Church wrote: > I rebuilt the IDE with NoGUI option, and after closing and restart Lazarus > it fails to open with the above message "TWinControl.CreateWnd: The nogui > widgetset does not support visual controls", followed by a few others. > > Is there some way to get to revert to the original GTK2 with some command > line based rebuilding? cd path/to/your/lazarus ./lazbuild --build-ide= --ws=gtk2

You both responded 5 minutes too late. I just deleted the whole installation to recompile it and it should finish in a few minutes. It is currently doing a make install.

In reference to my previous question does the persistence of the libgtk error imply that the NoGUI option failed to work properly, or could it be because the Build All did not entirely eliminate some included units?

Are there some steps the additional steps required in the Build All that I may have missed?

Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110118/4831eb09/attachment.html>

Reply by email

Mattias Gaertner
to Frank Church
Show quoted text 27 lines
On 18 January 2011 21:24, Mattias Gaertner wrote: > On Tue, 18 Jan 2011 21:06:48 +0000 > Frank Church wrote: > > > I rebuilt the IDE with NoGUI option, and after closing and restart > Lazarus > > it fails to open with the above message "TWinControl.CreateWnd: The nogui > > widgetset does not support visual controls", followed by a few others. > > > > Is there some way to get to revert to the original GTK2 with some command > > line based rebuilding? > > cd path/to/your/lazarus > ./lazbuild --build-ide= --ws=gtk2 > > You both responded 5 minutes too late. I just deleted the whole installation to recompile it and it should finish in a few minutes. It is currently doing a make install. In reference to my previous question does the persistence of the libgtk error imply that the NoGUI option failed to work properly, or could it be because the Build All did not entirely eliminate some included units? Are there some steps the additional steps required in the Build All that I may have missed?

You have to choose the nogui widgetset in the project's compiler options and of course you must not use any unit that uses the gtk.

Mattias

Reply by email

Vincent Snijders
to Mattias Gaertner

2011/1/19 Mattias Gaertner :

Show quoted text 5 lines
> Are there some steps the additional steps required in the Build All that I > may have missed? You have to choose the nogui widgetset in the project's compiler options and of course you must not use any unit that uses the gtk.

Build all builds also the IDE with the nogui widgetset, that is not what you want and what is supported, the IDE needs a GUI. Building just the LCL with nogui is good and then you can try to compile your project.

Reply by email

Frank Church
to Vincent Snijders
Vincent Snijders wrote 19 lines
2011/1/19 Mattias Gaertner : >> Are there some steps the additional steps required in the Build All that I >> may have missed? > > You have to choose the nogui widgetset in the project's compiler > options and of course you must not use any unit that uses the gtk. Build all builds also the IDE with the nogui widgetset, that is not what you want and what is supported, the IDE needs a GUI. Building just the LCL with nogui is good and then you can try to compile your project. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

I set NoGUI alone in the project options and it worked.

Thanks.

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110119/af65aca1/attachment.html>

Reply by email

Frank Church
to Frank Church
Frank Church wrote 31 lines
On 19 January 2011 06:14, Vincent Snijders wrote: > 2011/1/19 Mattias Gaertner : > >> Are there some steps the additional steps required in the Build All > that I > >> may have missed? > > > > You have to choose the nogui widgetset in the project's compiler > > options and of course you must not use any unit that uses the gtk. > > Build all builds also the IDE with the nogui widgetset, that is not > what you want and what is supported, the IDE needs a GUI. Building > just the LCL with nogui is good and then you can try to compile your > project. > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > I set NoGUI alone in the project options and it worked. Thanks.

As a side question - what does the NoGUI widgetset do, how does it work?

Does it send all GUI related objects down some blackhole, or is the programmer supposed to ensure that no Forms and items placed on forms are included in the program?

> Frank Church > > ======================= > http://devblog.brahmancreations.com > -- Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110119/b9134a7b/attachment.html>

Reply by email

Mattias Gaertner
to Frank Church
Show quoted text 35 lines
On 19 January 2011 16:43, Frank Church wrote: > > > On 19 January 2011 06:14, Vincent Snijders wrote: > >> 2011/1/19 Mattias Gaertner : >> >> Are there some steps the additional steps required in the Build All >> that I >> >> may have missed? >> > >> > You have to choose the nogui widgetset in the project's compiler >> > options and of course you must not use any unit that uses the gtk. >> >> Build all builds also the IDE with the nogui widgetset, that is not >> what you want and what is supported, the IDE needs a GUI. Building >> just the LCL with nogui is good and then you can try to compile your >> project. >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> > > > I set NoGUI alone in the project options and it worked. > > Thanks. > > > As a side question - what does the NoGUI widgetset do, how does it work?

It sets up enough empty methods to make the LCL compile.

Does it send all GUI related objects down some blackhole, or is the programmer supposed to ensure that no Forms and items placed on forms are included in the program?

You can include forms, you can even create some of them, but you can not create Handles.

Mattias

Reply by email