building OF on 64bit raspberry pi 4 fails
Platform: Rasberry pi4 model B OF : 0.11.2 OS: tried Ubuntu server 20.04 LTS kernel 5.4.0, and Raspios May 7th 20201 kernel 5.10.
make -j4 Release -C /home/pi/openFrameworks/libs/openFrameworksCompiled/project
immediately produces the following error on both platforms:
make: Entering directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project' makefileCommon/config.shared.mk:96: *** recipe commences before first target. Stop.
Hi Any updates ?
Same problem here
Platform: Rasberry PI4 model B 8Gb OF : 0.11.2 OS: Latest Raspi OS 64bit - Debian GNU/Linux 11 (bullseye) aarch64 Kernel: 5.10.103-v8+
Cheers
At this point I don't think arm64 is supported. I believe we would need to add libs in https://github.com/openframeworks/apothecary/ for arm64 and then add make rules probably too.
There is some WIP here: https://github.com/openframeworks/apothecary/pull/199 https://github.com/openframeworks/openFrameworks/pull/6643
ping @hfiguiere @danoli3
This was very close just need to merge in changes mentioned by @hfiguiere https://github.com/hfiguiere
Will have a look today
On Sat, 12 Mar 2022 at 3:57 am, Theodore Watson @.***> wrote:
At this point I don't think arm64 is supported. I believe we would need to add libs in https://github.com/openframeworks/apothecary/ for arm64 and then add make rules probably too.
There is some WIP here: openframeworks/apothecary#199 https://github.com/openframeworks/apothecary/pull/199 #6643 https://github.com/openframeworks/openFrameworks/pull/6643
ping @hfiguiere https://github.com/hfiguiere @danoli3 https://github.com/danoli3
— Reply to this email directly, view it on GitHub https://github.com/openframeworks/openFrameworks/issues/6770#issuecomment-1065301695, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGK2HHXWDWZQOWN47JPATLU7N3NVANCNFSM5EKESQGQ . You are receiving this because you were mentioned.Message ID: @.***>
Bumping this issue , is anyone trying on Raspberry pi 3 with 64 bit Raspberry pi OS ?
any news?
Same issues here. Trying to take a look at the config.shared.mk debug info is here
PLATFORM_ARCH=aarch64
PLATFORM_OS=Linux
HOST_ARCH=aarch64
HOST_OS=Linux
CROSS_COMPILING=0
PLATFORM_VARIANT=default
IS_RASPBIAN=
and there is no aarch64 in the IF there.
EDIT: it seems unrelated to pi 4 as I'm seeing the same error in 3B+ but more related to the latest OS (11)
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
I've tried to make it run on latest raspberry pi os (bullseye) and made two draft PRs https://github.com/openframeworks/openFrameworks/pull/7069 https://github.com/openframeworks/apothecary/pull/233
with the first we can keep building with aarch64, and the second allows us to build kiss and tess2 with apothecary. so the project gets compiled, but still getting a specific error
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x18): undefined reference to `main'
/usr/bin/ld: (.text+0x1c): undefined reference to `main'
collect2: error: ld returned 1 exit status
I can try other compiler or linker settings too, let me know if you have any suggestions
Added a poll here relating to arm64 vs armv6 armv7 https://github.com/openframeworks/openFrameworks/discussions/7138
@dimitre were you trying to just build the OF lib when you got that error or an example?
I think it might end up being easier to get working on the Pi than the CI as we need to setup the cross compiler environment.
If anyone has pointers for arm64 Pi cross compiler setup that could be helpful. ( similar to the armv6 stuff we have here https://github.com/openframeworks/openFrameworks/blob/master/scripts/ci/linuxarmv6l/install.sh )
@ofTheo not sure, don't remember. I have one RPI4 around here but won't be working on this in the next weeks. If it is helpful I can try to setup some remote access and left it on for testing.
Trying to get this working on Ubunto x64 on an H5 Arm board. OF is installed and set up but no projects compile. Had this same issue on an rpi4 with ubunto x64. When i installed ubuntu 32bit it worked
I've recently updated the core to work with linuxaarch64, so I'm compiling it on latest Raspberry PI OS . but as today libraries have to be manually compiled using apothecary.
@rjsworking @karno-ian OF now supports aarch64, I'm testing now with raspberry pi os latest, most of the examples are functional.
closed by https://github.com/openframeworks/openFrameworks/pull/7069