pathfinder icon indicating copy to clipboard operation
pathfinder copied to clipboard

Linking Error when building pathfinder_canvas with pf-text

Open DraftedDev opened this issue 1 year ago • 0 comments

I get a very ugly Linking Error when trying to build pathfinder_canvas with the pf-text feature.

I use following dependencies:

pathfinder_color = { git = "https://github.com/servo/pathfinder.git" }
pathfinder_content = { git = "https://github.com/servo/pathfinder.git" }
pathfinder_resources = { git = "https://github.com/servo/pathfinder.git" }
pathfinder_renderer = { git = "https://github.com/servo/pathfinder.git" }
pathfinder_gpu = { git = "https://github.com/servo/pathfinder.git" }
pathfinder_canvas = { git = "https://github.com/servo/pathfinder.git", features = ["pf-text"] }
pathfinder_geometry = { git = "https://github.com/servo/pathfinder.git" }

I also use the patch described in #313 to avoid another error:

[patch.crates-io]
pathfinder_gpu = { git = "https://github.com/servo/pathfinder" }
pathfinder_content = { git = "https://github.com/servo/pathfinder" }
pathfinder_color = { git = "https://github.com/servo/pathfinder" }
pathfinder_geometry = { git = "https://github.com/servo/pathfinder" }
pathfinder_renderer = { git = "https://github.com/servo/pathfinder" }
pathfinder_resources = { git = "https://github.com/servo/pathfinder" }
pathfinder_simd = { git = "https://github.com/servo/pathfinder" }

Maybe the bundled feature in the harfbuzz crate can fix this, but I don't think I can [patch] it with cargo.

Linker Error: LINK : fatal error LNK1181: cannot open input file 'harfbuzz.lib'.

See the full error here.


Thanks for any help 😄

DraftedDev avatar Feb 15 '24 12:02 DraftedDev