Forum > Third party
Fpcupdeluxe
BosseB:
Lazarus (latest) installed by fpcupdeluxe, how to configure for cross-compilation towards RaspberryPi4 with ARM7L CPU?
I have installed Lazarus 2.2.4 with Fpc 3.2.2 and configured it like I need on Windows 10.
It was OK after I figured out how fpcupdeluxe works...
Now I would like to configure it with cross-compilation to RPi4 which uses ARM7L processor.
I have fetched the units dir content (.ppu and .o files) from the RPi4 where the same Lazarus/Fpc has been installed.
On Windows I have created a subdir named fpc\3.2.2\units\arm-linux into which the content of the fpc units dir on the RPi4 has been copied and also dir lazarus\units\arm-linux into which the RPi4 lazarus units/arm-linux dir content has been copied.
So now I am ready to do the remaining configuration to enable cross-compilation for the application to RPi4 from Windows.
I assume there is some additional config needed but I don't know what....
It does not work right now to set the target to Linux and CPU family to arm so there is possibly some other setting that also needs to be modified....
My guess is:
1) I should create a dir: C:\Programs\LazFpc\2.2.6\fpc\bin\arm-linux
2) I should copy the file C:\Programs\LazFpc\2.2.6\fpc\bin\x86_64-win64/fpc.conf to the new dir above.
3) I should edit the fpc.conf file to reflect what should be done on target ARM7L, but how?
4) Then????
Any ideas what to do?
Or else can fpcupdeluxe fix the complete configuration such that it will work to cross-compile given that I have collected the unit files from the RPi4?
EDIT:
Seems like I have totally misunderstood how this works...
Apparently one needs a separate cross-compiler for the arm target and then some extra files on top of that. No real guidance found on how to accomplish it, so I am inclined to give up and instead continue running native dev environments on the target platforms.
This means that I will transfer the sources via Subversion and build on the target like I have done up until now. Losing too much time trying to install cross functionality.
fabiopesaju:
How to proceed when an error occurs when installing a module/component?
I'm on linux, fedora. I successfully installed lazarus and fpc, using the "fixes" version. I started to install (through fpcupdeluxe) some components with success. when I went to install RX, it showed some errors and didn't compile.
I didn't want to have to delete everything and start from scratch. is there any way to take the rx out of process and recompile what i already have?
ASBzone:
--- Quote from: BosseB on March 26, 2023, 05:43:50 pm ---Now I would like to configure it with cross-compilation to RPi4 which uses ARM7L processor.
--- End quote ---
Using fpcupdeluxe, you should just be able to go to the cross tab (as opposed to the basic tab where the app initially places you).
Then you select your targets and press install.
I install on Windows x64, with cross to Windows x32 and Linux-Arm (for Pi development)
ASBzone:
--- Quote from: fabiopesaju on April 05, 2023, 04:10:08 pm ---How to proceed when an error occurs when installing a module/component?
--- End quote ---
Consider opening a ticket here: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues
tetrastes:
--- Quote from: ASBzone on April 05, 2023, 07:36:05 pm ---I install on Windows x64, with cross to Windows x32
--- End quote ---
Just in case, be careful with this, because 64-bit ppcross386.exe generates different code for Extended type, than native 32-bit ppc386.exe.
And fpcupdeluxe warns about that.
Navigation
[0] Message Index
[#] Next page
[*] Previous page