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

macOS Failed to retrieve search path with pkg-config #62

Closed
Beautylivery opened this issue Jun 25, 2019 · 2 comments
Closed

macOS Failed to retrieve search path with pkg-config #62

Beautylivery opened this issue Jun 25, 2019 · 2 comments
Assignees
Milestone

Comments

@Beautylivery
Copy link

Hello,

after setting up a fresh Kitura init and i added the SwiftKueryMySQL package, i received the following message while generating the xcodeproj.

Cloning https://github.com/IBM-Swift/Swift-Kuery.git
Resolving https://github.com/IBM-Swift/Swift-Kuery.git at 3.0.1
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed

Is there a dependency i am not aware of ?
Here are some further details... on the package

// swift-tools-version:5.0
import PackageDescription

let package = Package(
name: "Beautylivery_Server_New",
dependencies: [
.package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.7.0")),
.package(url: "https://github.com/IBM-Swift/HeliumLogger.git", from: "1.7.1"),
.package(url: "https://github.com/IBM-Swift/CloudEnvironment.git", from: "9.0.0"),
.package(url: "https://github.com/RuntimeTools/SwiftMetrics.git", from: "2.0.0"),
.package(url: "https://github.com/IBM-Swift/Health.git", from: "1.0.0"),
.package(url: "https://github.com/IBM-Swift/SwiftKueryMySQL.git", from: "2.0.2"),

],
targets: [
  .target(name: "Beautylivery_Server_New", dependencies: [ .target(name: "Application"), "Kitura" , "HeliumLogger", "SwiftKueryMySQL"]),
  .target(name: "Application", dependencies: [ "Kitura", "CloudEnvironment","SwiftMetrics", "Health", 

  ]),

  .testTarget(name: "ApplicationTests" , dependencies: [.target(name: "Application"), "Kitura","HeliumLogger" ])
]

)

@kilnerm kilnerm added this to the 2019.13 milestone Jun 26, 2019
@kilnerm kilnerm self-assigned this Jun 26, 2019
@kilnerm
Copy link
Contributor

kilnerm commented Jun 26, 2019

@Beautylivery SwiftKueryMySQL relies upon pkg-config to determine the library and header paths that are needed to link to it's C library.

Do you have pkg-config installed? (Check the output from pkg-config --version)

@Beautylivery
Copy link
Author

yeah seems to be the issue ! . Thanks

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