Conversation
|
@Frenzie I assume you have tested this on an android device? What NDK version did you test with? |
|
I think this patch fixed the random build failure on gitlab! Although I still don't know why it would randomly build libraries without version suffixes. It also explains why it was working for me previously. I really wonder where is the entropy coming from :( |
|
How does it explain that it was working for you?
…On Apr 24, 2017 08:41, "Qingping Hou" ***@***.***> wrote:
I think this patch fixed the random build failure on gitlab! Although I
still don't know why it would randomly build libraries without version
suffixes. It also explains why it was working for me previously. I really
wonder where is the entropy coming from :(
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#482 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMYBQIv9ICHlZsSEFLhqzQ4ciZMHv1tks5rzEQfgaJpZM4M6HIX>
.
|
|
Because I was using the exact same toolchain to build android without issue and I was like why the hell is it broken for me now. If it will randomly produce builds without version suffix, then it sort of makes sense. |
|
Randomly produce versionless? Make sense? Lol!
…On Apr 24, 2017 08:50, "Qingping Hou" ***@***.***> wrote:
Because I was using the exact same toolchain to build android without
issue and I was like why the hell is it broken for me now. If it will
randomly produce builds without version suffix, then it sort of makes sense.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#482 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMYBbd3CHUSnxchfns4zwL5ESQS5rvoks5rzEYbgaJpZM4M6HIX>
.
|
|
Makes sense in the sense that it breaks my local build ;) |
|
This definitely will not work. On Android we use a custom It won't find these two libs any more as the version suffixes are omitted. One solution might be making https://github.com/koreader/android-luajit-launcher/blob/master/assets/dl.lua#L51 handling |
|
Weird, why is it linked to |
|
Generally the file without version suffix is just a soft link to the one with suffix and the soname certainly contains version suffix. |
|
I know that's the case for standard gnu toolchain. I was under the impression that android NDK toolchain actually produces some of the dynamic libraries without the suffix. But I might completely wrong since the last time I touched android build was a long time ago ;) |
|
It can be easily verified with this:
|
|
How old is libtool? See e.g. http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=8eeeb00daef8c4f720c9b79a0cdb89225d9909b6 and moritz-wundke/Boost-for-Android#44 |
|
I think there are couple options here:
|
I'm not vehemently opposed or anything, but doing something like that on all platforms just for Android gets a definite "meh" from me.
Sounds good!
That makes the linker unhappy (which is what this PR was about) so I'm not sure if that's really an option. |
|
It turns out to be the result of different versions of libtool that makes the discrepancy. Ubuntu 16.04 comes with libtool 2.4.6 which will generate a @houqp And we should upgrade the libtool in the building machine too. ref: https://www.gnu.org/software/libtool/ |
Tried that, although it can load the freetype lib, it still failed on loading mupdf with system |
Fixes koreader/koreader#2647