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

Libxml2 Build issue on Linux #113

Open
1 of 3 tasks
gazsiazasz opened this issue Oct 25, 2020 · 2 comments
Open
1 of 3 tasks

Libxml2 Build issue on Linux #113

gazsiazasz opened this issue Oct 25, 2020 · 2 comments

Comments

@gazsiazasz
Copy link

Description:

  • Expected behaviour:
    Fuzi builds
  • Actual behaviour:
    Fuzi fails to build

Environment

  • Package Manager:

    • Carthage, version:
    • CocoaPods, version:
    • Manually
  • Fuzi version:
    3.1.2

  • Xcode version:
    N/A

How to reproduce:

Create Package.swift

// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "apro_swift",
    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 which this package depends on.
        .target(
            name: "apro_swift",
            dependencies: ["Fuzi"]),
        .testTarget(
            name: "apro_swiftTests",
            dependencies: ["apro_swift"]),
    ]
)

Try to bulid

pi@raspberrypi:~/devel/apro_swift $ swift build
/home/pi/devel/apro_swift/.build/checkouts/Fuzi/Sources/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/home/pi/devel/apro_swift/.build/checkouts/Fuzi/Sources/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/home/pi/devel/apro_swift/.build/checkouts/Fuzi/Sources/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/home/pi/devel/apro_swift/.build/checkouts/Fuzi/Sources/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/home/pi/devel/apro_swift/.build/checkouts/Fuzi/Sources/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/home/pi/devel/apro_swift/.build/checkouts/Fuzi/Sources/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/home/pi/devel/apro_swift/.build/checkouts/Fuzi/Sources/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
@nighthawk
Copy link

Linux isn't yet supported, see #46.

@gazsiazasz
Copy link
Author

Actually I could make it work somehow, but don't remember the exact steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants