Skip to content

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

Open
@ghost

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions