Skip to content

leptonica v1.84.1 link error in the test callback #7373

@A2va

Description

@A2va

Xmake Version

v2.9.9+dev.a6af349ad

Operating System Version and Architecture

Windows 10

Describe Bug

Leptonica has a dependency on libwebp but it doesn't seem to link on it. It happens on windows x86 and static link.

Expected Behavior

It should compile

Project Configuration

add_requires("leptonica")

target("project")
     add_files("src/main.cpp")
     add_packages("leptonica")

Additional Information and Error Logs

leptonica-1.84.1.lib(webpio.obj) : error LNK2019: unresolved external symbol WebPDecodeRGBAInto referenced in function pixReadStreamWebP
leptonica-1.84.1.lib(webpio.obj) : error LNK2019: unresolved external symbol WebPGetFeaturesInternal referenced in function pixReadStreamWebP
leptonica-1.84.1.lib(webpio.obj) : error LNK2019: unresolved external symbol WebPEncodeRGBA referenced in function pixWriteMemWebP
leptonica-1.84.1.lib(webpio.obj) : error LNK2019: unresolved external symbol WebPEncodeLosslessRGBA referenced in function pixWriteMemWebP
C:\Users\a2va\AppData\Local\Temp\.xmake\250613\_16659C1D163D41408B1BFD0598D8B850.b : fatal error LNK1120: 4 unresolved externals

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions