You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the system libxml2-dev package is installed, and /usr/include/libxml -> /usr/include/libxml2/libxml symlinked and /usr/include/libxml2/module.modulemap exists with the following content:
If I create a template swift package with Fuzi as a dependency in it:
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "spm-test",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "spm-test",
targets: ["spm-test"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/cezheng/Fuzi.git", from: "3.1.2"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "spm-test",
dependencies: ["Fuzi"]),
.testTarget(
name: "spm-testTests",
dependencies: ["spm-test"]),
]
)
Compilation is failing on the following code snippet:
Do you by any chance have an example file which requires this code path? Then I can add this to my PR #117. Currently that PR just disables this code path on Linux.
FYI, I just put up #129 which replaces usage of CoreFoundation with a simple String.Encoding extension that does the same mapping. That PR is for Windows support, but that probably fixes this issue on Linux as well.
On the system
libxml2-dev
package is installed, and/usr/include/libxml -> /usr/include/libxml2/libxml
symlinked and/usr/include/libxml2/module.modulemap
exists with the following content:If I create a template swift package with Fuzi as a dependency in it:
Compilation is failing on the following code snippet:
Fuzi/Sources/Document.swift
Lines 34 to 42 in f08c832
The error message I get is this:
I saw that Kanna has something to patch this behavior but I am not sure how to implement it:
https://github.com/tid-kijyun/Kanna/blob/c657fb9f5827ef138068215c76ad0bb62bbc92da/Sources/Kanna/libxmlHTMLDocument.swift#L29
The text was updated successfully, but these errors were encountered: