Skip to content
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

[question] cross compile meson packages from CCI #10285

Open
1 task done
andiwand opened this issue Jan 7, 2022 · 7 comments
Open
1 task done

[question] cross compile meson packages from CCI #10285

andiwand opened this issue Jan 7, 2022 · 7 comments

Comments

@andiwand
Copy link

andiwand commented Jan 7, 2022

I tried to cross compile fribidi and glib from CCI and noticed that it does not work out of the box.

After searching I found this closed ticket #4529 which introduced MesonToolchain and a new Meson class documented here https://docs.conan.io/en/latest/reference/conanfile/tools/meson.html.

Now I wondered what is best practice to enable cross compile for meson packages on CCI.
I could refactor the existing recipes to use the new MesonToolchain and Meson class but those are experimental and the interface of Meson seems to be incompatible. (new vs old)

@SpaceIm
Copy link
Contributor

SpaceIm commented Jan 9, 2022

They were several attempt in CCI to support cross-build in Meson based recipes, but without luck as you can see in conan-io/conan-center-index#6678 and conan-io/conan-center-index#7360. I think there is no straightforward solution currently without automagic handling of https://mesonbuild.com/Cross-compilation.html in Meson helpers.

/cc @SSE4

@SSE4
Copy link
Contributor

SSE4 commented Jan 9, 2022

there is some ongoing effort in #10174 and #9710

@jwillikers
Copy link
Contributor

A couple of related issue reports in Conan Center: conan-io/conan-center-index#11332 and conan-io/conan-center-index#11362

@andiwand
Copy link
Author

andiwand commented Jul 6, 2022

thank you @jwillikers ! but for now we have to go with custom recipes right? no CCI meson cross builds there as far as I can tell

@jwillikers
Copy link
Contributor

@andiwand At the moment, I'm not aware of any that use the new MesonToolchain generator in CCI. I'm not sure when that will be possible, but perhaps before too long it will be allowed as things transition to supporting Conan V2.

For the Wayland package specifically, I have a fork available here that uses the new MesonToolchain generator and can be used to cross-compile the package. It requires Conan version 1.50.0 at this time.

@SSE4
Copy link
Contributor

SSE4 commented Jul 7, 2022

I have an ongoing effort to convert GLib recipe to use MesonToolchain: conan-io/conan-center-index#11053
still, there are several flaws in conan cliient itself, and recipe needs several workarounds. I've opened some issues, hopefully in 1.51 it will be much better:
#9713
#11398
#10683
#11397

@andiwand
Copy link
Author

andiwand commented Jul 7, 2022

thank you @jwillikers and @SSE4 ! I will use your resources and try to create a recipe that works for me until conan catches up on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants