Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpng error while building #87

Open
wangqr opened this issue May 10, 2019 · 2 comments
Open

libpng error while building #87

wangqr opened this issue May 10, 2019 · 2 comments
Labels
question The issue is a question

Comments

@wangqr
Copy link

wangqr commented May 10, 2019

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.

@codehz
Copy link

codehz commented May 10, 2019

try to install 32bit library (lib32-libpng)

@wangqr
Copy link
Author

wangqr commented May 10, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants