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

Could not install on Arch. (see arch wiki). With solution. #13

Open
adam-ost-vrijwilliger opened this issue Jun 2, 2024 · 0 comments
Open

Comments

@adam-ost-vrijwilliger
Copy link

adam-ost-vrijwilliger commented Jun 2, 2024

Arch wiki hasciicam issue
ERROR

make[1]: Entering directory '/build/hasciicam/src/hasciicam_1.3/src'
  CC       hasciicam.o
hasciicam.c:183:3: error: initialization of ‘const char * const*’ from incompatible pointer type ‘char **’ [-Wincompatible-pointer-types]
  183 |   html_escapes
      |   ^~~~~~~~~~~~
hasciicam.c:183:3: note: (near initialization for ‘hascii_format.conversions’)

I am not an coder, but with some help i used this code for hasciicam.c /scr

How to use file

remove .txt to replace hasciicam.c in /src

hasciicam.c.txt


The changes in the hasciicam.c

Ensure html_escapes is defined correctly:

const char * const html_escapes[] = {
    "string1",
    "string2",
    //... other strings
};

Include the necessary header for setgroups:

#include <unistd.h> // Add this line at the top

make && sudo make install

Use on your own risk.

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

1 participant