Recent

Author Topic: Cross-compiling under Raspberry Pi  (Read 4292 times)

duzi

  • Newbie
  • Posts: 1
Cross-compiling under Raspberry Pi
« on: July 14, 2014, 07:32:30 pm »
Hi all. I have little problem. Read all wiki, but still did not work. Have Windows 8 and installed FPC 2.6.4 + lazarus 1.2.4. Need compiling under Raspberry Pi. Could you write step by step what i need download and and where all this is install. Thanks.
PS: sorry for my bad english  :-[

kapibara

  • Hero Member
  • *****
  • Posts: 517
Re: Cross-compiling under Raspberry Pi
« Reply #1 on: July 16, 2014, 11:04:29 pm »
Hopefully someone else can tell you about cross compiling, or you have to search yourself. Lazarus runs fine on the RapBerry Pi though. Compiling that took 3 seconds on my usual computer took 10-20 seconds on the Raspberry. So thats one way.

Hi all. I have little problem. Read all wiki, but still did not work. Have Windows 8 and installed FPC 2.6.4 + lazarus 1.2.4. Need compiling under Raspberry Pi. Could you write step by step what i need download and and where all this is install. Thanks.
PS: sorry for my bad english  :-[
Lazarus trunk / fpc 3.0.4 / Debian 10 - 64 bit

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Cross-compiling under Raspberry Pi
« Reply #2 on: July 17, 2014, 11:44:03 am »
Read all wiki, but still did not work. Have Windows 8 and installed FPC 2.6.4 + lazarus 1.2.4. Need compiling under Raspberry Pi. Could you write step by step what i need download and and where all this is install.
I'm sorry, if you have searched the forum and have found no additional information to wiki page
http://wiki.lazarus.freepascal.org/Raspberry_Pi
and related cross-compiling pages, I think cross compiling may just not be for you.

Otherwise please indicate details (what operating systems used, what steps you followed, what you expected to see and what went wrong/what did you see). See first link in my signature for more info.

Sorry, I don't have a Raspberry Pi so can't help you further...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

lenz

  • New Member
  • *
  • Posts: 17
Re: Cross-compiling under Raspberry Pi
« Reply #3 on: October 19, 2014, 04:39:18 pm »
Cross-compiling didn't work for me either mainly because you need a handful of Linux libraries from Raspberry PI for linking. You may try getting precompiled one from Thaddy's web site.

Compiling from SVN sources on Raspberry PI works, but now you won't be able to obtain FPC on latest Raspbian image without some effort due to conflicting packages. Steps that worked for me was to uninstall "binutils", install "binutils" version 2.22-8, install FPC 2.6.0 (this is not needed, but it also installs a lot of packages that later will be needed for Lazarus), download Thaddy precompiled armhf binaries, with that compile FPC from trunk SVN (rev 28812 or earlier because of this issue) and then compile Lazarus from trunk SVN. Also, for this to work, you'll need to reallocate GPU memory to 16 Mb and increase swap size to around 1 Gb.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Cross-compiling under Raspberry Pi
« Reply #4 on: October 19, 2014, 04:40:42 pm »
Cross-compiling didn't work for me either mainly because you need a handful of Linux libraries from Raspberry PI for linking. You may try getting precompiled one from Thaddy's web site.
What about just copying them over from your Pi using winscp or something?

Edit: fixed messed up quoting
« Last Edit: October 19, 2014, 05:06:20 pm by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

lenz

  • New Member
  • *
  • Posts: 17
Re: Cross-compiling under Raspberry Pi
« Reply #5 on: October 19, 2014, 04:51:57 pm »
Cross-compiling didn't work for me either mainly because you need a handful of Linux libraries from Raspberry PI for linking. You may try getting precompiled one from Thaddy's web site.
What about just copying them over from your Pi using winscp or something?
Yes, that would probably work.