Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got errors building on termux #14

Open
cargilcm opened this issue Oct 17, 2024 · 3 comments
Open

got errors building on termux #14

cargilcm opened this issue Oct 17, 2024 · 3 comments

Comments

@cargilcm
Copy link

cargilcm commented Oct 17, 2024

Hello, I've not found any project like yours where there are sub menus in a character cell display(ncurses codebase). I've run into some problems compiling and wondered if you might help me

To compile I ran:
gcc -I./include ~/ncurses-st-menu/ncmenu.c
where nmenu.c consist of the contents under "usage" and got:

Error#1

error: incompatible pointer to integer conversion initializing 'char' with an expression of type 'ST_MENU_ITEM[2]' (aka 'struct st_ST_MENU_ITEM[2]') [-Wint-conversion]

Line 76 | {"~F~ile", 61, NULL, 0, _file},

The compiler indicates __file variable for the call complained about above.

And

Error#2

error: call to undeclared function 'st_menu_set_desktop_panel'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

Line 134 | st_menu_set_desktop_panel(mainpanel);

Thanks very much for your project which even nicely adds screenshots; thanks in advance for your help.

@okbob
Copy link
Owner

okbob commented Oct 17, 2024

looks so your code is missing st_menu.h include file.

st_menu_set_desktop_panel is wrong. Correct name is st_menu_set_desktop_window.

Can you compile demo applications from demo directory?

just

./configure
make

@cargilcm
Copy link
Author

Great question/tip/reiterating what was previously explained. There's something peculiar about the termux autoconf related to ar-lib.

I can't build in termux by default. But when I drop into a proot-distro that emulates a proper alpine Linux distro inside of termux I can build and run the demos!

Being that the complaint is: configure: error: cannot find required auxiliary files: ar-lib I know I prob need to let the termux developers know but I'm case you're curious I also found this post which.. Could shed some light?! Can't compile with ar-lib I just don't know enough about autoconf/c language to know if this is helpful.

I note specifically where the user states something may be linked to the old ncurses library. Let me know if you have witnessed anything like this before or can point me to the right direction please. Thank you Mr.Stehule

@okbob
Copy link
Owner

okbob commented Oct 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants