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

[libmupdf] linking errors #43151

Open
aureliencc opened this issue Jan 7, 2025 · 0 comments
Open

[libmupdf] linking errors #43151

aureliencc opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@aureliencc
Copy link

aureliencc commented Jan 7, 2025

Describe the bug
The package libmupdf does build successfully but cannot be used as a static library because it is missing dependencies.

Environment

  • OS: Windows
  • Compiler: MSVC 19.42.34435.0 - Visual studio 2022

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install libmupdf
  2. See error
find_library(LIBMUPDF_LIBRARY libmupdf)
target_link_libraries(${PROJECT_NAME} PRIVATE ${LIBMUPDF_LIBRARY})

Expected behavior
libthirdparty.lib should be built along-side libmupdf.lib or a script should be provided to include all the dependencies.

Failure logs

[...]
2>libmupdf.lib(filter-jbig2.c.obj) : error LNK2001: unresolved external symbol jbig2_page_out
2>libmupdf.lib(load-jbig2.c.obj) : error LNK2019: unresolved external symbol jbig2_release_page referenced in function jbig2_read_image
2>libmupdf.lib(filter-jbig2.c.obj) : error LNK2001: unresolved external symbol jbig2_release_page
2>libmupdf.lib(load-jbig2.c.obj) : error LNK2019: unresolved external symbol jbig2_complete_page referenced in function jbig2_read_image
2>libmupdf.lib(filter-jbig2.c.obj) : error LNK2001: unresolved external symbol jbig2_complete_page
2>libmupdf.lib(filter-jbig2.c.obj) : error LNK2019: unresolved external symbol jbig2_make_global_ctx referenced in function fz_load_jbig2_globals
2>libmupdf.lib(filter-jbig2.c.obj) : error LNK2019: unresolved external symbol jbig2_global_ctx_free referenced in function fz_drop_jbig2_globals_imp
2>libmupdf.lib(xml.c.obj) : error LNK2019: unresolved external symbol gumbo_normalized_tagname referenced in function xml_from_gumbo
2>libmupdf.lib(xml.c.obj) : error LNK2019: unresolved external symbol gumbo_parse_with_options referenced in function fz_parse_xml_from_html5
2>libmupdf.lib(xml.c.obj) : error LNK2019: unresolved external symbol gumbo_destroy_output referenced in function fz_parse_xml_from_html5
[...]

Additional context
libmupdf is only availaible as a static library.

libmupdf is not provided as a package(neither find_package(...) nor target_link_libraries(...) given), it must be included manually.

On official build, libmupdf is relying on libthirdparty.lib but it looks like it is not built by vcpkg.

The issue should have been fixed by pull-request(now closed) 19714.

The issue was already reported on stackoverflow.

Thank you for your help,

@WangWeiLin-MV WangWeiLin-MV added the requires:repro The issue is not currently repro-able label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

2 participants