Skip to content
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

add script to build for Raspberry Pi 1 and Zero in docker image #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

herrernst
Copy link
Contributor

build instructions for Raspberry Pi 1 and Zero have been requested multiple times
Raspberry Pi tools are needed for this case, see also first comments in #171

curl -OL http://mirrordirector.raspbian.org/raspbian/pool/main/a/alsa-lib/libasound2-dev_1.0.25-4_armhf.deb
ar p libasound2-dev_1.0.25-4_armhf.deb data.tar.gz | tar -xz -C /pi-tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/arm-bcm2708hardfp-linux-gnueabi/sysroot/
# i don't why this is neccessary
ln -s ld-linux.so.3 /pi-tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/arm-bcm2708hardfp-linux-gnueabi/sysroot/lib/ld-linux-armhf.so.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would the expected source folder be for this? My builds still fail. And when I check the binary with ldd it would still complain about a missing ld-linux.so.3:

$ ldd spotty
	libc.so.6 => /lib/libc.so.6 (0xb6981000)
	ld-linux.so.3 => not found
	libdl.so.2 => /lib/libdl.so.2 (0xb696e000)
	librt.so.1 => /lib/librt.so.1 (0xb6957000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xb692e000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb6902000)
	libm.so.6 => /lib/libm.so.6 (0xb6884000)
	/lib/ld-linux-armhf.so.3 (0x7f61d000)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just figured I tested on a piCore system rather than Raspbian. Your librespot binaries would fail there, too. Most likely this is due to an un-met pre-condition in piCore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source folder is the same as target. Sorry that it doesn't work on piCore

@kingosticks
Copy link

Is there anything blocking this from being merged? It seems very reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants