Lazarus

Installation => Windows (32/64) => Topic started by: Sann-X! on August 22, 2018, 11:41:08 am

Title: Cross compile for arm on Windows 7 64 bits
Post by: Sann-X! on August 22, 2018, 11:41:08 am
Hi,

I want develope and build arm-based (orange pi) project on Windows. I used fpcup by this tutorial (http://wiki.lazarus.freepascal.org/fpcup#Linux_ARM_cross_compiler). But no luck. Last strings in log:
Quote
fpclazup: info: FPCCrossInstaller (BuildModule: FPC): Building module FPC...
fpclazup: info: FPCCrossInstaller (BuildModule: FPC): We have a FPC source (@ C:\development\fpctrunk) with version: 3.3.1
fpclazup: ERROR: TAny_linux-arm: searched but did not find any binary utilities !!
fpclazup: ERROR: Failed to get crossbinutils
fpclazup: info: TAny_linux-arm: found correct library in directory C:\development\cross\lib\arm-linux
Fpclazup failed.
Please check log for details. Possible troubleshooting steps:
First action :
Run fpcup again with --verbose and check for make, lazbuild errors etc.
Run fpcup again also in case of incomple download due to SVN errors.

If that does not work ... last resort action :
Remove all files from install-directory, and try again
fpclazup: info: 22.08.2018 8:47:36: fpcup finished.
How to fix it?
Title: Re: Cross compile for arm on Windows 7 64 bits
Post by: DonAlfredo on August 22, 2018, 12:06:16 pm
If you can, please use fpcupdeluxe ! Its the GUI-version of fpcup. And it gets more often updated !
However, I will update fpcup one of these days.

 https://github.com/newpascal/fpcupdeluxe/releases/latest
http://forum.lazarus.freepascal.org/index.php/topic,34645.0.html
Title: Re: Cross compile for arm on Windows 7 64 bits
Post by: Sann-X! on August 22, 2018, 01:13:38 pm
Thanks. I did this:
1) setup stable FPC and Lazarus with fpcupdelux on my Windows 7 machine
2) install cross-compiler cpu=arm and os=linux
All steps was success.
But now how I can build arm-project in Lazarus?
Title: Re: Cross compile for arm on Windows 7 64 bits
Post by: DonAlfredo on August 22, 2018, 01:23:38 pm
Set linux and arm as project targets !
See included screenshot.
Title: Re: Cross compile for arm on Windows 7 64 bits
Post by: Sann-X! on August 22, 2018, 01:37:03 pm
I seted os and cpu but after click OK in Project options I get error  (http://prntscr.com/klljaf)
Title: Re: Cross compile for arm on Windows 7 64 bits
Post by: Sann-X! on August 22, 2018, 01:47:40 pm
I'm wrong. I started Lazarus created by fpcup. But if I start Lazarus created by fpcupdeluxe all is OK.
Title: Re: Cross compile for arm on Windows 7 64 bits
Post by: DonAlfredo on August 22, 2018, 02:36:17 pm
Good !

In the meantime, I have updated fpc[laz]up.
https://github.com/LongDirtyAnimAlf/Reiniero-fpcup/releases/latest

Have fun.
TinyPortal © 2005-2018