Closed lschmierer closed 4 years ago
same here:
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
/home/dadoum/Téléchargements/SwiftHelloGtk/.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-unions.swift:1094:30: error: cannot convert value of type 'Int' to specified type 'UInt64'
let rv: UInt64 = cast(_ptr.pointee.v_int64)
^~~~~~~~~~~~~~~~~~~~~~~~~~
UInt64( )
The latest commits fixed this on macOS. Thanks a lot, great work!
On Linux, it is still not wokring Different Errors are thrown, mostly
.../.build/checkouts/SwiftGLib/Sources/GLib/GLib.swift:96:77: error: use of unresolved identifier 'cast'
g_logv(nil, level.value, msg, CVaListPointer(_fromUnsafeMutablePointer: cast(msg)))
and
.../.build/checkouts/SwiftGLib/Sources/GLib/GLib-2.0-BookmarkFile.swift:631:47: error: cannot convert value of type 'UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>>') to expected argument type 'UnsafeMutablePointer<UnsafePointer<gchar>?>?' (aka 'Optional<UnsafeMutablePointer<Optional<UnsafePointer<Int8>>>>')
g_bookmark_file_set_groups(_ptr, uri, groups, gsize(length))
Should work on Linux now (tested with Ubuntu 18.04 and 20.04). Can you try
./distclean.sh
git pull
./build.sh
and see if this works for you now?
Great, works 👍
👍
My project stopped working. I am getting a bunch of the following errors:
Edit: On Ubuntu 18.04 I am getting: