I am trying to implement a ros2 client using the swift package manager. The library I'm trying to use is located in /opt/ros/dashing/lib/ and I can't figure out how to link to it. I'm following the guide on system libraries here. My files look as follows:
let package = Package( name: "example", 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. .systemLibrary(name: "librcl", pkgConfig: "librcl"), .target( name: "example", dependencies: ["librcl"]) ] )
I get the following error:
'librcl' librcl.pc: warning: couldn't find pc file
It's looking for a .pc file. Is that absolutely necessary for the linker to work? I don't see any .pc files in the ROS 2 libraries. Can someone explain the role of these files and whether they're absolutely necessary to link c libs to swift?