Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upandroid binary 64bit #19
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
benibela
Feb 1, 2018
Owner
are you still releasing android binaries ?
Occasionally
CANNOT LINK EXECUTABLE: "/data/data/com.termux/files/usr/lib/libtermux-exec.so" is 64-bit instead of 32-bit
Perhaps you can use an older Termux?
is it hard to setup lazarus and cross-compile from linux i386 to arm64?
The hard part is to compile the correct freepascal cross compiler
For android 64 bit, it might be completely unsupported: http://forum.lazarus.freepascal.org/index.php/topic,36914.msg270101.html#msg270101
Occasionally
Perhaps you can use an older Termux?
The hard part is to compile the correct freepascal cross compiler For android 64 bit, it might be completely unsupported: http://forum.lazarus.freepascal.org/index.php/topic,36914.msg270101.html#msg270101 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zpimp
Feb 1, 2018
i have managed to run the androidarm binary, downloading and unpacking straight from sourceforge
time ./xidel --help still takes 6-7 seconds, and time says 0.09s
last time it was the hosts file but now the hosts file is 2 lines, maybe its cause aarch64
its working i extracted data from a downloaded html
pc(i386): 0.053s
android(aarch64):0.2s
performance seems about right
actually showing the help takes 3 times as much compared to doing actually work
i assume fpc bug
2nd edit:
according to termux github, unset LD_PRELOAD its needed, before running 32bit binaries
termux/termux-app#567
thanks again for all your help
zpimp
commented
Feb 1, 2018
•
|
i have managed to run the androidarm binary, downloading and unpacking straight from sourceforge its working i extracted data from a downloaded html actually showing the help takes 3 times as much compared to doing actually work 2nd edit: thanks again for all your help |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Invictaz
commented
Feb 12, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
I have uploaded a new 32 bit build |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zpimp
commented
Mar 10, 2018
|
thank you |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Invictaz
Mar 10, 2018
@zpimp How did you get Xidel working on a 64bit Android device? Chmod+x doesn't work. It seems it has also a problem with OpenSSL
Invictaz
commented
Mar 10, 2018
|
@zpimp How did you get Xidel working on a 64bit Android device? Chmod+x doesn't work. It seems it has also a problem with OpenSSL |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zpimp
Mar 10, 2018
use termux
i have put it in /data/data/com.termux/files/home
from there chmod works
before running xidel, you have to type the command "unset LD_PRELOAD"
then to run xidel : "./xidel the rest of yout command"
for downloading i use wget/curl with parameter to ignore certificates
curl -L -k -H "accept-encoding: gzip" -o file2.html --compressed http://youtube.com
after using "unset LD_PRELOAD", if you try to pkg update (termux command) and gives error, you have to change it back "set LD_PRELOAD" , iirc
post back if you have more problems
zpimp
commented
Mar 10, 2018
|
use termux for downloading i use wget/curl with parameter to ignore certificates after using "unset LD_PRELOAD", if you try to pkg update (termux command) and gives error, you have to change it back "set LD_PRELOAD" , iirc post back if you have more problems |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Invictaz
Mar 10, 2018
@zpimp it seems to work from that directory, great
64 bit phone
But how to run it as command? Because the install.sh does not install it to that /files/home directory.
Invictaz
commented
Mar 10, 2018
•
|
@zpimp it seems to work from that directory, great 64 bit phone But how to run it as command? Because the install.sh does not install it to that /files/home directory. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zpimp
Mar 10, 2018
just run it from there, even with root, i dont know if you can copy it to bin, cause system partition is mounted as readonly
zpimp
commented
Mar 10, 2018
|
just run it from there, even with root, i dont know if you can copy it to bin, cause system partition is mounted as readonly |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Invictaz
Mar 10, 2018
I had the install.sh running but unsure if it is able to install in the $HOME directory. Maybe I need to modify it.
Invictaz
commented
Mar 10, 2018
|
I had the install.sh running but unsure if it is able to install in the $HOME directory. Maybe I need to modify it. |
benibela
closed this
Mar 16, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Invictaz
commented
Mar 16, 2018
|
It needs to run from the directory Zpimp suggested. Then it runs |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zpimp
Sep 18, 2018
0.9.8 and 0.9.6 dont work on android 8.1 oreo 64 bit
with error
an unhandled exception occurred at $E854C0B2:
EAccessViolation: Access violation
i looked it up and seems to be an fpc issue
https://www.google.ro/search?q=free+pascal+compiler+android+oreo+unhandled+exception+occurred+at
it seems to be a syntax thing?
zpimp
commented
Sep 18, 2018
•
|
0.9.8 and 0.9.6 dont work on android 8.1 oreo 64 bit with error i looked it up and seems to be an fpc issue https://www.google.ro/search?q=free+pascal+compiler+android+oreo+unhandled+exception+occurred+at it seems to be a syntax thing? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
benibela
Sep 19, 2018
Owner
Pretty much any crash is reported as unhandled exception/access violation. The address $E854C0B2 is the important part.
Can you run it with gdb? Or strace xidel ?
|
Pretty much any crash is reported as unhandled exception/access violation. The address $E854C0B2 is the important part. Can you run it with gdb? Or |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zpimp
Sep 20, 2018
https://transfer.sh/EDJpd/stxd.log
its 6k lines, i dont use hosts, now i use dns66 dont know if thats the cause
(block ads by dns queries)
zpimp
commented
Sep 20, 2018
|
https://transfer.sh/EDJpd/stxd.log its 6k lines, i dont use hosts, now i use dns66 dont know if thats the cause |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
benibela
Sep 20, 2018
Owner
Is that with xidel 0.9.8?
open("/proc/self/maps", O_RDONLY|O_LARGEFILE) = 3
read(3, "b4ce5000-b4f1a000 r-xp 00000000 "..., 256) = 256
...
read(3, "00000 00:00 0 \nef510000-ef68b000"..., 256) = 256
So b4ce5000 and ef510000 are the offsets
EAccessViolation: Access violation
$EF5B40B2
$B4DA0A70
$B4D32860
Subtracting b4ce5000 or ef510000 gives A40B2, BBA70 and 4D860, latter two which should mean CWSTRING_$$_ANSI2WIDEMOVE$PCHAR$WORD$WIDESTRING$LONGINT and SYSTEM_$$_ASSIGN$TEXT$RAWBYTESTRING in xidel 0.9.8, which would mean it crashes in /system/lib/libicui18n.so when trying to convert a file name to unicode
Are you loading a file? Can you call addr2line -f -e /system/lib/libicui18n.so 0xA40B2 ?
|
Is that with xidel 0.9.8?
So b4ce5000 and ef510000 are the offsets
Subtracting b4ce5000 or ef510000 gives A40B2, BBA70 and 4D860, latter two which should mean Are you loading a file? Can you call |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zpimp
Sep 22, 2018
addr2line -f -e /system/lib/libicui18n.so 0xA40B2
it says
_ZNK6icu_5821CollationRootElements5findPEj
??:?
zpimp
commented
Sep 22, 2018
|
addr2line -f -e /system/lib/libicui18n.so 0xA40B2 it says |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zpimp
Sep 25, 2018
this is what i got from gdb/run/bt
db) run
Starting program: /data/data/com.termux/files/home/xd/xidel
warning: Unable to determine the number of hardware watchpoints available.
warning: Unable to determine the number of hardware breakpoints available.
Program received signal SIGSEGV, Segmentation fault.
0xf6ff00b2 in icu_58::Collator::createInstance(icu_58::Locale const&, UErrorCode&) ()
from /system/lib/libicui18n.so
(gdb) bt
#0 0xf6ff00b2 in icu_58::Collator::createInstance(icu_58::Locale const&, UErrorCode&) ()
from /system/lib/libicui18n.so
#1 0xf70879b4 in ucol_open_58 ()
from /system/lib/libicui18n.so
#2 0xaab649d0 in CWSTRING_$$INITTHREADDATA ()
#3 0xaab64a88 in CWSTRING$$GETCONVERTER$WORD$$POINTER ()
#4 0xaab64e58 in CWSTRING$$ANSI2UNICODEMOVE$PCHAR$WORD$UNICODESTRING$LONGINT ()
#5 0xaab65a70 in CWSTRING$$ANSI2WIDEMOVE$PCHAR$WORD$WIDESTRING$LONGINT ()
#6 0xaaaef0c4 in fpc_ansistr_to_widechararray
()
#7 0xaaaf7860 in SYSTEM$$ASSIGN$TEXT$RAWBYTESTRING ()
#8 0xaaaf78e8 in SYSTEM$$ASSIGN$TEXT$SHORTSTRING ()
#9 0xaab66dbc in DL$$DLADDR$POINTER$PDL_INFO$$--Type for more, q to quit, c to continue without paging--
LONGINT ()
#10 0xaab61268 in SYSUTILS$$INITANDROID ()
#11 0xaab61320 in SYSUTILS$$_init$ ()
#12 0xaaaf3e2c in fpc_initializeunits ()
#13 0xaaade430 in main () at xidel.pas:77
(gdb)
zpimp
commented
Sep 25, 2018
|
this is what i got from gdb/run/bt db) run Program received signal SIGSEGV, Segmentation fault. |
benibela
reopened this
Sep 25, 2018
benibela
added
the
help wanted
label
Sep 25, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
benibela
Sep 25, 2018
Owner
That is a much better trace than strace.
But still the only thing I can gather from it is some trouble with libicui18n
|
That is a much better trace than strace. But still the only thing I can gather from it is some trouble with libicui18n |

zpimp commentedJan 31, 2018
are you still releasing android binaries ?
it seems newer androids are 64bit
CANNOT LINK EXECUTABLE: "/data/data/com.termux/files/usr/lib/libtermux-exec.so" is 64-bit instead of 32-bit
page record for 0xf727a04c was not found (block_size=64)
is it hard to setup lazarus and cross-compile from linux i386 to arm64?