Recent

Author Topic: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?  (Read 3076 times)

dieselnutjob

  • Full Member
  • ***
  • Posts: 217
install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« on: July 12, 2020, 12:04:32 pm »
Hi
Yesterday my Pinebook Pro arrived.  By default it runs Manjaro and it has an ARM64 processor.
I looked in the package manager and the only package I can find is fpc-src.
I am familiar with Windows and Debian (x86) but I know nothing about Manjaro.
I asked on the Manjaro forum but no replies yet.
Can anyone suggest what the best way forward is?
The only ideas I can think of are to cross compile fpc from Windows or x86 Linux, or, to rip the binary files out of a Debian deb file.
Debian seems to support fpc 3.0.4 as stable or 3.2 as experimental on ARM64.
Any Manjaro experts on here can help?
thanks, DNJ

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #1 on: July 12, 2020, 01:48:26 pm »
I'm not a Manjaro ARM user so package availablility might differ from x86_64. GUI package manager is sometimes misleading, so try asking the package manager:
Code: Bash  [Select][+][-]
  1. $ pacman -Ss lazarus
  2.  
If there's one (or two), just install that (sudo pacman -S <the package name>), the dependencies should be pulled automatically.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #2 on: July 12, 2020, 02:18:34 pm »
Wild speculation !  Could you download fpc-3.2.0.aarch64-linux.tar from https://sourceforge.net/projects/freepascal/files/Linux/3.2.0/
and install it.  Then download the Lazarus source and build ?

Docs about just where the fpc install kits are usable are a bit rare but might be worth a try I'd suggest.  There are instructions for installing FPC from one of these kits here https://wiki.freepascal.org/Installing_the_Free_Pascal_Compiler

(and do please keep us informed as to how things panned out.)

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dieselnutjob

  • Full Member
  • ***
  • Posts: 217
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #3 on: July 12, 2020, 02:24:44 pm »
Wild speculation !  Could you download fpc-3.2.0.aarch64-linux.tar from https://sourceforge.net/projects/freepascal/files/Linux/3.2.0/
and install it.  Then download the Lazarus source and build ?

Docs about just where the fpc install kits are usable are a bit rare but might be worth a try I'd suggest.  There are instructions for installing FPC from one of these kits here https://wiki.freepascal.org/Installing_the_Free_Pascal_Compiler

(and do please keep us informed as to how things panned out.)

Davo

yes I came to the same conclusion.

out of the box it complained about missing 'as' command.  The Manjaro package 'binutils' fixed that.

at least fpc 3.2 works now, so I can probably compile Lazarus from source

the thread on Manjaro https://forum.manjaro.org/t/how-to-install-fpc-and-lazarus-on-pinebook-pro-arm-64-bit/152872

dieselnutjob

  • Full Member
  • ***
  • Posts: 217
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #4 on: July 12, 2020, 02:34:08 pm »
so what is the best way to install Lazarus from source?
as the Pinebook Pro is running KDE I suppose the qt variant would make more sense?

I don't need the latest bleeding edge version, just something that is stable on top of fpc 3.2

dieselnutjob

  • Full Member
  • ***
  • Posts: 217
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #5 on: July 12, 2020, 02:37:33 pm »
I guess I just use SVN as described here https://wiki.freepascal.org/Getting_Lazarus ?

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #6 on: July 13, 2020, 05:16:59 am »
https://wiki.freepascal.org/Installing_Lazarus_on_Linux, more specifically https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source

I suggest you go for Lazarus 2.0.10, its only a few days old.  And almost certainly rock solid.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dieselnutjob

  • Full Member
  • ***
  • Posts: 217
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #7 on: July 13, 2020, 10:35:50 am »
I got 2.1.0 from SVN and it works well.

In case anyone else lands here, you need these packages installed first:-
binutils
make
subversion
qt5pas

fpc-3.2.0.source.tar.gz from https://www.freepascal.org/down/source/sources.html

fpc installer from here https://www.freepascal.org/down/aarch64/linux-hungary.html

after downloading Lazarus using SVN I used this command
Code: Pascal  [Select][+][-]
  1. make LCL_PLATFORM=qt5

what isn't clear to me is if I should have used the 'bigide' option

If someone can answer that then I will write it all up as a wiki page on the Pinebook site.

By the way it's a really nice laptop.  The battery life is significantly better than my Lenovo T420s and it's much slimmer and lighter, and it has a nice keyboard.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #8 on: July 14, 2020, 03:14:11 pm »
what isn't clear to me is if I should have used the 'bigide' option

If someone can answer that then I will write it all up as a wiki page on the Pinebook site.

By the way it's a really nice laptop.  The battery life is significantly better than my Lenovo T420s and it's much slimmer and lighter, and it has a nice keyboard.

bigide will get you some extra tools in the IDE that, personally, I would not be without.  But if you don't need them, why worry ?

