moonlight-stream/moonlight-qt

Errors compiling for Armbian RK3588 Orange Pi 5

Opened this issue · 3 comments

Trying to compile moonlight-qt on Opi5
Running Armbian 25.5.1
Vendor kernel 6.1.115

Running into issues compiling

'usr/bin/ld: /usr/lib/libavcodec.a(tiff.o): undefined reference to symbol 'inflateEnd'
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status'

Tried rolling back to kernel 6.1.99 and 6.1.75 where it was compiling fine 6 months ago but returns the same errors. Double checked that all the required libraries on the github page are installed.

Any ideas why this might be happening?

Following this guide: https://docs.radxa.com/en/rock5/rock5a/app-development/moonlight

Tried compiling again this time without ffmpeg-rockchip and it worked fine. Havent tested latency

The same in OrangePi5 Pro.Seems it can not be compiled with ffmpeg-rockchip.

@coffeebird @moment-NEW

You need to link zlib,

I had to do:

echo 'LIBS += -L/usr/lib/aarch64-linux-gnu -lavcodec -lavutil -lavformat -lswscale -lm /usr/lib/aarch64-linux-gnu/libz.a -lz' >> app/app.pro
echo 'LIBS += -L/usr/lib/aarch64-linux-gnu -lavcodec -lavutil -lavformat -lswscale -lm /usr/lib/aarch64-linux-gnu/libz.a -lz' >> moonlight-qt.pro

-lz should be all you need, but mine was failing to be found so I added the direct path as well.