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

Build Failed on Ubuntu 16.04 #4

Closed ghost closed 7 years ago

ghost commented 7 years ago

I'm getting an error when running the build.sh script.

Here's the root cause:

Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable

Here's the full output:

./build.sh
Fetching https://github.com/rhx/CGtk.git
Fetching https://github.com/rhx/SwiftGdk.git
Fetching https://github.com/rhx/SwiftAtk.git
Fetching https://github.com/rhx/CGdk.git
Fetching https://github.com/rhx/SwiftGdkPixbuf.git
Fetching https://github.com/rhx/SwiftPangoCairo.git
Fetching https://github.com/rhx/CGdkPixbuf.git
Fetching https://github.com/rhx/SwiftGIO.git
Fetching https://github.com/rhx/SwiftGModule.git
Fetching https://github.com/rhx/SwiftGObject.git
Fetching https://github.com/rhx/SwiftGLib.git
Fetching https://github.com/rhx/CGLib.git
Fetching https://github.com/rhx/SwiftCairo.git
Fetching https://github.com/rhx/SwiftPango.git
Fetching https://github.com/rhx/CCairo.git
Fetching https://github.com/rhx/CPango.git
Fetching https://github.com/rhx/CAtk.git
Cloning https://github.com/rhx/SwiftPangoCairo.git
Resolving https://github.com/rhx/SwiftPangoCairo.git at 2.52.0
Cloning https://github.com/rhx/CGtk.git
Resolving https://github.com/rhx/CGtk.git at 1.0.16
Cloning https://github.com/rhx/SwiftGIO.git
Resolving https://github.com/rhx/SwiftGIO.git at 2.52.0
Cloning https://github.com/rhx/CGdkPixbuf.git
Resolving https://github.com/rhx/CGdkPixbuf.git at 1.0.2
Cloning https://github.com/rhx/SwiftPango.git
Resolving https://github.com/rhx/SwiftPango.git at 2.52.0
Cloning https://github.com/rhx/SwiftGdkPixbuf.git
Resolving https://github.com/rhx/SwiftGdkPixbuf.git at 2.52.0
Cloning https://github.com/rhx/CGLib.git
Resolving https://github.com/rhx/CGLib.git at 1.0.18
Cloning https://github.com/rhx/SwiftGModule.git
Resolving https://github.com/rhx/SwiftGModule.git at 2.52.0
Cloning https://github.com/rhx/CCairo.git
Resolving https://github.com/rhx/CCairo.git at 1.0.2
Cloning https://github.com/rhx/CPango.git
Resolving https://github.com/rhx/CPango.git at 1.0.3
Cloning https://github.com/rhx/SwiftAtk.git
Resolving https://github.com/rhx/SwiftAtk.git at 2.52.0
Cloning https://github.com/rhx/SwiftGObject.git
Resolving https://github.com/rhx/SwiftGObject.git at 2.52.0
Cloning https://github.com/rhx/SwiftGLib.git
Resolving https://github.com/rhx/SwiftGLib.git at 2.52.0
Cloning https://github.com/rhx/CGdk.git
Resolving https://github.com/rhx/CGdk.git at 1.0.6
Cloning https://github.com/rhx/SwiftGdk.git
Resolving https://github.com/rhx/SwiftGdk.git at 3.22.0
Cloning https://github.com/rhx/CAtk.git
Resolving https://github.com/rhx/CAtk.git at 1.0.1
Cloning https://github.com/rhx/SwiftCairo.git
Resolving https://github.com/rhx/SwiftCairo.git at 2.52.0
Cloning into 'gir2swift'...
remote: Counting objects: 1308, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 1308 (delta 15), reused 0 (delta 0), pack-reused 1283
Receiving objects: 100% (1308/1308), 211.22 KiB | 287.00 KiB/s, done.
Resolving deltas: 100% (881/881), done.
Checking connectivity... done.
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Fetching https://github.com/rhx/SwiftLibXML.git
Fetching https://github.com/rhx/CLibXML2.git
Cloning https://github.com/rhx/CLibXML2.git
Resolving https://github.com/rhx/CLibXML2.git at 1.0.1
Cloning https://github.com/rhx/SwiftLibXML.git
Resolving https://github.com/rhx/SwiftLibXML.git at 1.2.0
Compile Swift Module 'SwiftLibXML' (6 sources)
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2_bridging.h"
         ^
/home/parallels/Desktop/SwiftGtk/.build/gir2swift/.build/checkouts/CLibXML2.git-566683980483254067/libxml2_bridging.h:12:9: error: 'libxml2/libxml/xmlreader.h' file not found
#import <libxml2/libxml/xmlreader.h>
        ^
