-
Notifications
You must be signed in to change notification settings - Fork 94
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
How to crosscompile armhf from aarch64 linux? #572
Comments
I have added binutils for armhf. |
You are on a aarch64 system. To compile to an arm system, you needs appropriate libs. Fpcupdeluxe has auto -downloaded and -installed a set of libs for an arm system. These libs, however, do not include libs for gtk3. So, you need to copy the appropriate libs from your arm system to the cross-libs directory on your aarch64 system, so the linker on your aarch64 system can find them and use them while linking. |
I archive my copied file I put to I also tried to cross-compile that from Windows, seems only GTK3 that doesn't work for cross-compile to ARM or AArch64, I'm using Ubuntu 22.04 ARM. But when compiling directly with GTK3 from AArch64 to AArch64 is no problem. I also do the same with X86_64 cross-compiling from Windows X86_64 to Linux X86_64, GTK3 works fine. I think something doesn't looks right in ARM and GTK3 when cross compiling. GTK3 crosscompile Last Edit: |
Please note. |
No, they're all correct names. I can replicate the same method for Linux X86_64 easily by copying these libs based from the error message and they'll work fine. Except, it doesn't work in ARM. But, I agree this is seems not an FPCUpDeluxe issue. Should I close this issue? |
@afuriza The LCL currently supports:
There is an experimental support for:
And in GTK3 Interface: Currently it's in alpha status That may be the reason why gtk3 libraries are not included in the cross-compile. However, as @LongDirtyAnimAlf said, you can manually include the ones you need from your OS. But it's a tedious job, going through each library and their respective dependencies.
This has nothing to do with that other issue. |
As I said, do you read that properly? I already done that copying each file. Do you even open the link I provided? That's all file required, same count, same library name. It work on X86_64 but not on ARM and AArch64. Alpha status doesn't matter because it works on direct compile but not cross compile on ARM EVEN THOUGH I COPIED THE FILES LIKE I DO IN X86_64. Read this:
See this |
Respectfully, it does matter that the LCL gtk3 widget type is experimental and in alpha stage, since that it means that there are still a lot of things that don't work, regardless of the type of x86 architecture. arm or arm64. And it has nothing to do with fpcupdeluxe. |
@rcla You seem don't read and won't read, no matter how long I typed, I'll close this. |
I've tried to install cross compiler from aarch64 but have no success because there's no crossbins provided by default on FPCUpDeluxe Github...
So, I install all binutils, cross-build tools, including gtk2.0 and gtk3.0 dev for armhf libraries, I successfully run fpcupdeluxe-arm-linux 32bit arm but still can't compile the FPC with error:
unrecognized option -meabi=5
Maybe someone can give an advice to build FPC & Laz for arm from aarch64?
Thanks~
The text was updated successfully, but these errors were encountered: