Open wangqr opened 5 years ago
The AUR build fails with
/usr/bin/ld: ../mcpelauncher-core/libmcpelauncher-core.a(app_platform.cpp.o): in function `LauncherAppPlatform::loadPNG_pre_0_14(Legacy::Pre_0_14::ImageData&, mcpe::string const&, bool)': /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:342: undefined reference to `png_create_read_struct' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:343: undefined reference to `png_set_longjmp_fn' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:354: undefined reference to `png_create_info_struct' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:360: undefined reference to `png_init_io' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:362: undefined reference to `png_read_info' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:364: undefined reference to `png_get_image_width' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:365: undefined reference to `png_get_image_height' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:369: undefined reference to `png_get_bit_depth' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:370: undefined reference to `png_get_color_type' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:380: undefined reference to `png_set_expand_gray_1_2_4_to_8' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:383: undefined reference to `png_read_update_info' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:385: undefined reference to `png_get_rowbytes' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:393: undefined reference to `png_read_image' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:396: undefined reference to `png_destroy_read_struct' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:345: undefined reference to `png_destroy_read_struct' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:372: undefined reference to `png_set_palette_to_rgb' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:382: undefined reference to `png_set_strip_16' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:374: undefined reference to `png_get_valid' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:375: undefined reference to `png_set_tRNS_to_alpha' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:377: undefined reference to `png_set_filler' /usr/bin/ld: /build/mcpelauncher-linux-git/src/mcpelauncher-manifest/mcpelauncher-core/src/app_platform.cpp:357: undefined reference to `png_set_longjmp_fn' collect2: error: ld returned 1 exit status
It seems that libpng is not properly linked. Full build log here. I installed libpng 1.6.37 from archlinux repo.
try to install 32bit library (lib32-libpng)
Sorry for looking at a wrong package. multilib/lib32-libpng 1.6.37-1 is also installed, as it is one of the the dependencies.
multilib/lib32-libpng 1.6.37-1
The AUR build fails with
It seems that libpng is not properly linked. Full build log here. I installed libpng 1.6.37 from archlinux repo.