/home/parallels/Desktop/SwiftGtk/.build/gir2swift/.build/checkouts/SwiftLibXML.git--7912093595349940181/Sources/XMLPath.swift:14:8: error: could not build Objective-C module 'CLibXML2'
import CLibXML2
       ^
<unknown>:0: error: build had 1 command failures
error: exit(1): /home/parallels/Desktop/Swift/swift-3.1.1-RELEASE-ubuntu16.04/usr/bin/swift-build-tool -f /home/parallels/Desktop/SwiftGtk/.build/gir2swift/.build/release.yaml
Generate Swift Wrapper for SwiftAtk.git
./gir-to-swift.sh: 24: ./gir-to-swift.sh: gir2swift: not found
./gir-to-swift.sh: 26: ./gir-to-swift.sh: cannot open Sources/*-*.swift: No such file
mv: cannot stat 'Sources/*-*.swift.out': No such file or directory
Generate Swift Wrapper for SwiftCairo.git
***  does not exist!
Make sure libgirepository1.0-dev is installed
and can be found in /usr /usr/local or by pkg-config!
Generate Swift Wrapper for SwiftGdk.git
./gir-to-swift.sh: 24: ./gir-to-swift.sh: gir2swift: not found
./gir-to-swift.sh: 25: ./gir-to-swift.sh: gir2swift: not found
Generate Swift Wrapper for SwiftGdkPixbuf.git
./gir-to-swift.sh: 24: ./gir-to-swift.sh: gir2swift: not found
./gir-to-swift.sh: 26: ./gir-to-swift.sh: cannot open Sources/*-*.swift: No such file
mv: cannot stat 'Sources/*-*.swift.out': No such file or directory
Generate Swift Wrapper for SwiftGIO.git
***  does not exist!
Make sure libgirepository1.0-dev is installed
and can be found in /usr /usr/local or by pkg-config!
Generate Swift Wrapper for SwiftGLib.git
***  does not exist!
Make sure libgirepository1.0-dev is installed
and can be found in /usr /usr/local or by pkg-config!
Generate Swift Wrapper for SwiftGModule.git
***  does not exist!
Make sure libgirepository1.0-dev is installed
and can be found in /usr /usr/local or by pkg-config!
Generate Swift Wrapper for SwiftGObject.git
***  does not exist!
Make sure libgirepository1.0-dev is installed
and can be found in /usr /usr/local or by pkg-config!
Generate Swift Wrapper for SwiftPangoCairo.git
./gir-to-swift.sh: 24: ./gir-to-swift.sh: gir2swift: not found
Generate Swift Wrapper for SwiftPango.git
./gir-to-swift.sh: 24: ./gir-to-swift.sh: gir2swift: not found
./gir-to-swift.sh: 26: ./gir-to-swift.sh: cannot open Sources/*-*.swift: No such file
mv: cannot stat 'Sources/*-*.swift.out': No such file or directory
Generate Swift Wrapper for SwiftGtk.git
./gir-to-swift.sh: line 24: gir2swift: command not found
Postprocessing Wrapper for *-*.swift
./gir-to-swift.sh: line 34: Sources/*-*.swift: No such file or directory
Compile Swift Module 'GLib' (6 sources)
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:11:18: error: use of undeclared type 'MainContextRef'
public extension MainContextRef {
                 ^~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:25:18: error: use of undeclared type 'MainContext'
public extension MainContext {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:40:18: error: use of undeclared type 'MainLoopRef'
public extension MainLoopRef {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:50:18: error: use of undeclared type 'MainLoop'
public extension MainLoop {
                 ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:18:18: error: use of undeclared type 'StringRef'
public extension StringRef {
                 ^~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:17:11: error: use of undeclared type 'ErrorTypeProtocol'
extension ErrorTypeProtocol {
          ^~~~~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:29:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:30:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomDebugStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:31:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:32:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomDebugStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:26:27: error: use of undeclared type 'StringType'
public class StringClass: StringType {
                          ^~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:21:61: error: use of undeclared type 'LogLevelFlags'
public func g_log(domain: String, _ message: String, level: LogLevelFlags = .level_debug) {
                                                            ^~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:8:45: error: use of undeclared type 'LogLevelFlags'
public func g_log(_ message: String, level: LogLevelFlags = .level_debug) {
                                            ^~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Time.swift:23:47: error: use of unresolved identifier 'SourceFunc'
    let callback = unsafeBitCast(handler, to: SourceFunc.self)
                                              ^~~~~~~~~~
CGLib.GSourceFunc:12:18: note: did you mean 'GSourceFunc'?
public typealias GSourceFunc = @convention(c) (gpointer?) -> gboolean
                 ^
CGLib.GSourceFuncs:52:18: note: did you mean 'GSourceFuncs'?
public typealias GSourceFuncs = _GSourceFuncs
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Time.swift:24:14: error: use of unresolved identifier 'timeoutAddFull'
    let rv = timeoutAddFull(priority: p, interval: interval, function: callback, data: opaqueHolder) {
             ^~~~~~~~~~~~~~
CGLib.g_timeout_add_full:1:13: note: did you mean 'g_timeout_add_full'?
public func g_timeout_add_full(_ priority: gint, _ interval: guint, _ function: CGLib.GSourceFunc!, _ data: gpointer!, _ notify: CGLib.GDestroyNotify!) -> guint
            ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:11:18: error: use of undeclared type 'MainContextRef'
public extension MainContextRef {
                 ^~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:25:18: error: use of undeclared type 'MainContext'
public extension MainContext {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:40:18: error: use of undeclared type 'MainLoopRef'
public extension MainLoopRef {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:50:18: error: use of undeclared type 'MainLoop'
public extension MainLoop {
                 ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:18:18: error: use of undeclared type 'StringRef'
public extension StringRef {
                 ^~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:17:11: error: use of undeclared type 'ErrorTypeProtocol'
extension ErrorTypeProtocol {
          ^~~~~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:29:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:30:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomDebugStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:31:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:32:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomDebugStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:11:18: error: use of undeclared type 'MainContextRef'
public extension MainContextRef {
                 ^~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:25:18: error: use of undeclared type 'MainContext'
public extension MainContext {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:40:18: error: use of undeclared type 'MainLoopRef'
public extension MainLoopRef {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:50:18: error: use of undeclared type 'MainLoop'
public extension MainLoop {
                 ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:18:18: error: use of undeclared type 'StringRef'
public extension StringRef {
                 ^~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:17:11: error: use of undeclared type 'ErrorTypeProtocol'
extension ErrorTypeProtocol {
          ^~~~~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:29:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:30:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomDebugStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:31:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:32:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomDebugStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:26:27: error: use of undeclared type 'StringType'
public class StringClass: StringType {
                          ^~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:28:21: error: initializer does not override a designated initializer from its superclass
    override public init(_ op: UnsafeMutablePointer<GString>) {
    ~~~~~~~~        ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:47:30: error: use of undeclared type 'StringRef'
    public var g_string_ref: StringRef { return StringRef(self) }
                             ^~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:47:30: error: use of undeclared type 'StringRef'
    public var g_string_ref: StringRef { return StringRef(self) }
                             ^~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:29:9: error: 'super' members cannot be referenced in a root class
        super.init(UnsafeMutablePointer(g_string_new(op.pointee.str)))
        ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:34:9: error: 'super' members cannot be referenced in a root class
        super.init(s.ptr)
        ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:21:61: error: use of undeclared type 'LogLevelFlags'
public func g_log(domain: String, _ message: String, level: LogLevelFlags = .level_debug) {
                                                            ^~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:8:45: error: use of undeclared type 'LogLevelFlags'
public func g_log(_ message: String, level: LogLevelFlags = .level_debug) {
                                            ^~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:39:23: error: use of unresolved identifier 'ptr'
        g_string_free(ptr, 1)
                      ^~~
SwiftGlibc.putc:1:13: note: did you mean 'putc'?
public func putc(_ __c: Int32, _ __stream: UnsafeMutablePointer<FILE>!) -> Int32
            ^
SwiftGlibc.puts:1:13: note: did you mean 'puts'?
public func puts(_ __s: UnsafePointer<Int8>!) -> Int32
            ^
SwiftGlibc.putw:1:13: note: did you mean 'putw'?
public func putw(_ __w: Int32, _ __stream: UnsafeMutablePointer<FILE>!) -> Int32
            ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:11:18: error: use of undeclared type 'MainContextRef'
public extension MainContextRef {
                 ^~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:25:18: error: use of undeclared type 'MainContext'
public extension MainContext {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:40:18: error: use of undeclared type 'MainLoopRef'
public extension MainLoopRef {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:50:18: error: use of undeclared type 'MainLoop'
public extension MainLoop {
                 ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:18:18: error: use of undeclared type 'StringRef'
public extension StringRef {
                 ^~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:17:11: error: use of undeclared type 'ErrorTypeProtocol'
extension ErrorTypeProtocol {
          ^~~~~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:29:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:30:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomDebugStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:31:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:32:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomDebugStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:11:18: error: use of undeclared type 'MainContextRef'
public extension MainContextRef {
                 ^~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:25:18: error: use of undeclared type 'MainContext'
public extension MainContext {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:40:18: error: use of undeclared type 'MainLoopRef'
public extension MainLoopRef {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:50:18: error: use of undeclared type 'MainLoop'
public extension MainLoop {
                 ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:18:18: error: use of undeclared type 'StringRef'
public extension StringRef {
                 ^~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:17:11: error: use of undeclared type 'ErrorTypeProtocol'
extension ErrorTypeProtocol {
          ^~~~~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:29:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:30:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomDebugStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:31:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:32:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomDebugStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:8:45: error: use of undeclared type 'LogLevelFlags'
public func g_log(_ message: String, level: LogLevelFlags = .level_debug) {
                                            ^~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:21:61: error: use of undeclared type 'LogLevelFlags'
public func g_log(domain: String, _ message: String, level: LogLevelFlags = .level_debug) {
                                                            ^~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:11:22: error: type 'GLogLevelFlags' has no member 'level_critical'
        g_logv(nil, .level_critical, message, CVaListPointer(_fromUnsafeMutablePointer: $0))
                     ^~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:24:25: error: type 'GLogLevelFlags' has no member 'level_critical'
        g_logv(domain, .level_critical, message, CVaListPointer(_fromUnsafeMutablePointer: $0))
                        ^~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:35:14: error: extraneous argument labels 'domain:level:' in call
        g_log(domain: d, message, level: .level_warning)
             ^~~~~~~~~            ~~~~~~~

/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:37:45: error: missing argument for parameter #3 in call
        g_log(message, level: .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/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:11:18: error: use of undeclared type 'MainContextRef'
public extension MainContextRef {
                 ^~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:25:18: error: use of undeclared type 'MainContext'
public extension MainContext {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:40:18: error: use of undeclared type 'MainLoopRef'
public extension MainLoopRef {
                 ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:50:18: error: use of undeclared type 'MainLoop'
public extension MainLoop {
                 ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:18:18: error: use of undeclared type 'StringRef'
public extension StringRef {
                 ^~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:17:11: error: use of undeclared type 'ErrorTypeProtocol'
extension ErrorTypeProtocol {
          ^~~~~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:29:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:30:11: error: 'ErrorType' has been renamed to 'Error'
extension ErrorType: CustomDebugStringConvertible {}
          ^~~~~~~~~
          Error
Swift.ErrorType:2:18: note: 'ErrorType' has been explicitly marked unavailable here
public typealias ErrorType = Error
                 ^
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:31:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/Error.swift:32:11: error: use of undeclared type 'ErrorRef'
extension ErrorRef: CustomDebugStringConvertible {}
          ^~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:18:44: error: use of undeclared type 'MainContextRef'
    public static func defaultContext() -> MainContextRef {
                                           ^~~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:32:44: error: use of undeclared type 'MainContext'
    public static func defaultContext() -> MainContext {
                                           ^~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/String.swift:26:27: error: use of undeclared type 'StringType'
public class StringClass: StringType {
                          ^~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:21:61: error: use of undeclared type 'LogLevelFlags'
public func g_log(domain: String, _ message: String, level: LogLevelFlags = .level_debug) {
                                                            ^~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/GLib.swift:8:45: error: use of undeclared type 'LogLevelFlags'
public func g_log(_ message: String, level: LogLevelFlags = .level_debug) {
                                            ^~~~~~~~~~~~~
/home/parallels/Desktop/SwiftGtk/.build/checkouts/SwiftGLib.git--4654932124275962806/Sources/MainLoop.swift:33:23: error: use of unresolved identifier 'MainContext'
        let context = MainContext(g_main_context_ref(g_main_context_default())!)
                      ^~~~~~~~~~~
CGLib.GMainContext:7:18: note: did you mean 'GMainContext'?
public typealias GMainContext = _GMainContext
                 ^
CGLib._GMainContext:1:15: note: did you mean '_GMainContext'?
public struct _GMainContext {
              ^

OS: Ubuntu 16.04 LTS

rhx commented 7 years ago

Do you have libxml2-dev installed?

What happens if you do the following (from inside the cloned SwiftGtk folder):

./distclean.sh sudo apt install libxml2-dev ./test.sh

rhx commented 7 years ago

I have updated the documentation now to reflect that libxml2-dev needs to be installed. If you still have build issues, please let me know!