Closed anthcp closed 4 years ago
This sounds like you may not have glib/gtk correctly installed. Try
brew update
brew install gtk+3 glib glib-networking gobject-introspection pkg-config
cd /Users/anthcp/code/gtk/SwiftGtk
./distclean.sh
git pull
./build.sh
Brew install was ok but the extra "git pull" seems to have fixed the problem.. Many thanks!!!
Just to let you know, I ran the test.sh script and got the following...
[3/3] Linking GtkPackageTests Test Suite 'All tests' started at 2020-03-29 22:29:30.681 Test Suite 'GtkPackageTests.xctest' started at 2020-03-29 22:29:30.681 Test Suite 'GtkTests' started at 2020-03-29 22:29:30.682 Test Case '-[GtkTests.GtkTests testApp]' started. Test Case '-[GtkTests.GtkTests testApp]' passed (0.611 seconds). Test Case '-[GtkTests.GtkTests testBinaryAge]' started. Test Case '-[GtkTests.GtkTests testBinaryAge]' passed (0.000 seconds). Test Case '-[GtkTests.GtkTests testDialog]' started. Test Case '-[GtkTests.GtkTests testDialog]' passed (0.076 seconds). Test Case '-[GtkTests.GtkTests testFileChooser]' started. Test Case '-[GtkTests.GtkTests testFileChooser]' passed (0.504 seconds). Test Case '-[GtkTests.GtkTests testFileChooserNative]' started. Test Case '-[GtkTests.GtkTests testFileChooserNative]' passed (0.086 seconds). Test Case '-[GtkTests.GtkTests testInterfaceAge]' started. Test Case '-[GtkTests.GtkTests testInterfaceAge]' passed (0.000 seconds). Test Case '-[GtkTests.GtkTests testMajorVersion]' started. Test Case '-[GtkTests.GtkTests testMajorVersion]' passed (0.000 seconds). Test Case '-[GtkTests.GtkTests testMessageDialog]' started. Exited with signal code 11 And then xctest crashed with the following...Process: xctest [22478] Path: /Applications/Xcode.app/Contents/Developer/usr/bin/xctest Identifier: xctest Version: 16091 Code Type: X86-64 (Native) Parent Process: ??? [22397] Responsible: Terminal [375] User ID: 501
Date/Time: 2020-03-29 22:29:32.096 +1030 OS Version: Mac OS X 10.15.3 (19D76) Report Version: 12 Anonymous UUID: BC28E891-39DF-2B3A-6532-DA50A2C6915E
Sleep/Wake UUID: 8F03D1C8-E844-4240-9C11-B2E46AEE4A44
Time Awake Since Boot: 31000 seconds Time Since Wake: 13000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: EXC_I386_GPFLT Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0
More info, it crashes at this point...
/// Releases the underlying GObject
instance using g_object_unref
.
deinit {
g_object_unref(cast(object_ptr))
}
in GObject-2.0-Object.swift on line 181...
Thanks – found and fixed!
If you git pull
again, ./test.sh
(or anything, for that matter, that uses the MessageDialog
convenience initialisers) should no longer crash.
Great... It now works a treat!!! Thanks for your time here... I'll start coding with it and see where I end up...
regards
Anthony
Hi there, Ran ./build.sh on Mac OSX and got the following errors...
/Users/anthcp/code/gtk/SwiftGtk/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:18:18: error: use of undeclared type 'StringRef' public extension StringRef { ^) {
~~~~ /Users/anthcp/code/gtk/SwiftGtk/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:26:27: error: use of undeclared type 'StringType' public class StringClass: StringType { ^~~~~~ /Users/anthcp/code/gtk/SwiftGtk/.build/checkouts/SwiftGLib/Sources/GLib/String.swift:28:21: error: initializer does not override a designated initializer from its superclass override public init(_ op: UnsafeMutablePointer