-
Notifications
You must be signed in to change notification settings - Fork 435
Closed
Labels
Description
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 :)
QuerelaQuerela