How to create GUIs (such as menuconfig) with lxdialog

5,339

You are, most likely, abusing lxdialog. That is supposed to be used only together all other configuration stuff.

If You really need a configuration tool to be used at compile time (i.e.:"make menuconfig && make all") then you will find documentation to make kconfig work for you in kernel/Documentation/kconfig directory (and other places, but You need to search for kconfig, not lxdialog!).

If You need a generic dialog interface instead (e.g.: as found in various debian configurators) You would be much better off using plain dialog available in all major distributions. You will find a lot of documentation for dialog (including at "http://invisible-island.net/dialog/dialog.html").

Share:
5,339

Related videos on Youtube

K.Denn
Author by

K.Denn

Updated on September 18, 2022

Comments

  • K.Denn
    K.Denn over 1 year

    I try to generate a menuconfig by my own with the help of lxdialog (source: lxdialog). Unfortunately this is not so well documented as I wished for. Example:

    example menuconfig

    So what I did: I included these files (see source) into a new/empty project and did nothing else. As it seems that this is the source of lxdialog I tried a quick shot by easily importing.I need to use a GUI, which is based on .csince I need the return values in a C/C++ program - that's why I can't use the much more easier to develop dialog. I don't want to spent too much time on programming a new GUI that's why I think lxdialog fits my needs.

    The error: I get lots of errors with the message Type XYZ could not be resolved. I refreshed the Indexer a multiple times and I even excluded every .c from build, but without success. I already checked the whole library for the unresolved keywords but it seems that the places where these errors come from, is the place of the first occurrence of the keyword at all.

    Some of the messages:

    [...]
    Type 'chtype' could not be resolved dialog.h
    Type 'WINDOW' could not be resolved dialog.h
    [...]
    

    My question is: obviousely I'm doing something wrong. Have I included to less files into my project or am I missing system wide libraries ?

    Does anyone know a tutorial to step into lxdialog or at least knows how to solve these erros?

    Thanks for your support

    Kind Regards