I use Gentoo x86_64 to build LibreELEC. When I build 8.0 branch, I always get error:
Code
		
			~/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.0.1/toolchain/lib/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/lib64/libpng16.so.16)
make: *** [Makefile:12: image] Ошибка 1I know, how to solve it. Here's solution:
Code
		
			cd ~/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.0.1/toolchain/lib
rm libz.so.1
ln -s /lib64/lib/libz.so.1 ~/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.0.1/toolchain/lib/libz.so.1But I don't know, what need to change in LibreELEC source code to fix this problem. Can the developers fix it?
P.S. My system version of ZLIB is 1.2.11
 
		 
		
		
	 I got the same thing as well. The problem is that the build host's mkfontscale is linked against a versioned zlib shared library, and when the LE build system calls it I guess $TOOLCHAIN/lib comes first in the LD_LIBRARY_PATH. Currently zlib in LE is 1.2.8, while in Arch (and I guess also Gentoo) it's up to 1.2.9. A quick fix is to bump the LE zlib version up but that'll only work until the next version comes along. A better fix seems to be calling mkfontdir/mkscale with LD_LIBRARY_PATH=/usr/lib. Either that or building mkfontdir/mkfontscale for the host (which would require building more stuff for the host).
 I got the same thing as well. The problem is that the build host's mkfontscale is linked against a versioned zlib shared library, and when the LE build system calls it I guess $TOOLCHAIN/lib comes first in the LD_LIBRARY_PATH. Currently zlib in LE is 1.2.8, while in Arch (and I guess also Gentoo) it's up to 1.2.9. A quick fix is to bump the LE zlib version up but that'll only work until the next version comes along. A better fix seems to be calling mkfontdir/mkscale with LD_LIBRARY_PATH=/usr/lib. Either that or building mkfontdir/mkfontscale for the host (which would require building more stuff for the host).