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

Missing help.c generation on windows #493

Closed
gpcancia opened this issue Mar 26, 2024 · 2 comments
Closed

Missing help.c generation on windows #493

gpcancia opened this issue Mar 26, 2024 · 2 comments

Comments

@gpcancia
Copy link

Compiling on windows platform (Makefile.wng) the help.c is not generated (the final link fails due to "helpdata" unresolved).
Executing manually:
perl mkhelp.pl < less.hlp > help.c
the link works and less.exe is generated.

@gpcancia
Copy link
Author

Please cancel this issue (related only to less 653), it was due to an incorrect building environment. The Makefile.wng is correct.

@avih
Copy link
Contributor

avih commented Mar 26, 2024

For reference, the mingw Makefile.wng supports 3 methods of generating help.c: using perl (if the cmmand succeeds), else using sh (shell) and few posix utils like od and awk.

And finally, if that doesn't work, then one has to add manually to the makefile invocation WINGEN=1 - which compiles a small C program which is then used instead perl or the shell utils.

(and mkhelp.py also exists, if one wants to generate it manually using python, though it's not attempted by the mingw makefile).

@gwsw gwsw closed this as completed Apr 1, 2024
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

3 participants