rhx / SwiftGtk

A Swift wrapper around gtk-3.x and gtk-4.x that is largely auto-generated from gobject-introspection
https://rhx.github.io/SwiftGtk/
BSD 2-Clause "Simplified" License
317 stars 26 forks source link

Compile errors on ubuntu 20.04.2 LTS #47

Closed gery closed 3 years ago

gery commented 3 years ago

Swift version 5.3.2 (swift-5.3.2-RELEASE)

/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:34:18: error: cannot find type 'StringRef' in scope public extension StringRef { ^~~~~ /home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:42:27: error: cannot find type 'StringType' in scope public class StringClass: StringType { ^~~~~~ /home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:44:32: error: initializer does not override a designated initializer from its superclass @inlinable override public init(_ op: UnsafeMutablePointer) {


/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:70:34: error: cannot find type 'StringRef' in scope
    @inlinable var g_string_ref: StringRef { return StringRef(self) }
                                 ^~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:45:9: error: 'super' members cannot be referenced in a root class
        super.init(UnsafeMutablePointer(g_string_new(op.pointee.str)))
        ^
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:50:9: error: 'super' members cannot be referenced in a root class
        super.init(s.gstring_ptr)
        ^
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:57:9: error: 'super' members cannot be referenced in a root class
        super.init(raw: p)
        ^
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:62:23: error: cannot find 'gstring_ptr' in scope
        g_string_free(gstring_ptr, 1)
                      ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/SList.swift:10:18: error: cannot find type 'SListProtocol' in scope
public extension SListProtocol {
                 ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/SList.swift:18:11: error: cannot find type 'SList' in scope
extension SList: Swift.Sequence {}
          ^~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/SList.swift:19:11: error: cannot find type 'SListRef' in scope
extension SListRef: Swift.Sequence {}
          ^~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:10:18: error: cannot find type 'SequenceProtocol' in scope
public extension SequenceProtocol {
                 ^~~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:44:1: error: extension of protocol 'Sequence' cannot have an inheritance clause
extension Sequence: Swift.Sequence {}
^                   ~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:45:11: error: cannot find type 'SequenceRef' in scope
extension SequenceRef: Swift.Sequence {}
          ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:49:26: error: cannot find type 'SequenceIterRef' in scope
    public var iterator: SequenceIterRef?
                         ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:53:29: error: cannot find type 'SequenceIterRef' in scope
    @inlinable init(_ iter: SequenceIterRef?) {
                            ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:65:11: error: cannot find type 'SequenceIterRef' in scope
extension SequenceIterRef: Equatable {
          ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:76:11: error: cannot find type 'SequenceIterRef' in scope
extension SequenceIterRef: Comparable {
          ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:71:44: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func == (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                           ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:71:66: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func == (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                                                 ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:82:43: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func < (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                          ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:82:65: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func < (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                                                ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/SList.swift:10:18: error: cannot find type 'SListProtocol' in scope
public extension SListProtocol {
                 ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/SList.swift:18:11: error: cannot find type 'SList' in scope
extension SList: Swift.Sequence {}
          ^~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/SList.swift:19:11: error: cannot find type 'SListRef' in scope
extension SListRef: Swift.Sequence {}
          ^~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:10:18: error: cannot find type 'SequenceProtocol' in scope
public extension SequenceProtocol {
                 ^~~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:44:1: error: extension of protocol 'Sequence' cannot have an inheritance clause
extension Sequence: Swift.Sequence {}
^                   ~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:45:11: error: cannot find type 'SequenceRef' in scope
extension SequenceRef: Swift.Sequence {}
          ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:49:26: error: cannot find type 'SequenceIterRef' in scope
    public var iterator: SequenceIterRef?
                         ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:53:29: error: cannot find type 'SequenceIterRef' in scope
    @inlinable init(_ iter: SequenceIterRef?) {
                            ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:65:11: error: cannot find type 'SequenceIterRef' in scope
extension SequenceIterRef: Equatable {
          ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:76:11: error: cannot find type 'SequenceIterRef' in scope
extension SequenceIterRef: Comparable {
          ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:71:44: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func == (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                           ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:71:66: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func == (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                                                 ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:82:43: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func < (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                          ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:82:65: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func < (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                                                ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Mutex.swift:11:18: error: cannot find type 'Mutex' in scope
public extension Mutex {
                 ^~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Mutex.swift:11:18: error: cannot find type 'Mutex' in scope
public extension Mutex {
                 ^~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Time.swift:24:47: error: cannot find 'SourceFunc' in scope
    let callback = unsafeBitCast(handler, to: SourceFunc.self)
                                              ^~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Time.swift:25:14: error: cannot find 'timeoutAddFull' in scope
    let rv = timeoutAddFull(priority: p, interval: interval, function: callback, data: opaqueHolder) {
             ^~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/List.swift:10:18: error: cannot find type 'ListProtocol' in scope
public extension ListProtocol {
                 ^~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/List.swift:18:11: error: cannot find type 'List' in scope
extension List: Swift.Sequence {}
          ^~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/List.swift:19:11: error: cannot find type 'ListRef' in scope
extension ListRef: Swift.Sequence {}
          ^~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:11:18: error: cannot find type 'MainContextRef' in scope
public extension MainContextRef {
                 ^~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:33:18: error: cannot find type 'MainContext' in scope
public extension MainContext {
                 ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:56:18: error: cannot find type 'MainLoopRef' in scope
public extension MainLoopRef {
                 ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:66:18: error: cannot find type 'MainLoop' in scope
public extension MainLoop {
                 ^~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:18:48: error: cannot find type 'MainContextRef' in scope
    @inlinable static func defaultContext() -> MainContextRef {
                                               ^~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:28:38: error: cannot find type 'MainContextRef' in scope
    @inlinable static var `default`: MainContextRef { defaultContext() }
                                     ^~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:40:48: error: cannot find type 'MainContext' in scope
    @inlinable static func defaultContext() -> MainContext {
                                               ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:51:38: error: cannot find type 'MainContext' in scope
    @inlinable static var `default`: MainContext { defaultContext() }
                                     ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/List.swift:10:18: error: cannot find type 'ListProtocol' in scope
public extension ListProtocol {
                 ^~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/List.swift:18:11: error: cannot find type 'List' in scope
extension List: Swift.Sequence {}
          ^~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/List.swift:19:11: error: cannot find type 'ListRef' in scope
extension ListRef: Swift.Sequence {}
          ^~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:11:18: error: cannot find type 'MainContextRef' in scope
public extension MainContextRef {
                 ^~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:33:18: error: cannot find type 'MainContext' in scope
public extension MainContext {
                 ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:56:18: error: cannot find type 'MainLoopRef' in scope
public extension MainLoopRef {
                 ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:66:18: error: cannot find type 'MainLoop' in scope
public extension MainLoop {
                 ^~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:18:48: error: cannot find type 'MainContextRef' in scope
    @inlinable static func defaultContext() -> MainContextRef {
                                               ^~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:28:38: error: cannot find type 'MainContextRef' in scope
    @inlinable static var `default`: MainContextRef { defaultContext() }
                                     ^~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:40:48: error: cannot find type 'MainContext' in scope
    @inlinable static func defaultContext() -> MainContext {
                                               ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/MainLoop.swift:51:38: error: cannot find type 'MainContext' in scope
    @inlinable static var `default`: MainContext { defaultContext() }
                                     ^~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:17:33: error: cannot find type 'ErrorRef' in scope
public typealias GLibErrorRef = ErrorRef
                                ^~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:20:38: error: cannot find type 'ErrorProtocol' in scope
public typealias GLibErrorProtocol = ErrorProtocol
                                     ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:35:18: error: cannot find type 'GLibError' in scope
public extension GLibError {
                 ^~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:51:11: error: cannot find type 'GLibError' in scope
extension GLibError: CustomStringConvertible {}
          ^~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:52:11: error: cannot find type 'GLibError' in scope
extension GLibError: CustomDebugStringConvertible {}
          ^~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:17:33: error: cannot find type 'ErrorRef' in scope
public typealias GLibErrorRef = ErrorRef
                                ^~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:20:38: error: cannot find type 'ErrorProtocol' in scope
public typealias GLibErrorProtocol = ErrorProtocol
                                     ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:35:18: error: cannot find type 'GLibError' in scope
public extension GLibError {
                 ^~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:51:11: error: cannot find type 'GLibError' in scope
extension GLibError: CustomStringConvertible {}
          ^~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Error.swift:52:11: error: cannot find type 'GLibError' in scope
extension GLibError: CustomDebugStringConvertible {}
          ^~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:39:36: error: cannot find type 'LogLevelFlags' in scope
@usableFromInline let priorities: [LogLevelFlags : UnsafePointer<CChar>] = [
                                   ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:47:18: error: cannot find type 'LogLevelFlags' in scope
public extension LogLevelFlags {
                 ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:72:11: error: cannot find type 'LogLevelFlags' in scope
extension LogLevelFlags: Hashable {}
          ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:121:62: error: cannot find type 'LogLevelFlags' in scope
@inlinable public func g_log(_ message: String, level flags: LogLevelFlags = .debug) {
                                                             ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:137:72: error: cannot find type 'LogLevelFlags' in scope
@inlinable public func g_log(messagePtr: UnsafePointer<CChar>?, level: LogLevelFlags = .debug) {
                                                                       ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:164:72: error: cannot find type 'LogLevelFlags' in scope
@inlinable public func g_log(domain: String, _ message: String, level: LogLevelFlags = .debug) {
                                                                       ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:71:44: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func == (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                           ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:71:66: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func == (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                                                 ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:152:13: error: cannot find 'logStructuredArray' in scope
            logStructuredArray(logLevel: level, fields: &fields, nFields: fields.count)
            ^~~~~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:188:25: error: cannot find 'logStructuredArray' in scope
                        logStructuredArray(logLevel: level, fields: &fields, nFields: fields.count)
                        ^~~~~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:205:14: error: extraneous argument labels 'domain:level:' in call
        g_log(domain: d, message, level: .warning)
             ^~~~~~~~~            ~~~~~~~

/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:205:26: error: cannot convert value of type 'String' to expected argument type 'GLogLevelFlags'
        g_log(domain: d, message, level: .warning)
                         ^
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:205:43: error: type 'UnsafePointer<gchar>?' (aka 'Optional<UnsafePointer<Int8>>') has no member 'warning'
        g_log(domain: d, message, level: .warning)
                                         ~^~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:207:14: error: extraneous argument label 'level:' in call
        g_log(message, level: .warning)
             ^         ~~~~~~~

/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:207:39: error: missing argument for parameter #3 in call
        g_log(message, level: .warning)
                                      ^
                                      , <#UnsafePointer<gchar>?#>
CGLib.g_log:2:13: note: 'g_log' declared here
public func g_log(_ log_domain: UnsafePointer<gchar>!, _ log_level: GLogLevelFlags, _ format: UnsafePointer<gchar>!, _ varargs: Any...)
            ^
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:207:32: error: type 'GLogLevelFlags' has no member 'warning'
        g_log(message, level: .warning)
                              ~^~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:55:24: error: cannot find 'LogLevelFlags' in scope
    static let debug = LogLevelFlags.levelDebug
                       ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:57:23: error: cannot find 'LogLevelFlags' in scope
    static let info = LogLevelFlags.levelInfo
                      ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:59:26: error: cannot find 'LogLevelFlags' in scope
    static let message = LogLevelFlags.levelMessage
                         ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:61:26: error: cannot find 'LogLevelFlags' in scope
    static let warning = LogLevelFlags.levelWarning
                         ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:66:27: error: cannot find 'LogLevelFlags' in scope
    static let critical = LogLevelFlags.levelCritical
                          ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:69:24: error: cannot find 'LogLevelFlags' in scope
    static let error = LogLevelFlags.levelError
                       ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:39:36: error: cannot find type 'LogLevelFlags' in scope
@usableFromInline let priorities: [LogLevelFlags : UnsafePointer<CChar>] = [
                                   ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:47:18: error: cannot find type 'LogLevelFlags' in scope
public extension LogLevelFlags {
                 ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:72:11: error: cannot find type 'LogLevelFlags' in scope
extension LogLevelFlags: Hashable {}
          ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:121:62: error: cannot find type 'LogLevelFlags' in scope
@inlinable public func g_log(_ message: String, level flags: LogLevelFlags = .debug) {
                                                             ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:137:72: error: cannot find type 'LogLevelFlags' in scope
@inlinable public func g_log(messagePtr: UnsafePointer<CChar>?, level: LogLevelFlags = .debug) {
                                                                       ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:164:72: error: cannot find type 'LogLevelFlags' in scope
@inlinable public func g_log(domain: String, _ message: String, level: LogLevelFlags = .debug) {
                                                                       ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:71:44: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func == (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                           ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/Sequence.swift:71:66: error: cannot find type 'SequenceIterRef' in scope
    @inlinable public static func == (lhs: SequenceIterRef, rhs: SequenceIterRef) -> Bool {
                                                                 ^~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:152:13: error: cannot find 'logStructuredArray' in scope
            logStructuredArray(logLevel: level, fields: &fields, nFields: fields.count)
            ^~~~~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:188:25: error: cannot find 'logStructuredArray' in scope
                        logStructuredArray(logLevel: level, fields: &fields, nFields: fields.count)
                        ^~~~~~~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:205:14: error: extraneous argument labels 'domain:level:' in call
        g_log(domain: d, message, level: .warning)
             ^~~~~~~~~            ~~~~~~~

/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:205:26: error: cannot convert value of type 'String' to expected argument type 'GLogLevelFlags'
        g_log(domain: d, message, level: .warning)
                         ^
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:205:43: error: type 'UnsafePointer<gchar>?' (aka 'Optional<UnsafePointer<Int8>>') has no member 'warning'
        g_log(domain: d, message, level: .warning)
                                         ~^~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:207:14: error: extraneous argument label 'level:' in call
        g_log(message, level: .warning)
             ^         ~~~~~~~

/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:207:39: error: missing argument for parameter #3 in call
        g_log(message, level: .warning)
                                      ^
                                      , <#UnsafePointer<gchar>?#>
CGLib.g_log:2:13: note: 'g_log' declared here
public func g_log(_ log_domain: UnsafePointer<gchar>!, _ log_level: GLogLevelFlags, _ format: UnsafePointer<gchar>!, _ varargs: Any...)
            ^
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:207:32: error: type 'GLogLevelFlags' has no member 'warning'
        g_log(message, level: .warning)
                              ~^~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:55:24: error: cannot find 'LogLevelFlags' in scope
    static let debug = LogLevelFlags.levelDebug
                       ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:57:23: error: cannot find 'LogLevelFlags' in scope
    static let info = LogLevelFlags.levelInfo
                      ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:59:26: error: cannot find 'LogLevelFlags' in scope
    static let message = LogLevelFlags.levelMessage
                         ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:61:26: error: cannot find 'LogLevelFlags' in scope
    static let warning = LogLevelFlags.levelWarning
                         ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:66:27: error: cannot find 'LogLevelFlags' in scope
    static let critical = LogLevelFlags.levelCritical
                          ^~~~~~~~~~~~~
/home/gery/Downloads/SwiftGtk-main/.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:69:24: error: cannot find 'LogLevelFlags' in scope
    static let error = LogLevelFlags.levelError
mikolasstuchlik commented 3 years ago

Hello.

SwiftGtk takes advantage of generated code. Have you run .run-gir2swift.sh (or .build.sh) script?

rhx commented 3 years ago

I'm closing this for the moment. Let me know if you still have issues after running ./run-gir2swift.sh (see README.md).