playit-cloud / playit-agent

The playit program
BSD 2-Clause "Simplified" License
241 stars 21 forks source link

Linux statically linked? #79

Closed vk496 closed 1 month ago

vk496 commented 5 months ago

Hello,

I wanted to try this project on a small device armv7, but it doesn't work because I miss libs.

root@turris:~# ldd playit-linux-armv7
        /lib/ld-linux-armhf.so.3 (0xb6ef7000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6ba2000)
        librt.so.1 => /lib/ld-linux-armhf.so.3 (0xb6ef7000)
        libpthread.so.0 => /lib/ld-linux-armhf.so.3 (0xb6ef7000)
        libm.so.6 => /lib/ld-linux-armhf.so.3 (0xb6ef7000)
        libdl.so.2 => /lib/ld-linux-armhf.so.3 (0xb6ef7000)
        libc.so.6 => /lib/ld-linux-armhf.so.3 (0xb6ef7000)
Error loading shared library ld-linux-armhf.so.3: No such file or directory (needed by playit-linux-armv7)
Error relocating playit-linux-armv7: __res_init: symbol not found
Error relocating playit-linux-armv7: __register_atfork: symbol not found
Error relocating playit-linux-armv7: gnu_get_libc_version: symbol not found

There is any chance to make the bins static? With cargo it should be pretty easy and would solve a lot of issues with random Linux OS/devices.

loriopatrick commented 5 months ago

Fork the project, try getting it to work for you and if successful create a pull request. I’m not available to investigate this anytime soon but would accept contributions to get it working.