freenode/#ecl - IRC Chatlog
Search
11:13:47
thijso
I'm getting a strange fatal exception in my android apk with ecl: it's telling me dlopen failed because: cannot location symbol "fread_unlocked" referenced by "../libecl.so", but if I grep in ecl src there is no mention of fread_unlocked whatsoever, only fread ?
11:14:38
jackdaniel
it looks like your ndk on the host and android device differ (your ndk is newer)
11:23:10
thijso
hmmm... I tried building for a higher sdk (28), but then I get installing... Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl455146265.tmp/base.apk (at Binary XML file line #7): Requires newer sdk version #28 (current version is #25)]
13:27:22
thijso
Just to mention it: the problem was the android ndk platform version ecl was compiled against. I had it compiled against platform 29, which has fread_unlocked, but lower platform versions don't, so that breaks it...
16:59:48
thijso
Uhm, I'm certain this is somewhere online, but I'm not finding the right google-fu right now, apparently. How do I call a c/c++ function from ECL? I've found a very old mention of cl_def_c_function, but that seems reversed? Should I use def-function in lisp? A pointer to an example would be great...