About Monkey 2 › Forums › Monkey 2 Projects › m2libui – Libui wrapper (Cross-Platform Native UI)
This topic contains 27 replies, has 7 voices, and was last updated by Amon 4 days, 12 hours ago.
-
AuthorPosts
-
January 31, 2018 at 12:04 pm #13393
OOOOHHHH!
Ok, this is something very interesting (for my needs!)February 2, 2018 at 2:01 pm #13421Pressing Escape (or Enter) no longer causes the application to crash.
No luck with fixing the tabAppend crash though.
February 2, 2018 at 9:40 pm #13427ok. Is everything working except for tabAppend crashing?
February 3, 2018 at 1:09 am #13431This. Is. Amazing. Wow. +Over 9,000
February 3, 2018 at 7:35 am #13436Just tested the 2nd example (for win) – the one without DLL I suppose – everything works (except for the ColorRequester).
Nice (and very useful!) library: I like the calendar gadgets and so on!Keep going!
edit:
What MX2 version is needed to compile the module? (Using MinGW as compiler tool)
I’m still with 1.1.08 and I got the following error***** Making module ‘m2libui’ *****
Monkey12345[crayon-5ad9aa9837bed800528644 inline="true" ]Parsing...C:/MX2-1108/modules/m2libui/makefile_windows.monkey2 [13] : Error : symbol '__ARCH__' not foundC:/MX2-1108/modules/m2libui/makefile_windows.monkey2 [17] : Error : #end without matching #if or #remUpdate modules failed.February 3, 2018 at 12:15 pm #13441Thanks everyone.
I strongly suggest reading the “Notice” part on the first post here to clear up some confusion.@amon I recommend going through the “test1” source for a list of problems.
I’m documenting them as I find them. 🙂@degac Thanks, I’ll keep working but I’ll need some help. 😉
And right you are about the Monkey2 version, your version of Monkey2 doesn’t have “__ARCH__” yet.
You’ll have to be using 1.1.09 at least I believe, and I think Monkey2 is at 1.1.10 as of right now.February 9, 2018 at 6:07 am #13571Oh wow, I’d love go see this running on Linux.
I see the gtk error. I’m pretty sure it has to do with not using the pkg-config compiler option, though I’m not familiar enough yet with M2 to fix this
February 9, 2018 at 6:16 am #13572Got a step closer compiling on linux. To test the pkg-config hunch out, I edited env_linux.txt:
MX2_CPP_OPTS_LINUX_RELEASE=-O3 -DNDEBUG pkg-config --cflags --libs gtk+-3.0
note: the above does not display correctly here. There are backquotes surrounding the entire last part beginning at pkg-config, and ending after gtk+-3.0.
and there are no more gtk header errors, though now there’s a boatload of other errors:
viavacavi@viavacavi-ThinkPad-P70:~/Dropbox/monkey2/bin$ ./mx2cc_linux makemods -clean -target=desktop -config=release m2libui
Mx2cc version 1.1.10
***** Making module ‘m2libui’ (linux release x64 gcc) *****
Parsing…
Semanting…
Translating…
Compiling…
Build error: System command failed:g++ -c -std=c++11 -O3 -DNDEBUG pkg-config --cflags --libs gtk+-3.0 -I”/home/viavacavi/Dropbox/monkey2/modules/” -I”/home/viavacavi/Dropbox/monkey2/modules/monkey/native” -o “/home/viavacavi/Dropbox/monkey2/modules/m2libui/m2libui.buildv1.1.10/linux_release/build/m2libui_0makefile_00linux.cpp.o” “/home/viavacavi/Dropbox/monkey2/modules/m2libui/m2libui.buildv1.1.10/linux_release/src/m2libui_makefile_0linux.cpp”
In file included from /home/viavacavi/Dropbox/monkey2/modules/m2libui/m2libui.buildv1.1.10/linux_release/include/m2libui_makefile_0linux.h:6:0,
from /home/viavacavi/Dropbox/monkey2/modules/m2libui/m2libui.buildv1.1.10/linux_release/src/m2libui_makefile_0linux.cpp:2:
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:5:2: error: ‘cairo_t’ does not name a type; did you mean ‘caddr_t’?
cairo_t *cr;
^~~~~~~
caddr_t
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:9:21: error: variable or field ‘runPath’ declared void
extern void runPath(uiDrawPath *p, cairo_t *cr);
^~~~~~~~~~
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:9:21: error: ‘uiDrawPath’ was not declared in this scope
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:9:21: note: suggested alternative: ‘uiDrawContext’
extern void runPath(uiDrawPath *p, cairo_t *cr);
^~~~~~~~~~
uiDrawContext
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:9:33: error: ‘p’ was not declared in this scope
extern void runPath(uiDrawPath *p, cairo_t *cr);
^
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:9:36: error: ‘cairo_t’ was not declared in this scope
extern void runPath(uiDrawPath *p, cairo_t *cr);
^~~~~~~
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:9:36: note: suggested alternative: ‘caddr_t’
extern void runPath(uiDrawPath *p, cairo_t *cr);
^~~~~~~
caddr_t
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:9:45: error: ‘cr’ was not declared in this scope
extern void runPath(uiDrawPath *p, cairo_t *cr);
^~
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:10:8: error: ‘uiDrawFillMode’ does not name a type
extern uiDrawFillMode pathFillMode(uiDrawPath *path);
^~~~~~~~~~~~~~
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:13:17: error: variable or field ‘m2c’ declared void
extern void m2c(uiDrawMatrix *m, cairo_matrix_t *c);
^~~~~~~~~~~~
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:13:17: error: ‘uiDrawMatrix’ was not declared in this scope
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:13:17: note: suggested alternative: ‘uiDrawContext’
extern void m2c(uiDrawMatrix *m, cairo_matrix_t *c);
^~~~~~~~~~~~
uiDrawContext
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:13:31: error: ‘m’ was not declared in this scope
extern void m2c(uiDrawMatrix *m, cairo_matrix_t *c);
^
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:13:34: error: ‘cairo_matrix_t’ was not declared in this scope
extern void m2c(uiDrawMatrix *m, cairo_matrix_t *c);
^~~~~~~~~~~~~~
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:13:34: note: suggested alternative: ‘cairo_matrix_copy’
extern void m2c(uiDrawMatrix *m, cairo_matrix_t *c);
^~~~~~~~~~~~~~
cairo_matrix_copy
/home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/draw.h:13:50: error: ‘c’ was not declared in this scope
extern void m2c(uiDrawMatrix *m, cairo_matrix_t *c);
^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from /home/viavacavi/Dropbox/monkey2/modules/m2libui/libui-master/unix/uipriv_unix.h:6,
from /home/viavacavi/Dropbox/monkey2/modules/m2libui/m2libui.buildv1.1.10/linux_release/include/m2libui_makefile_0linux.h:7,
from /home/viavacavi/Dropbox/monkey2/modules/m2libui/m2libui.buildv1.1.10/linux_release/src/m2libui_makefile_0linux.cpp:2:
/usr/include/glib-2.0/gio/glistmodel.h: In function ‘GListModel* G_LIST_MODEL(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1573:73: warning: ‘GType g_list_model_get_type()’ is deprecated: Not available before 2.44 [-Wdeprecated-declarations]
return G_TYPE_CHECK_INSTANCE_CAST (ptr, module_obj_name##_get_type (), ModuleObjName); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2224:61: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^~
/usr/include/glib-2.0/gobject/gtype.h:1573:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
return G_TYPE_CHECK_INSTANCE_CAST (ptr, module_obj_name##_get_type (), ModuleObjName); } \
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/glistmodel.h:36:1: note: in expansion of macro ‘G_DECLARE_INTERFACE’
G_DECLARE_INTERFACE(GListModel, g_list_model, G, LIST_MODEL, GObject)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/glistmodel.h:36:33: note: declared here
G_DECLARE_INTERFACE(GListModel, g_list_model, G, LIST_MODEL, GObject)
^
/usr/include/glib-2.0/gobject/gtype.h:1565:9: note: in definition of macro ‘G_DECLARE_INTERFACE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/glistmodel.h: In function ‘gboolean G_IS_LIST_MODEL(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1575:73: warning: ‘GType g_list_model_get_type()’ is deprecated: Not available before 2.44 [-Wdeprecated-declarations]
return G_TYPE_CHECK_INSTANCE_TYPE (ptr, module_obj_name##_get_type ()); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2238:60: note: in definition of macro ‘_G_TYPE_CIT’
GTypeInstance *__inst = (GTypeInstance*) ip; GType __t = gt; gboolean __r; \
^~
/usr/include/glib-2.0/gobject/gtype.h:1575:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
return G_TYPE_CHECK_INSTANCE_TYPE (ptr, module_obj_name##_get_type ()); } \
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/glistmodel.h:36:1: note: in expansion of macro ‘G_DECLARE_INTERFACE’
G_DECLARE_INTERFACE(GListModel, g_list_model, G, LIST_MODEL, GObject)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/glistmodel.h:36:33: note: declared here
G_DECLARE_INTERFACE(GListModel, g_list_model, G, LIST_MODEL, GObject)
^
/usr/include/glib-2.0/gobject/gtype.h:1565:9: note: in definition of macro ‘G_DECLARE_INTERFACE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/glistmodel.h: In function ‘GListModelInterface* G_LIST_MODEL_GET_IFACE(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1577:76: warning: ‘GType g_list_model_get_type()’ is deprecated: Not available before 2.44 [-Wdeprecated-declarations]
return G_TYPE_INSTANCE_GET_INTERFACE (ptr, module_obj_name##_get_type (), ModuleObjName##Interface); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2234:103: note: in definition of macro ‘_G_TYPE_IGI’
#define _G_TYPE_IGI(ip, gt, ct) ((ct*) g_type_interface_peek (((GTypeInstance*) ip)->g_class, gt))
^~
/usr/include/glib-2.0/gobject/gtype.h:1577:12: note: in expansion of macro ‘G_TYPE_INSTANCE_GET_INTERFACE’
return G_TYPE_INSTANCE_GET_INTERFACE (ptr, module_obj_name##_get_type (), ModuleObjName##Interface); } \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/glistmodel.h:36:1: note: in expansion of macro ‘G_DECLARE_INTERFACE’
G_DECLARE_INTERFACE(GListModel, g_list_model, G, LIST_MODEL, GObject)
^~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/glistmodel.h:36:33: note: declared here
G_DECLARE_INTERFACE(GListModel, g_list_model, G, LIST_MODEL, GObject)
^
/usr/include/glib-2.0/gobject/gtype.h:1565:9: note: in definition of macro ‘G_DECLARE_INTERFACE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gliststore.h: In function ‘GListStore* G_LIST_STORE(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1404:73: warning: ‘GType g_list_store_get_type()’ is deprecated: Not available before 2.44 [-Wdeprecated-declarations]
return G_TYPE_CHECK_INSTANCE_CAST (ptr, module_obj_name##_get_type (), ModuleObjName); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2224:61: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^~
/usr/include/glib-2.0/gobject/gtype.h:1404:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
return G_TYPE_CHECK_INSTANCE_CAST (ptr, module_obj_name##_get_type (), ModuleObjName); } \
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gliststore.h:36:1: note: in expansion of macro ‘G_DECLARE_FINAL_TYPE’
G_DECLARE_FINAL_TYPE(GListStore, g_list_store, G, LIST_STORE, GObject)
^~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gliststore.h:36:34: note: declared here
G_DECLARE_FINAL_TYPE(GListStore, g_list_store, G, LIST_STORE, GObject)
^
/usr/include/glib-2.0/gobject/gtype.h:1396:9: note: in definition of macro ‘G_DECLARE_FINAL_TYPE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gliststore.h: In function ‘gboolean G_IS_LIST_STORE(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1406:73: warning: ‘GType g_list_store_get_type()’ is deprecated: Not available before 2.44 [-Wdeprecated-declarations]
return G_TYPE_CHECK_INSTANCE_TYPE (ptr, module_obj_name##_get_type ()); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2238:60: note: in definition of macro ‘_G_TYPE_CIT’
GTypeInstance *__inst = (GTypeInstance*) ip; GType __t = gt; gboolean __r; \
^~
/usr/include/glib-2.0/gobject/gtype.h:1406:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
return G_TYPE_CHECK_INSTANCE_TYPE (ptr, module_obj_name##_get_type ()); } \
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gliststore.h:36:1: note: in expansion of macro ‘G_DECLARE_FINAL_TYPE’
G_DECLARE_FINAL_TYPE(GListStore, g_list_store, G, LIST_STORE, GObject)
^~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gio/gliststore.h:36:34: note: declared here
G_DECLARE_FINAL_TYPE(GListStore, g_list_store, G, LIST_STORE, GObject)
^
/usr/include/glib-2.0/gobject/gtype.h:1396:9: note: in definition of macro ‘G_DECLARE_FINAL_TYPE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h: In function ‘GtkNativeDialog* GTK_NATIVE_DIALOG(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1495:73: warning: ‘GType gtk_native_dialog_get_type()’ is deprecated: Not available before 3.20 [-Wdeprecated-declarations]
return G_TYPE_CHECK_INSTANCE_CAST (ptr, module_obj_name##_get_type (), ModuleObjName); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2224:61: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^~
/usr/include/glib-2.0/gobject/gtype.h:1495:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
return G_TYPE_CHECK_INSTANCE_CAST (ptr, module_obj_name##_get_type (), ModuleObjName); } \
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h:33:1: note: in expansion of macro ‘G_DECLARE_DERIVABLE_TYPE’
G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h:33:44: note: declared here
G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
^
/usr/include/glib-2.0/gobject/gtype.h:1486:9: note: in definition of macro ‘G_DECLARE_DERIVABLE_TYPE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h: In function ‘GtkNativeDialogClass* GTK_NATIVE_DIALOG_CLASS(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1497:70: warning: ‘GType gtk_native_dialog_get_type()’ is deprecated: Not available before 3.20 [-Wdeprecated-declarations]
return G_TYPE_CHECK_CLASS_CAST (ptr, module_obj_name##_get_type (), ModuleObjName##Class); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2226:55: note: in definition of macro ‘_G_TYPE_CCC’
((ct*) g_type_check_class_cast ((GTypeClass*) cp, gt))
^~
/usr/include/glib-2.0/gobject/gtype.h:1497:12: note: in expansion of macro ‘G_TYPE_CHECK_CLASS_CAST’
return G_TYPE_CHECK_CLASS_CAST (ptr, module_obj_name##_get_type (), ModuleObjName##Class); } \
^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h:33:1: note: in expansion of macro ‘G_DECLARE_DERIVABLE_TYPE’
G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h:33:44: note: declared here
G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
^
/usr/include/glib-2.0/gobject/gtype.h:1486:9: note: in definition of macro ‘G_DECLARE_DERIVABLE_TYPE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h: In function ‘gboolean GTK_IS_NATIVE_DIALOG(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1499:73: warning: ‘GType gtk_native_dialog_get_type()’ is deprecated: Not available before 3.20 [-Wdeprecated-declarations]
return G_TYPE_CHECK_INSTANCE_TYPE (ptr, module_obj_name##_get_type ()); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2238:60: note: in definition of macro ‘_G_TYPE_CIT’
GTypeInstance *__inst = (GTypeInstance*) ip; GType __t = gt; gboolean __r; \
^~
/usr/include/glib-2.0/gobject/gtype.h:1499:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
return G_TYPE_CHECK_INSTANCE_TYPE (ptr, module_obj_name##_get_type ()); } \
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h:33:1: note: in expansion of macro ‘G_DECLARE_DERIVABLE_TYPE’
G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h:33:44: note: declared here
G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
^
/usr/include/glib-2.0/gobject/gtype.h:1486:9: note: in definition of macro ‘G_DECLARE_DERIVABLE_TYPE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h: In function ‘gboolean GTK_IS_NATIVE_DIALOG_CLASS(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1501:70: warning: ‘GType gtk_native_dialog_get_type()’ is deprecated: Not available before 3.20 [-Wdeprecated-declarations]
return G_TYPE_CHECK_CLASS_TYPE (ptr, module_obj_name##_get_type ()); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2248:55: note: in definition of macro ‘_G_TYPE_CCT’
GTypeClass *__class = (GTypeClass*) cp; GType __t = gt; gboolean __r; \
^~
/usr/include/glib-2.0/gobject/gtype.h:1501:12: note: in expansion of macro ‘G_TYPE_CHECK_CLASS_TYPE’
return G_TYPE_CHECK_CLASS_TYPE (ptr, module_obj_name##_get_type ()); } \
^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h:33:1: note: in expansion of macro ‘G_DECLARE_DERIVABLE_TYPE’
G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtknativedialog.h:33:44: note: declared here
G_DECLARE_DERIVABLE_TYPE (GtkNativeDialog, gtk_native_dialog, GTK, NATIVE_DIALOG, GObject)
^
/usr/include/glib-2.0/gobject/gtype.h:1486:9: note: in definition of macro ‘G_DECLARE_DERIVABLE_TYPE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkfilechoosernative.h: In function ‘GtkFileChooserNative* GTK_FILE_CHOOSER_NATIVE(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1404:73: warning: ‘GType gtk_file_chooser_native_get_type()’ is deprecated: Not available before 3.20 [-Wdeprecated-declarations]
return G_TYPE_CHECK_INSTANCE_CAST (ptr, module_obj_name##_get_type (), ModuleObjName); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2224:61: note: in definition of macro ‘_G_TYPE_CIC’
((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
^~
/usr/include/glib-2.0/gobject/gtype.h:1404:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
return G_TYPE_CHECK_INSTANCE_CAST (ptr, module_obj_name##_get_type (), ModuleObjName); } \
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkfilechoosernative.h:34:1: note: in expansion of macro ‘G_DECLARE_FINAL_TYPE’
G_DECLARE_FINAL_TYPE (GtkFileChooserNative, gtk_file_chooser_native, GTK, FILE_CHOOSER_NATIVE, GtkNativeDialog)
^~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkfilechoosernative.h:34:45: note: declared here
G_DECLARE_FINAL_TYPE (GtkFileChooserNative, gtk_file_chooser_native, GTK, FILE_CHOOSER_NATIVE, GtkNativeDialog)
^
/usr/include/glib-2.0/gobject/gtype.h:1396:9: note: in definition of macro ‘G_DECLARE_FINAL_TYPE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkfilechoosernative.h: In function ‘gboolean GTK_IS_FILE_CHOOSER_NATIVE(gpointer)’:
/usr/include/glib-2.0/gobject/gtype.h:1406:73: warning: ‘GType gtk_file_chooser_native_get_type()’ is deprecated: Not available before 3.20 [-Wdeprecated-declarations]
return G_TYPE_CHECK_INSTANCE_TYPE (ptr, module_obj_name##_get_type ()); } \
^
/usr/include/glib-2.0/gobject/gtype.h:2238:60: note: in definition of macro ‘_G_TYPE_CIT’
GTypeInstance *__inst = (GTypeInstance*) ip; GType __t = gt; gboolean __r; \
^~
/usr/include/glib-2.0/gobject/gtype.h:1406:12: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
return G_TYPE_CHECK_INSTANCE_TYPE (ptr, module_obj_name##_get_type ()); } \
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkfilechoosernative.h:34:1: note: in expansion of macro ‘G_DECLARE_FINAL_TYPE’
G_DECLARE_FINAL_TYPE (GtkFileChooserNative, gtk_file_chooser_native, GTK, FILE_CHOOSER_NATIVE, GtkNativeDialog)
^~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkfilechoosernative.h:34:45: note: declared here
G_DECLARE_FINAL_TYPE (GtkFileChooserNative, gtk_file_chooser_native, GTK, FILE_CHOOSER_NATIVE, GtkNativeDialog)
^
/usr/include/glib-2.0/gobject/gtype.h:1396:9: note: in definition of macro ‘G_DECLARE_FINAL_TYPE’
GType module_obj_name##_get_type (void); \
^~~~~~~~~~~~~~~***** Fatal mx2cc error *****
Internal mx2cc build error
February 9, 2018 at 2:22 pm #13574Sweet, one step closer!
I’ll have to install Linux on a laptop or something and give this a try.
Swamped with other work right now so it’ll have to wait.Thanks for the update though jondecker76!
February 9, 2018 at 6:14 pm #13579From the little reading that i’ve been able to do, it seems that libui is normally built with cmake on linux. I wonder if this is the last missing piece. Unfortunately, I’m not yet familiar at all with the Monkey2 build process to try much of anything out
February 9, 2018 at 6:24 pm #13580It’s using cmake on all platforms, even Windows.
All cmake really does is read the “CMake” files and moves the needed files for your system into a folder, then it uses external compiling tools, such as MinGW or MSVC etc. that you’ve already installed on your system.
That’s a very simplified explanation heh, but it doesn’t actually do any compiling or such itself, it’s just a very fancy file/project organizer.You should be fine with just importing the needed Linux files yourself and compiling via Monkey2.
No external tools or compiling should be needed, other than the libs it uses of course.I noticed there were some extra “.h” files in the Linux folder, those might be needed.
But as I said, I’ll have to install Linux on one of my laptops before I can do some real testing :/February 9, 2018 at 6:40 pm #13582I’ll give it a go if you can give me a little direction (I’m still trying to wrap my head around Mx2)
Where do I need to import files? I have a little extra time and would love to see this runningApril 15, 2018 at 8:27 pm #14371Have you had any time to update this to fix what was not working?
-
AuthorPosts
You must be logged in to reply to this topic.