Skip to content

How do I build this on Linux (Fedora 31, or Centos 7) #2

Description

@sipvoip

I installed swift, but I get an error on "swift build":

[root@marge net485Listen]# swift build
error: root manifest not found

So I tried "swift main.swift" and got:

[root@marge net485Listen]# swift main.swift
main.swift:10:8: error: no such module 'ORSSerial'
import ORSSerial
^
[root@marge net485Listen]# swift Net485.swift
Net485.swift:144:30: error: use of undeclared type 'ORSSerialPort'
convenience init(_ port: ORSSerialPort) {
^~~~~~~~~~~~~
Net485.swift:149:55: error: use of undeclared type 'ORSSerialPort'
func serialPortWasRemovedFromSystem(_ serialPort: ORSSerialPort) {
^~~~~~~~~~~~~
Net485.swift:153:35: error: use of undeclared type 'ORSSerialPort'
func serialPort(_ serialPort: ORSSerialPort, didReceive data: Data) {
^~~~~~~~~~~~~
Net485.swift:142:35: error: use of undeclared type 'ORSSerialPortDelegate'
class PacketProcessor : NSObject, ORSSerialPortDelegate {
^~~~~~~~~~~~~~~~~~~~~
Net485.swift:155:49: error: value of type 'Data' has no member 'asHexString'
print("\nBytes:(data.count) Pkt:(data.asHexString) (isOK ? "CRCOK":"CRCERR")")
~~~~ ^~~~~~~~~~~
Net485.swift:159:29: error: use of unresolved identifier 'CT485MessageCreator'
let msgOfType = CT485MessageCreator.shared.create(msg)
^~~~~~~~~~~~~~~~~~~
[root@marge net485Listen]#

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions