|Running forte on 64-bit Raspberry Pi 4 running Ubuntu 20.04.2 LTS [message #1839916]
||Thu, 01 April 2021 05:10
| Barry Dowdeswell
Registered: November 2018
I create all my 4diac applications on Linux (currently 64-bit Ubuntu on a Virtual Box). I am trying to cross-compile forte for a 64-bit Raspberry Pi 4 that is currently running Ubuntu 20.04 LTS. That is a 64-bit architecture (dpkg -- print-architecture shows "arm64" on the Pi, and "amd64" on my Ubuntu Virtual Box)|
I followed all the 4diac instructions to cross-compile forte for a Raspberry Pi. That worked fine. However, the cross-compiled forte ends up as a 32-bit application. The command "file forte" shows this:
forte: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.16, BuildID[sha1]=098efaa4d5bddcd88e63309664bb0c294213d091, with debug_info, not stripped
Obviously that will not run on the Pi. Entering ./forte displays "./forte: No such file or directory".
I have tried enabling 32-bit support on Ubuntu but that is not working. Lots of missing libraries that would not load.
Is there a way of cross-compiling forte as a 64-bit app by configuring CMake differently?
Thank you in-advance for any help. If I can get this going, I am happy to document the process of setting it up and make it available on the forum. The 4diac cross-compilation instructions worked really well - I am almost there <smile>.
Another thought - an alternative might be to switch the Pi OS to be Ubuntu Server 20.04.2 LTS which is the 32-bit version. I suspect the forte performance difference would be minimal ???
[Updated on: Thu, 01 April 2021 06:17]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02373 seconds