-
Notifications
You must be signed in to change notification settings - Fork 36
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
Alpine: some dev packages raise triggers that fail #36
Comments
These packages run binaries for the target arch during installation so the triggers need to run through the emulation layer. You can install emulators with https://github.com/tonistiigi/binfmt
Notice this is only for the package trigger scripts. Your xx compilation will not go through qemu. Usually, this is not needed as packages you should install with An alternative is to use Lines 104 to 106 in d69b72b
|
Thanks for you answer! Unfortunately I still hit some problem at the cmake step:
I installed: |
|
Thanks, that did the trick! |
Sorry, hijacking this thread again... This time, it looks like pkg config or cmake cannot find any dependency.
I tried to play with CMAKE_MODULE_PATH with no success. Any clue? |
I think setting What you need should be edit: you shouldn't also need any |
Indeed for Well For pkgconfig based stuff, I added the env var PKG_CONFIG_PATH=/$(xx-info)/usr/lib/pkgconfig to make them work (things like Now I have custom .cmake scripts that fail, I will investigate them as they are very likely to be badly written. Thanks again for your valuable help! |
Hm. I changed this to use sysroot_dir in 95fac1d#diff-cae662172fd450bb0cd710a769079c05bfc5d8e35efa6576edc7d0377afdd4a2 that worked better. I wonder what is different for you. |
Another problem: it seems It cannot create static libraries, I get this:
|
Another problem: I don't understand why it cannot find a header file: I use this in my cmake file: And then: (I pushed the current state of my stuff in https://github.com/epoupon/lms/blob/cross-compile/Dockerfile-build) |
Looks like you are missing Haven't looked at the include issue yet |
For the include, if the error you get is in cmake resolution (not in compilation) then I think you need |
Hello,
I am trying to cross build my application using your project.
Unfortunately I have dependencies to rather big packages like
libboost-dev
orffmpeg-dev
and they trigger things like that:Do you know a solution for this problem?
The text was updated successfully, but these errors were encountered: