Skip to content

Tests do not compile on Android (Termux) #1

@ih3xcode

Description

@ih3xcode

The following error occurs during compilation:

~/xcmdparser $ cmake --build build
[ 15%] Built target xcmdparser
[ 23%] Building C object tests/CMakeFiles/xcmdparser_test.dir/argument_test.c.o
In file included from /data/data/com.termux/files/home/xcmdparser/tests/argument_test.c:1:
In file included from /data/data/com.termux/files/home/xcmdparser/tests/common.h:3:
/data/data/com.termux/files/home/xcmdparser/tests/utest.h:320:5: error: call to undeclared function 'timespec_get'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    timespec_get(&ts, TIME_UTC);
    ^
1 error generated.
make[2]: *** [tests/CMakeFiles/xcmdparser_test.dir/build.make:76: tests/CMakeFiles/xcmdparser_test.dir/argument_test.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:898: tests/CMakeFiles/xcmdparser_test.dir/all] Error 2
make: *** [Makefile:101: all] Error 2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions