Recent

Author Topic: Cross compile for arm on Windows 7 64 bits  (Read 1422 times)

Sann-X!

  • New member
  • *
  • Posts: 21
Cross compile for arm on Windows 7 64 bits
« 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. 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?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1013
Re: Cross compile for arm on Windows 7 64 bits
« Reply #1 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

Sann-X!

  • New member
  • *
  • Posts: 21
Re: Cross compile for arm on Windows 7 64 bits
« Reply #2 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?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1013
Re: Cross compile for arm on Windows 7 64 bits
« Reply #3 on: August 22, 2018, 01:23:38 pm »
Set linux and arm as project targets !
See included screenshot.

Sann-X!

  • New member
  • *
  • Posts: 21
Re: Cross compile for arm on Windows 7 64 bits
« Reply #4 on: August 22, 2018, 01:37:03 pm »
I seted os and cpu but after click OK in Project options I get error

Sann-X!

  • New member
  • *
  • Posts: 21
Re: Cross compile for arm on Windows 7 64 bits
« Reply #5 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.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1013
Re: Cross compile for arm on Windows 7 64 bits
« Reply #6 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.