Skip to content

Instantly share code, notes, and snippets.

@joaqo
Created May 1, 2020 23:09
Show Gist options
  • Save joaqo/2966fa6cabba393b6169eb085b61997d to your computer and use it in GitHub Desktop.
Save joaqo/2966fa6cabba393b6169eb085b61997d to your computer and use it in GitHub Desktop.
deepbern ~/swift-models tensorflow-0.8 * > swift run Personlab
warning: you may be able to install libv4l-dev using your system-packager:
apt-get install libv4l-dev
warning: you may be able to install freeglut3-dev using your system-packager:
apt-get install freeglut3-dev
warning: you may be able to install mesa-commmon-dev using your system-packager:
apt-get install mesa-common-dev
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:23: warning: initialization of 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') results in a dangling pointer
operation(UnsafePointer<GLchar>(value))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafePointer<GLchar>' (aka 'UnsafePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
operation(UnsafePointer<GLchar>(value))
^~~~~
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/OpenGLRendering.swift:281:45: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
operation(UnsafePointer<GLchar>(value))
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:61:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInX = floor(log(Double(inputSize.width)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
/home/lalo/swift-models/.build/checkouts/GPUImage2/framework/Source/Operations/AverageColorExtractor.swift:62:43: error: ambiguous use of 'init(_:)'
let numberOfReductionsInY = floor(log(Double(inputSize.height)) / log(4.0))
^
Swift.Double:4:23: note: found this candidate
@inlinable public init(_ other: Float)
^
Swift.BinaryFloatingPoint:5:23: note: found this candidate
@inlinable public init<Source>(_ value: Source) where Source : BinaryFloatingPoint
^
[205/249] Compiling GPUImage ImageGenerator.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment