Giter Site home page Giter Site logo

How do you install this? about hcitool HOT 2 CLOSED

mm-ns avatar mm-ns commented on June 9, 2024 1
How do you install this?

from hcitool.

Comments (2)

rootscript avatar rootscript commented on June 9, 2024 1

@colemancda
I have some warning & errors when running swift build.
Using Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2) on MacOs 10.12.6
Any suggestions appreciated.

~/Downloads/hcitool/hcitool-1.1.0 ᐅ swift build
Fetching https://github.com/PureSwift/BluetoothDarwin.git
Fetching https://github.com/PureSwift/Bluetooth.git
Fetching https://github.com/MillerTechnologyPeru/Rainbow.git
Cloning https://github.com/PureSwift/BluetoothDarwin.git
Resolving https://github.com/PureSwift/BluetoothDarwin.git at 1.0.1
Cloning https://github.com/PureSwift/Bluetooth.git
Resolving https://github.com/PureSwift/Bluetooth.git at 1.8.3
Cloning https://github.com/MillerTechnologyPeru/Rainbow.git
Resolving https://github.com/MillerTechnologyPeru/Rainbow.git at 3.2.0
Compile CBluetoothDarwin dummy.c
Compile Swift Module 'Bluetooth' (79 sources)
Compile Swift Module 'BluetoothDarwin' (2 sources)
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:16:20: error: type 'HostController' does not conform to protocol 'BluetoothHostControllerInterface'
public final class HostController: NSObject, BluetoothHostControllerInterface {
                   ^
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:101:17: note: candidate has non-matching type '<CP, EP> (CP, EP.Type, timeout: HCICommandTimeout) throws -> EP'
    public func deviceRequest<CP, EP>(_ commandParameter: CP, _ eventParameterType: EP.Type, timeout: HCICommandTimeout = .default) throws -> EP where CP : HCICommandParameter, EP : HCIEventParameter {
                ^
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:122:17: note: candidate has non-matching type '<CP, Return> (CP, Return.Type, timeout: HCICommandTimeout) throws -> Return'
    public func deviceRequest<CP, Return>(_ commandParameter: CP, _ commandReturnType: Return.Type, timeout: HCICommandTimeout = .default) throws -> Return where CP : HCICommandParameter, Return : HCICommandReturnParameter {
                ^
Bluetooth.BluetoothHostControllerInterface:16:17: note: protocol requires function 'deviceRequest(_:_:timeout:)' with type '<C, EP> (C, EP.Type, timeout: HCICommandTimeout) throws -> EP'; do you want to add a stub?
    public func deviceRequest<C, EP>(_ command: C, _ eventParameterType: EP.Type, timeout: Bluetooth.HCICommandTimeout) throws -> EP where C : HCICommand, EP : HCIEventParameter
                ^
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:144:13: warning: variable 'error' was never mutated; consider changing to 'let' constant
        var error: Error?
        ~~~ ^
        let
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:184:13: warning: initialization of immutable value 'opcode' was never used; consider replacing with assignment to '_' or removing it
        let opcode = message.pointee.dataInfo.opcode
        ~~~~^~~~~~
        _
error: terminated(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f ~/Downloads/hcitool/hcitool-1.1.0/.build/debug.yaml main

from hcitool.

colemancda avatar colemancda commented on June 9, 2024

Just swift build and copy it wherever you like. If you want it always on your command line environment add it to your path.

from hcitool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.