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

[harfbuzz] failed - freetype (symbol png; symbol BZ2) #2964

Closed
MVoz opened this issue Mar 5, 2018 · 7 comments
Closed

[harfbuzz] failed - freetype (symbol png; symbol BZ2) #2964

MVoz opened this issue Mar 5, 2018 · 7 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@MVoz
Copy link
Contributor

MVoz commented Mar 5, 2018

:x64-windows-static

LINK: command "C:\PROGRA~2\MIB055~1\2017\ENTERP~2\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x64\link.exe CMakeFiles\test-would-substitute.dir\src\test-would-substitute.cc.obj /out:test-would-substitute.exe /implib:test-would-substitute.lib /pdb:test-would-substitute.pdb /version:0.0 /machine:x64 /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF /subsystem:console harfbuzz.lib E:\tools\vcpkg\installed\x64-windows-static\lib\freetype.lib E:\tools\vcpkg\installed\x64-windows-static\lib\glib-2.0.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:test-would-substitute.exe.manifest" failed (exit code 1120) with the following output:
Microsoft (R) Incremental Linker Version 14.12.25835.0
Copyright (C) Microsoft Corporation.  All rights reserved.

freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_create_read_struct referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_longjmp_fn referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_create_info_struct referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_read_info referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_expand_gray_1_2_4_to_8 referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_palette_to_rgb referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_tRNS_to_alpha referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_gray_to_rgb referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_filler referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_packing referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_interlace_handling referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_strip_16 referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_read_update_info referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_read_image referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_read_end referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_destroy_read_struct referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_get_error_ptr referenced in function error_callback
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_read_fn referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_get_io_ptr referenced in function read_data_from_FT_Stream
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_read_user_transform_fn referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_error referenced in function read_data_from_FT_Stream
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_get_valid referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_get_IHDR referenced in function Load_SBit_Png
freetype.lib(ftgzip.c.obj) : error LNK2019: unresolved external symbol inflate referenced in function FT_Gzip_Uncompress
freetype.lib(ftgzip.c.obj) : error LNK2019: unresolved external symbol inflateEnd referenced in function FT_Gzip_Uncompress
freetype.lib(ftgzip.c.obj) : error LNK2019: unresolved external symbol inflateReset referenced in function ft_gzip_file_io
freetype.lib(ftgzip.c.obj) : error LNK2019: unresolved external symbol inflateInit2_ referenced in function FT_Gzip_Uncompress
freetype.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressInit referenced in function FT_Stream_OpenBzip2
freetype.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompress referenced in function ft_bzip2_file_fill_output
freetype.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressEnd referenced in function ft_bzip2_file_done
test-would-substitute.exe : fatal error LNK1120: 30 unresolved externals
[65/83] cmd.exe /C "cd . && E:\tools\vcpkg\downloads\cmake-3.10.2-win32-x86\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\test-test.dir --manifests  -- C:\PROGRA~2\MIB055~1\2017\ENTERP~2\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x64\link.exe  CMakeFiles\test-test.dir\src\test.cc.obj  /out:test-test.exe /implib:test-test.lib /pdb:test-test.pdb /version:0.0  /machine:x64 /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF /subsystem:console  harfbuzz.lib E:\tools\vcpkg\installed\x64-windows-static\lib\freetype.lib E:\tools\vcpkg\installed\x64-windows-static\lib\glib-2.0.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FAILED: test-test.exe 
@MVoz
Copy link
Contributor Author

MVoz commented Mar 5, 2018

сделал откат на vcpkg-db5a74c7d7c676a4b60284b0dae304ecad0b16f5 и сборка прошла успешно
в коде не разбирался

@MVoz MVoz closed this as completed Mar 5, 2018
@JackBoosY JackBoosY reopened this Jul 2, 2019
@JackBoosY JackBoosY added the category:port-bug The issue is with a library, which is something the port should already support label Jul 2, 2019
@JackBoosY
Copy link
Contributor

JackBoosY commented Jul 2, 2019

When I installed qt5-declarative with x64-windows-static, errors occurred:

   Creating library ..\..\bin\qml.lib and object ..\..\bin\qml.exp
freetyped.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressInit referenced in function ft_bzip2_file_init
freetyped.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompress referenced in function ft_bzip2_file_fill_output
freetyped.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressEnd referenced in function ft_bzip2_file_done
..\..\bin\qml.exe : fatal error LNK1120: 3 unresolved externals
   Creating library ..\..\bin\qmleasing.lib and object ..\..\bin\qmleasing.exp
freetyped.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressInit referenced in function ft_bzip2_file_init
freetyped.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompress referenced in function ft_bzip2_file_fill_output
freetyped.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressEnd referenced in function ft_bzip2_file_done
..\..\bin\qmleasing.exe : fatal error LNK1120: 3 unresolved externals

Related: #7108.

@JackBoosY
Copy link
Contributor

PR #5853 should fixed this issue, but it appears in qt5 now.

@JackBoosY
Copy link
Contributor

This issue should be fixed by PR #7667.
Can you repro it now?

Thanks.

@MVoz
Copy link
Contributor Author

MVoz commented Sep 26, 2019

I believe you
close ))

@MVoz MVoz closed this as completed Sep 26, 2019
@b762927
Copy link

b762927 commented Nov 8, 2022

Hello,when I comply freetype and harfbuzz,I also meet these errors, how do you solve it?
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_create_read_struct referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_longjmp_fn referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_create_info_struct referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_read_info referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_expand_gray_1_2_4_to_8 referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_palette_to_rgb referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_tRNS_to_alpha referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_gray_to_rgb referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_filler referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_packing referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_interlace_handling referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_strip_16 referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_read_update_info referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_read_image referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_read_end referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_destroy_read_struct referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_get_error_ptr referenced in function error_callback
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_read_fn referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_get_io_ptr referenced in function read_data_from_FT_Stream
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_set_read_user_transform_fn referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_error referenced in function read_data_from_FT_Stream
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_get_valid referenced in function Load_SBit_Png
freetype.lib(sfnt.c.obj) : error LNK2019: unresolved external symbol png_get_IHDR referenced in function Load_SBit_Png
freetype.lib(ftgzip.c.obj) : error LNK2019: unresolved external symbol inflate referenced in function FT_Gzip_Uncompress
freetype.lib(ftgzip.c.obj) : error LNK2019: unresolved external symbol inflateEnd referenced in function FT_Gzip_Uncompress
freetype.lib(ftgzip.c.obj) : error LNK2019: unresolved external symbol inflateReset referenced in function ft_gzip_file_io
freetype.lib(ftgzip.c.obj) : error LNK2019: unresolved external symbol inflateInit2_ referenced in function FT_Gzip_Uncompress
freetype.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressInit referenced in function FT_Stream_OpenBzip2
freetype.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompress referenced in function ft_bzip2_file_fill_output
freetype.lib(ftbzip2.c.obj) : error LNK2019: unresolved external symbol BZ2_bzDecompressEnd referenced in function ft_bzip2_file_done
test-would-substitute.exe : fatal error LNK1120: 30 unresolved externals

@JackBoosY
Copy link
Contributor

@b762927 please open an new issue to report that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

3 participants