My jester code which compiles on my laptop has failed to compile on my android phone inside termux. Here is the error code Nim gave
/data/data/com.termux/files/home/.nimble/pkgs/httpbeast-0.2.2/httpbeast.nim(282, 17) Error: undeclared identifier: 'addTimer'
candidates (edit distance, scope distance); see '--spellSuggest':
(4, 2): 'times' [module declared in /data/data/com.termux/files/home/.nimble/pkgs/httpbeast-0.2.2/httpbeast.nim(9, 8)]
(4, 4): 'DateTime' [type declared in /data/data/com.termux/files/usr/lib/nim/lib/pure/times.nim(295, 3)]
(4, 4): 'addFirst' [proc declared in /data/data/com.termux/files/usr/lib/nim/lib/pure/collections/deques.nim(274, 6)]
(4, 4): 'addInt' [func declared in /data/data/com.termux/files/usr/lib/nim/lib/std/private/digitsutils.nim(81, 6)]
(4, 4): 'addInt' [proc declared in /data/data/com.termux/files/usr/lib/nim/lib/std/private/digitsutils.nim(113, 6)]
(4, 4): 'addInt' [proc declared in /data/data/com.termux/files/usr/lib/nim/lib/std/private/digitsutils.nim(88, 6)]
(4, 4): 'addSep' [func declared in /data/data/com.termux/files/usr/lib/nim/lib/pure/strutils.nim(1718, 6)]
(4, 4): 'addWrite' [proc declared in /data/data/com.termux/files/usr/lib/nim/lib/pure/asyncdispatch.nim(1212, 8)]
(4, 4): 'addr' [proc declared in /data/data/com.termux/files/usr/lib/nim/lib/system.nim(193, 6)]
(4, 4): 'cpuTime' [proc declared in /data/data/com.termux/files/usr/lib/nim/lib/pure/times.nim(2626, 8)]
(4, 4): 'dateTime' [proc declared in /data/data/com.termux/files/usr/lib/nim/lib/pure/times.nim(1336, 6)]
(4, 4): 'getTime' [proc declared in /data/data/com.termux/files/usr/lib/nim/lib/pure/times.nim(897, 6)]
(4, 4): 'toTime' [proc declared in /data/data/com.termux/files/usr/lib/nim/lib/pure/times.nim(1073, 6)]
Tip: 25 messages have been suppressed, use --verbose to show them.
Error: Build failed for package: movestuff
... Execution failed with exit code 1
... Command: /data/data/com.termux/files/usr/lib/nim/bin/nim cc --colors:on --noNimblePath --gc:orc -d:release -d:NimblePkgVersion=0.1.5 --path:/data/data/com.termux/files/home/.nimble/pkgs/jester-0.5.0 --path:/data/data/com.termux/files/home/.nimble/pkgs/httpbeast-0.2.2 --path:'/data/data/com.termux/files/home/.nimble/pkgs/asynctools-#pr_fix_compilation' --path:'/data/data/com.termux/files/home/.nimble/pkgs/asynctools-#pr_fix_compilation' --path:/data/data/com.termux/files/home/.nimble/pkgs/karax-1.2.1 --path:/data/data/com.termux/files/home/.nimble/pkgs/ws-0.4.3 --path:/data/data/com.termux/files/home/.nimble/pkgs/dotenv-1.1.1 --path:/data/data/com.termux/files/home/.nimble/pkgs/htmlToVdom-0.1.5 --path:/data/data/com.termux/files/home/.nimble/pkgs/karax-1.2.1 --path:/data/data/com.termux/files/home/.nimble/pkgs/ws-0.4.3 --path:/data/data/com.termux/files/home/.nimble/pkgs/dotenv-1.1.1 --path:/data/data/com.termux/files/home/.nimble/pkgs/nimcrypto-0.5.4 --hints:off -o:/data/data/com.termux/files/home/Movestuff/movestuff /data/data/com.termux/files/home/Movestuff/src/movestuff.nim
I have no experience tweaking httpbeast, so before i dive in and murder myself with a lot of headache i want to ask if anyone has faced this issue before and if so how did you solve the problem. If you have an idea or 2 on how to solve this problem, I'll appreciate a little explaination thanks 😊
Actually it's the latest version of nim
~ $ nim -v
Nim Compiler Version 1.6.0 [Android: arm]
Compiled at 2021-10-19
Copyright (c) 2006-2021 by Andreas Rumpf
git hash: 727c6378d2464090564dbcd9bc8b9ac648467e38
active boot switches: -d:release -d:danger
I just tried cross compilation on my laptop using
nimble build --gc:orc --cpu:arm --os:android --d:ssl --threads:on
And i got the same output