Your install, including the dependencies you mention, is just another Linux install. Its documented on the page I mentioned and maybe thats where any additional info belongs ?    We do have quite a large collection of pages about specific Linux distros / hardware already, honestly, they are not very helpful unless there is something wildly different about them.  But I would be the last person to discourage anyone from adding documentation !

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #9 on: July 14, 2020, 04:08:49 pm »
what isn't clear to me is if I should have used the 'bigide' option
You can install any package from the "bigide" target yourself using the Install/Uninstall packages window.
These are the packages listed in Makefile :
Code: [Select]
# Options to compile an IDE with a lot of packages
BIG_IDE_OPTIONS=-dBigIDE $(DEFAULT_IDE_OPTIONS) \
  -Fu../components/synedit/design/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/lazcontrols/design/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/rtticontrols/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/cairocanvas/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/printers/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/printers/design/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/tdbf/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/turbopower_ipro/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/turbopower_ipro/design/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/fpcunit/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/fpcunit/ide/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/projecttemplates/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/sqldb/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/sdf/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/fpdebug/lib/$(CPU_TARGET)-$(OS_TARGET) \
  -Fu../components/lazdebuggers/cmdlinedebuggerbase/lib/$(CPU_TARGET)-$(OS_TARGET) \
  -Fu../components/lazdebuggers/lazdebuggerlldb/lib/$(CPU_TARGET)-$(OS_TARGET) \
  -Fu../components/lazdebuggers/lazdebuggerfplldb/lib/$(CPU_TARGET)-$(OS_TARGET) \
  -Fu../components/lazdebuggers/lazdebuggerfp/lib/$(CPU_TARGET)-$(OS_TARGET) \
  -Fu../components/leakview/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/memds/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/tachart/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/todolist/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/datetimectrls/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/datetimectrls/design/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/jcf2/IdePlugin/lazarus/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/chmhelp/packages/help/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/chmhelp/packages/idehelp/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/instantfpc/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/externhelp/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/PascalScript/Source/lib/$(CPU_TARGET)-$(OS_TARGET) \
  -Fu../components/macroscript/lib/$(CPU_TARGET)-$(OS_TARGET) \
  -Fu../components/lclextensions/lib/$(CPU_TARGET)-$(OS_TARGET)-$(LCL_PLATFORM) \
  -Fu../components/virtualtreeview/lib/$(CPU_TARGET)-$(OS_TARGET)-$(LCL_PLATFORM) \
  -Fu../components/onlinepackagemanager/lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
  -Fu../components/pas2js/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)

Quote
By the way it's a really nice laptop.  The battery life is significantly better than my Lenovo T420s and it's much slimmer and lighter, and it has a nice keyboard.
Interesting machine! And popular, too. Seems to be out of stock now. 2 GB of RAM and 16 GB eMMC are not much though.
Is OS installed into the eMMC drive or is it always booted from MicroSD Card? In the latter case 16 GB eMMC could even be enough.
Does it have a propeller (fan)? I have a fetich for passively cooled mini-PCs. I know a passively cooled laptop is more difficult to make because its keyboard is embedded and  its top surface cannot work as a heatsink.
I wonder if they plan to make localized versions (keyboards) for different languages.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dieselnutjob

  • Full Member
  • ***
  • Posts: 217
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #10 on: July 14, 2020, 04:25:01 pm »
Interesting machine! And popular, too. Seems to be out of stock now. 2 GB of RAM and 16 GB eMMC are not much though.
Is OS installed into the eMMC drive or is it always booted from MicroSD Card? In the latter case 16 GB eMMC could even be enough.
Does it have a propeller (fan)? I have a fetich for passively cooled mini-PCs. I know a passively cooled laptop is more difficult to make because its keyboard is embedded and  its top surface cannot work as a heatsink.
I wonder if they plan to make localized versions (keyboards) for different languages.

I think that you were looking at the Pinebook.  I have the Pinebook Pro.  It's significantly nicer and what I would recommend.
https://www.pine64.org/pinebook-pro/
4G RAM and a 64 GB eMMC.  The eMMC is easily swapped for a larger one and you can also buy an adapter for NVMe SSD.
Manjaro pre-installed on the 64 GB eMMC.
Yesterday I put Debian on an SD card.  If I put the card in, it boots Debian, if not then it boots Manjaro.
Totally fanless and silent.
The only keyboard choices currently are UK or US.
Arrive from Hong Kong a couple of weeks after placing my order, and I had to pay £50 to DHL in import duties but I was expecting that.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #11 on: July 14, 2020, 05:26:15 pm »
I believe Rockchip RK3399 SoC is powerful but the laptop is still fanless.
Nice!
I always wondered why table computers and laptops need buzzing propellers while tablets and hi-end phones don't. ARM is simpler and apparently makes a difference.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dieselnutjob

  • Full Member
  • ***
  • Posts: 217

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: install lazarus and/or fpc on Pinebook Pro Manjaro ARM64 ?
« Reply #13 on: August 06, 2020, 03:17:09 pm »
I believe Rockchip RK3399 SoC is powerful but the laptop is still fanless.
Nice!
I always wondered why table computers and laptops need buzzing propellers while tablets and hi-end phones don't. ARM is simpler and apparently makes a difference.
It's due to x86 legacy. It would be a bad bet with guaranteed lose if somehow x86 makes a breaking revision. Anyway, when ARM gets into the same performance territory, it might need a fan eventually. Perhaps just a smaller one. I have a RK3399 powered Mini PC, it's fanless, but its performance is not stable. Running benchmarks a couple of times will produce differing result every time, with large enough gap between the best and worst due to its old 28nm manufacturing process causing significant thermal throttling. Can't beat the same fanless Intel Celeron N4100 with lower TDP (N4100: 6W, RK3399: 7W), although Intel one can boost up to 20W when both CPU and GPU are stressed to the max.

 

TinyPortal © 2005-2018