Skip to content

Build error on Android (Termux): unknown type name 'ulong' #773

@aureliojargas

Description

@aureliojargas

Just did a git clone now and tried to compile the master branch in my Android phone, via the Termux app, which is a nice Linux environment.

This is the log until the first error:

$ make
Scanning dependencies of target tidy-share
[  1%] Building C object CMakeFiles/tidy-share.dir/src/access.c.o
In file included from /data/data/com.termux/files/home/tidy-html5/src/access.c:10:
In file included from /data/data/com.termux/files/home/tidy-html5/src/tidy-int.h:11:
/data/data/com.termux/files/home/tidy-html5/include/tidy.h:749:13: error:
      unknown type name 'ulong'
TIDY_EXPORT ulong TIDY_CALL         tidyOptGetDef...
            ^

I don't have C/C++ programing experience, but I've found tips online and managed to successfully build tidy by just adding the following line to the top of src/config.h and include/tidy.h:

typedef unsigned long ulong;

I guess this is not the proper fix, but I'm happy to provide a pull request if somebody can point me to the right direction. I can also do more tests in my phone if necessary.

I really want upstream tidy building in my phone without my little hack :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions