-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arch Linux ARM Cross Compile #3244
Comments
pinging @openframeworks/linuxarm |
i got it working some days ago, i've just committed the install dependcies script that i used. the makefiles also have flags for detecting the arch linux cross compiling toolchain |
So I guess I'll close this as fixed, we can reopen if the issue persists. |
I ran your install dependencies and indeed raspberry_firmware was not installed. |
I ran a diff on ofColor.cpp master branch against the 0.8.4 release. No difference. I also checked out a fresh copy of the master branch. Still the same error. |
the problem with ofColor is a problem with memory but it usually doesn't happen when you cross compile, what command are you using to compile? |
rmake which is defined the following:
I'm trying to compile a toolchain with crosstools-ng right now... |
the archlinux toolchain worked fine for me, the only time i've seen the ofColor problem is when trying to compile from the raspberry pi since ofColor is templated to so many different types in the cpp that the compiler doesn't have enough memory but never saw it when compiling from the computer. |
Indeed, the VM had only 512 MB RAM. Solved the ofColor issue with stocking it up. I think i found the cause of
This hard link points to the /usr/lib/mesa of the VM, which doesn't exist. When I copy the libGL.so.1.2.0 from the $RPI_ROOT to the Directory in the VMs /usr/lib/mesa. raspberry_pi_hello compiles. raspberrypi_hello_world_gles2 Fails with:
|
i think that's not even the correct one but the ones that are in /opt/ in the rpi. i needed to copy them to /usr/... but don't remember exactly. also the problem with the links can be solved by using sshfs to mount the system with the option |
sshfs is not an option, as the root filesystem is loop mounted from an image file on my Mac Books ssd into the VM. The Pi boots from there over nfs. I will try to solve these issues and put the playbook into my fork. I think the libEGL.so in RPI_ROOT/opt/vc/lib would not be used as ld specifically complains about libEGL.so.1 not being found. |
Hey there,
once again I am trying to get OF to work on the Raspberry Pi with Arch Linux. I opened an issue here but since Raspberry is now in the core and the problems have changed I open this here.
What I did until now is setting up the Pre Build Environment with ArchLinux. My fork for that is here.
I installed the dependencies with the non-ARM script under linux/archlinux/.
When running rmake on the Ubuntu VM I get linker errors. The gist can be found here.
The Problem is, that the linker can't find libEGL:
and fails after that with undefined references. Both Libraries are located in /usr/lib.
Has anyone an idea on how to fix this? I have a feeling that there are only a few steps to go.
The text was updated successfully, but these errors were encountered: