-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Glib building with meson for Android #1064
Conversation
OK, now I'm wondering where did libpcre(v8.39) came from. Are there any process which caches or builds pcre, or is it just a misconfiguration of pkg-config? |
Ah, you mean because it says |
I thinks this is most likely to be the case. Maybe manually setting pkg_config_libdir with env variable (when running isolated bash process for meson) could solve the issue. I'll test it by tomorrow and commit this again. |
Meson does indeed use the host's libpcre: That's because Since we cannot use a newer ubuntu CI image, and I don't want to compile meson myself, I thought it would be a good idea to simply use a recent ubuntu docker container and build in it. Well... it wasn't that simple. I could probably make it work, but it will probably take me yet another 4 hours to get it working... Ideally, it should be possible to run meson without libpcre is building fine already. |
Sanity check is about CC and CXX variables. when CC and CXX is set, then meson detects them as build machine's compiler(not cross compiler), so they tries to run arm binaries in x86. That's why sanity check is failing, and that's why I used env -i. |
VOILA!! OK, now you can check if fluidsynth works well with glib 2.71. As far as I know, there is no breaking API changes in glib 2.0, but there might be some unexpected problems like #1063. Now I'll do some post-processing before you wake up (since it's morning here now...) like cherry-picking your android-meson-glib, so keep in mind. |
Sounds like the Android NDK environment doesn't provide its own pkg-config wrapper as is customary, e.g. If one of those existed, you'd simply pass that as the pkg-config binary for Meson to use. |
Is that applicable for meson 0.53? If that's not the case, then it can't be used for this situation. The problem is solved BTW, by setting PKG_CONFIG_LIBDIR inside |
It's worked since Meson 0.25, which had a bugfix to stop hardcoding the string You may of course set (Either the wrapper edition of pkg-config, or the 0.54.0 |
Thanks @devingryu I've applied your change to my branch. Note that I had to remove the Also, when you don't provide libpcre, glib keeps downloading an older version of it. I prefer to compile it explicitly. I think we can close this PR. I'll apply it on master shortly. I'm too cautious to ship this with 2.2.6 though, because the Android CI pipelines are not yet running the unit tests. This is on the TODO list (#912). You already helped me a lot, thanks @devingryu ! |
Actually, I was working on it. But if you've already done it, then I shall close this PR.
Glad to hear that! |
Kudos, SonarCloud Quality Gate passed! |
Initial PR for testing build in Azure Pipelines.
Note. libpcre is now required lib in latest glib, so manual building of it should be added.