mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-16 11:50:18 -05:00
How did you build the image for the Raspberry Pi? #3989
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VirtualInterpreter on GitHub (Jul 28, 2019).
Hi everyone,
I notice you's have managed to produce docker images for lots of different architectures and was wondering how you did it. I've been trying to cargo build this repo on Ubuntu for my raspberry pi 3 and encountered an error for missing the mysqlclient library. The command I used was:
cargo build --features mysql --release --target armv7-unknown-linux-gnueabihf(I assume that apt-get installing the library won't fix the issue as it would be for the wrong architecture?)
Consequently, I've been trying to cross compile mariadb server to acquire the libs, which hasn't been going well, as I've had to also work out how to cross compile openssl & ncurses. I tried going down the path of just copying the mysqlclient libs and the required libs from my pi to Ubuntu, which then results in an error
/usr/arm-linux-gnueabihf/lib/libp11-kit.so.0: undefined reference tofcntl@GLIBC_2.28'`So long story short I was wondering how you's set up your environment when you build for different architectures, or do you just build them on the end device? I've been trying to cross compile for 4 days now, and I'm feeling like I must be missing some obvious, so any advice you can offer is much appreciated :)
My goal is to build the image (I thought doing it on Ubuntu would be faster) so I can be certain of the image code that would be running on the raspberry pi.
Many thanks
@mprasil commented on GitHub (Jul 28, 2019):
I think you might be encountering the same issue I did. We actually don't have MySQL builds for ARM devices. Unfortunately I haven't had much time to really troubleshoot it yet. If you manage to find a way to build the ARM image with MySQL support, or if you find anything helpful, let's discuss this under #530.
I'm going to close this one as I think it's duplicate. Let's continue the investigation under #530 unless you think this issue is different?
Thanks for reporting this! It's sort of good to see that I'm not the only one encountering the problem.
@VirtualInterpreter commented on GitHub (Jul 28, 2019):
Interesting... Okay thank you, I'll report back if I manage to get it working, seems like it's not going to be as straight forward as I thought
@Extarys commented on GitHub (Oct 6, 2019):
Cloned the repo, cannot build armv7 sqlite: