Skip to content

Instantly share code, notes, and snippets.

@demotomohiro
Created October 9, 2020 22:12
Show Gist options
  • Save demotomohiro/5864300d09fc6326172e4dd8b44c07c8 to your computer and use it in GitHub Desktop.
Save demotomohiro/5864300d09fc6326172e4dd8b44c07c8 to your computer and use it in GitHub Desktop.
Test gintro in google colab
Display the source blob
Display the rendered blob
Raw
{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"gintro_test.ipynb","provenance":[],"collapsed_sections":[],"authorship_tag":"ABX9TyOiPF0c8GLZQjwkZGSVXE9j"},"kernelspec":{"name":"python3","display_name":"Python 3"}},"cells":[{"cell_type":"code","metadata":{"id":"v9de0ncQGQ1O","executionInfo":{"status":"ok","timestamp":1602280466326,"user_tz":-540,"elapsed":46061,"user":{"displayName":"Tomohiro Matsumoto","photoUrl":"","userId":"08011129079987103677"}},"outputId":"ad1b6ae5-e485-4eb2-fd92-98379f0e4841","colab":{"base_uri":"https://localhost:8080/","height":1000}},"source":["!cat /etc/lsb-release\n","!apt install gobject-introspection\n","!!pip install git+https://github.com/demotomohiro/nim4colab.git\n","%load_ext nim4colab\n","%nimble refresh\n","%nimble install gintro"],"execution_count":1,"outputs":[{"output_type":"stream","text":["DISTRIB_ID=Ubuntu\n","DISTRIB_RELEASE=18.04\n","DISTRIB_CODENAME=bionic\n","DISTRIB_DESCRIPTION=\"Ubuntu 18.04.5 LTS\"\n","Reading package lists... Done\n","Building dependency tree \n","Reading state information... Done\n","The following additional packages will be installed:\n"," python3-mako python3-markupsafe\n","Suggested packages:\n"," python3-beaker python-mako-doc\n","The following NEW packages will be installed:\n"," gobject-introspection python3-mako python3-markupsafe\n","0 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.\n","Need to get 343 kB of archives.\n","After this operation, 1,836 kB of additional disk space will be used.\n","Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-markupsafe amd64 1.0-1build1 [13.5 kB]\n","Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-mako all 1.0.7+ds1-1 [59.3 kB]\n","Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 gobject-introspection amd64 1.56.1-1 [270 kB]\n","Fetched 343 kB in 1s (568 kB/s)\n","Selecting previously unselected package python3-markupsafe.\n","(Reading database ... 144617 files and directories currently installed.)\n","Preparing to unpack .../python3-markupsafe_1.0-1build1_amd64.deb ...\n","Unpacking python3-markupsafe (1.0-1build1) ...\n","Selecting previously unselected package python3-mako.\n","Preparing to unpack .../python3-mako_1.0.7+ds1-1_all.deb ...\n","Unpacking python3-mako (1.0.7+ds1-1) ...\n","Selecting previously unselected package gobject-introspection.\n","Preparing to unpack .../gobject-introspection_1.56.1-1_amd64.deb ...\n","Unpacking gobject-introspection (1.56.1-1) ...\n","Setting up python3-markupsafe (1.0-1build1) ...\n","Setting up python3-mako (1.0.7+ds1-1) ...\n","Setting up gobject-introspection (1.56.1-1) ...\n","Processing triggers for man-db (2.8.3-2ubuntu0.1) ...\n","Installing Nim stable\n","done\n","Downloading Official package list\n"," Success Package list downloaded.\n","\n","Downloading https://github.com/stefansalewski/gintro using git\n","/tmp/nimble_404/githubcom_stefansalewskigintro/gintro_404.nims(27, 8) Warning: import os.nim instead; ospaths is deprecated [Deprecated]\n","preparing gintro\n","--2020-10-09 21:54:06-- https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/gobject.nim\n","Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...\n","Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 107533 (105K) [text/plain]\n","Saving to: ‘gobject.nim’\n","\n"," 0K .......... .......... .......... .......... .......... 47% 1.94M 0s\n"," 50K .......... .......... .......... .......... .......... 95% 4.16M 0s\n"," 100K ..... 100% 50.9M=0.04s\n","\n","2020-10-09 21:54:06 (2.77 MB/s) - ‘gobject.nim’ saved [107533/107533]\n","\n","--2020-10-09 21:54:06-- https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/glib.nim\n","Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...\n","Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 256798 (251K) [text/plain]\n","Saving to: ‘glib.nim’\n","\n"," 0K .......... .......... .......... .......... .......... 19% 1.88M 0s\n"," 50K .......... .......... .......... .......... .......... 39% 4.00M 0s\n"," 100K .......... .......... .......... .......... .......... 59% 10.2M 0s\n"," 150K .......... .......... .......... .......... .......... 79% 17.1M 0s\n"," 200K .......... .......... .......... .......... .......... 99% 5.23M 0s\n"," 250K 100% 1486G=0.06s\n","\n","2020-10-09 21:54:06 (4.44 MB/s) - ‘glib.nim’ saved [256798/256798]\n","\n","--2020-10-09 21:54:06-- https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/gir.nim\n","Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...\n","Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 33340 (33K) [text/plain]\n","Saving to: ‘gir.nim’\n","\n"," 0K .......... .......... .......... .. 100% 2.19M=0.01s\n","\n","2020-10-09 21:54:06 (2.19 MB/s) - ‘gir.nim’ saved [33340/33340]\n","\n","Hint: used config file '/root/nim-stable/nim/config/nim.cfg' [Conf]\n","Hint: system [Processing]\n","Hint: widestrs [Processing]\n","Hint: io [Processing]\n","Hint: gen [Processing]\n","Hint: os [Processing]\n","Hint: strutils [Processing]\n","Hint: parseutils [Processing]\n","Hint: math [Processing]\n","Hint: bitops [Processing]\n","Hint: macros [Processing]\n","Hint: algorithm [Processing]\n","Hint: unicode [Processing]\n","Hint: pathnorm [Processing]\n","Hint: osseps [Processing]\n","Hint: posix [Processing]\n","Hint: times [Processing]\n","Hint: options [Processing]\n","Hint: typetraits [Processing]\n","Hint: gir [Processing]\n","Hint: glib [Processing]\n","/tmp/gintrosalewski/glib.nim(2914, 3) Hint: 'G_NORMALIZE_NFKC' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(3040, 3) Hint: 'G_IO_FLAGS_GET_MASK' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(31, 3) Hint: 'GTK_DOC_IGNORE' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(34, 3) Hint: 'INC_STDLIB' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(1806, 3) Hint: 'G_TRAVERSE_MASK' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(26, 3) Hint: 'MINGW_H' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(1807, 3) Hint: 'G_TRAVERSE_LEAFS' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(23, 3) Hint: 'GLIB_COMPILATION' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(2912, 3) Hint: 'G_NORMALIZE_NFC' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(1808, 3) Hint: 'G_TRAVERSE_NON_LEAFS' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(2911, 3) Hint: 'G_NORMALIZE_NFD' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(22, 3) Hint: 'GLIB_H_INSIDE' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(4652, 3) Hint: 'G_REGEX_MATCH_PARTIAL_SOFT' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(27, 3) Hint: 'STDLIB_H' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(2913, 3) Hint: 'G_NORMALIZE_NFKD' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(29, 3) Hint: 'MSC_VER' is declared but not used [XDeclaredButNotUsed]\n","Hint: gobject [Processing]\n","/tmp/gintrosalewski/gobject.nim(645, 3) Hint: 'G_PARAM_READWRITE' is declared but not used [XDeclaredButNotUsed]\n","Hint: sequtils [Processing]\n","Hint: streams [Processing]\n","Hint: sets [Processing]\n","Hint: hashes [Processing]\n","Hint: tables [Processing]\n","Hint: combinatorics [Processing]\n","/tmp/gintrosalewski/gen.nim(748, 12) Hint: 'oldgobjectTemp' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/gen.nim(56, 10) Hint: 'isTypeInfo' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/gen.nim(156, 6) Hint: 'renumber' is declared but not used [XDeclaredButNotUsed]\n","CC: stdlib_assertions.nim\n","CC: stdlib_formatfloat.nim\n","CC: stdlib_io.nim\n","CC: stdlib_system.nim\n","CC: stdlib_math.nim\n","CC: stdlib_algorithm.nim\n","CC: stdlib_strutils.nim\n","CC: stdlib_pathnorm.nim\n","CC: stdlib_times.nim\n","CC: stdlib_os.nim\n","CC: glib.nim\n","CC: gobject.nim\n","CC: gir.nim\n","CC: stdlib_sequtils.nim\n","CC: stdlib_streams.nim\n","CC: stdlib_hashes.nim\n","CC: stdlib_sets.nim\n","CC: stdlib_tables.nim\n","CC: gen.nim\n","Hint: [Link]\n","Hint: 57008 LOC; 4.099 sec; 89.406MiB peakmem; Debug build; proj: /tmp/gintrosalewski/gen.nim; out: /tmp/gintrosalewski/gen [SuccessX]\n","First we try generating bindings for GTK4, this may fail when GTK4 is not properly installed\n","on your computer. But don't worry, you can still use GTK3\n","Failed to load Gtk\n","Typelib file for namespace 'Gtk', version '4.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gdk\n","Typelib file for namespace 'Gdk', version '4.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load GdkX11\n","Typelib file for namespace 'GdkX11', version '4.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gsk\n","Typelib file for namespace 'Gsk' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Graphene\n","Typelib file for namespace 'Graphene' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","\n","** (process:544): CRITICAL **: 21:54:10.635: g_irepository_get_shared_library: assertion 'typelib != NULL' failed\n","glib....................: Remaining delayed methods: 0 (Fine!)\n","Caution: No free/unref found for (g_enum_complete_type_info)\n","Caution: No free/unref found for (g_flags_complete_type_info)\n","gobject.................: Remaining delayed methods: 0 (Fine!)\n","gio.....................: Remaining delayed methods: 0 (Fine!)\n","Failed to load GdkPixbuf\n","Typelib file for namespace 'GdkPixbuf' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","gmodule.................: Remaining delayed methods: 0 (Fine!)\n","Failed to load Atk\n","Typelib file for namespace 'Atk' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Pango\n","Typelib file for namespace 'Pango' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load PangoCairo\n","Typelib file for namespace 'PangoCairo' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load PangoFT2\n","Typelib file for namespace 'PangoFT2' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load fontconfig\n","Typelib file for namespace 'fontconfig' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load freetype2\n","Typelib file for namespace 'freetype2' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","harfbuzz................: Remaining delayed methods: 0 (Fine!)\n","Failed to load Rsvg\n","Typelib file for namespace 'Rsvg' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load xlib\n","Typelib file for namespace 'xlib' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Notify\n","Typelib file for namespace 'Notify' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gst\n","Typelib file for namespace 'Gst' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load cairo\n","Typelib file for namespace 'cairo' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Generating bindings for GTK3...\n","Failed to load Gtk\n","Typelib file for namespace 'Gtk', version '3.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gdk\n","Typelib file for namespace 'Gdk', version '3.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load GdkX11\n","Typelib file for namespace 'GdkX11', version '3.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Graphene\n","Typelib file for namespace 'Graphene' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","\n","** (process:550): CRITICAL **: 21:54:19.086: g_irepository_get_shared_library: assertion 'typelib != NULL' failed\n","glib....................: Remaining delayed methods: 0 (Fine!)\n","Caution: No free/unref found for (g_enum_complete_type_info)\n","Caution: No free/unref found for (g_flags_complete_type_info)\n","gobject.................: Remaining delayed methods: 0 (Fine!)\n","gio.....................: Remaining delayed methods: 0 (Fine!)\n","Failed to load GdkPixbuf\n","Typelib file for namespace 'GdkPixbuf' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","gmodule.................: Remaining delayed methods: 0 (Fine!)\n","Failed to load GtkSource\n","Typelib file for namespace 'GtkSource' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Atk\n","Typelib file for namespace 'Atk' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Pango\n","Typelib file for namespace 'Pango' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load PangoCairo\n","Typelib file for namespace 'PangoCairo' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load PangoFT2\n","Typelib file for namespace 'PangoFT2' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load fontconfig\n","Typelib file for namespace 'fontconfig' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load freetype2\n","Typelib file for namespace 'freetype2' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","harfbuzz................: Remaining delayed methods: 0 (Fine!)\n","Failed to load Rsvg\n","Typelib file for namespace 'Rsvg' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load xlib\n","Typelib file for namespace 'xlib' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Vte\n","Typelib file for namespace 'Vte' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Notify\n","Typelib file for namespace 'Notify' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gst\n","Typelib file for namespace 'Gst' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Handy\n","Typelib file for namespace 'Handy' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load cairo\n","Typelib file for namespace 'cairo' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n"," Verifying dependencies for gintro@0.8.2\n"," Installing gintro@0.8.2\n"," Success: gintro installed successfully.\n","\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"xqWjebx_Vu2w","executionInfo":{"status":"ok","timestamp":1602280466328,"user_tz":-540,"elapsed":46049,"user":{"displayName":"Tomohiro Matsumoto","photoUrl":"","userId":"08011129079987103677"}},"outputId":"7c78ea52-aaed-478f-b433-8c03d9595ee6","colab":{"base_uri":"https://localhost:8080/","height":52}},"source":["!ls /usr/lib/x86_64-linux-gnu/girepository-1.0/"],"execution_count":2,"outputs":[{"output_type":"stream","text":["Gio-2.0.typelib\t\t GLib-2.0.typelib GObject-2.0.typelib\n","GIRepository-2.0.typelib GModule-2.0.typelib HarfBuzz-0.0.typelib\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"-zALrtefKV_r","executionInfo":{"status":"ok","timestamp":1602280466572,"user_tz":-540,"elapsed":46281,"user":{"displayName":"Tomohiro Matsumoto","photoUrl":"","userId":"08011129079987103677"}},"outputId":"034e8713-2009-405c-a597-1a9fc42199c5","colab":{"base_uri":"https://localhost:8080/","height":52}},"source":["!ls /root/.nimble/pkgs/gintro-0.8.2/gintro/"],"execution_count":3,"outputs":[{"output_type":"stream","text":["cairoimpl.nim gio.nim\t gisup4.nim gmodule.nim harfbuzz.nim\n","gimpl.nim gisup3.nim glib.nim gobject.nim\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"3fVKiJaOKpsS","executionInfo":{"status":"ok","timestamp":1602280466574,"user_tz":-540,"elapsed":46273,"user":{"displayName":"Tomohiro Matsumoto","photoUrl":"","userId":"08011129079987103677"}},"outputId":"c4977821-b125-4bb8-caf9-8919ac4bbb75","colab":{"base_uri":"https://localhost:8080/","height":545}},"source":["!head -n 30 /root/.nimble/pkgs/gintro-0.8.2/gintro/glib.nim"],"execution_count":4,"outputs":[{"output_type":"stream","text":["# dependencies:\n","# immediate dependencies:\n","# libraries:\n","# libglib-2.0.so.0,libgobject-2.0.so.0\n","{.warning[UnusedImport]: off.}\n","\n","const Lib = \"libglib-2.0.so.0\"\n","{.pragma: libprag, cdecl, dynlib: Lib.}\n","\n","type\n"," uint8Array* = pointer\n"," cdoubleArray* = pointer\n"," Variant00Array* = pointer\n"," gbooleanArray* = pointer\n"," LogField00Array* = pointer\n"," VariantType00Array* = pointer\n"," DebugKey00Array* = pointer\n"," PollFD00Array* = pointer\n"," int32Array* = pointer\n","\n","const GobjectLib* = \"\"\n","{.pragma: gobjectlibprag, cdecl, dynlib: GobjectLib.}\n","type\n"," GException* = object of CatchableError\n","type\n"," GArray00* = pointer\n","type\n"," Regex00Array* = pointer\n","type\n"," ucstring* = distinct cstring\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"B5Tf5fRaL0AP","executionInfo":{"status":"ok","timestamp":1602280489441,"user_tz":-540,"elapsed":69128,"user":{"displayName":"Tomohiro Matsumoto","photoUrl":"","userId":"08011129079987103677"}},"outputId":"7bead973-2a33-4bf1-ac0c-d4b1a5bb663a","colab":{"base_uri":"https://localhost:8080/","height":1000}},"source":["%nimble install https://github.com/demotomohiro/gintro.git@#fix-empty-dynlib"],"execution_count":5,"outputs":[{"output_type":"stream","text":["Downloading https://github.com/demotomohiro/gintro.git using git\n","/tmp/nimble_567/githubcom_demotomohirogintrogit_#fix-empty-dynlib/gintro_567.nims(27, 8) Warning: import os.nim instead; ospaths is deprecated [Deprecated]\n","preparing gintro\n","--2020-10-09 21:54:30-- https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/gobject.nim\n","Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...\n","Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 107533 (105K) [text/plain]\n","Saving to: ‘gobject.nim’\n","\n"," 0K .......... .......... .......... .......... .......... 47% 1.87M 0s\n"," 50K .......... .......... .......... .......... .......... 95% 4.04M 0s\n"," 100K ..... 100% 13.4M=0.04s\n","\n","2020-10-09 21:54:31 (2.66 MB/s) - ‘gobject.nim’ saved [107533/107533]\n","\n","--2020-10-09 21:54:31-- https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/glib.nim\n","Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...\n","Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 256798 (251K) [text/plain]\n","Saving to: ‘glib.nim’\n","\n"," 0K .......... .......... .......... .......... .......... 19% 1.86M 0s\n"," 50K .......... .......... .......... .......... .......... 39% 4.02M 0s\n"," 100K .......... .......... .......... .......... .......... 59% 11.4M 0s\n"," 150K .......... .......... .......... .......... .......... 79% 5.54M 0s\n"," 200K .......... .......... .......... .......... .......... 99% 10.7M 0s\n"," 250K 100% 24.6M=0.06s\n","\n","2020-10-09 21:54:31 (4.36 MB/s) - ‘glib.nim’ saved [256798/256798]\n","\n","--2020-10-09 21:54:31-- https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/gir.nim\n","Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...\n","Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 33340 (33K) [text/plain]\n","Saving to: ‘gir.nim’\n","\n"," 0K .......... .......... .......... .. 100% 2.17M=0.01s\n","\n","2020-10-09 21:54:31 (2.17 MB/s) - ‘gir.nim’ saved [33340/33340]\n","\n","Hint: used config file '/root/nim-stable/nim/config/nim.cfg' [Conf]\n","Hint: system [Processing]\n","Hint: widestrs [Processing]\n","Hint: io [Processing]\n","Hint: gen [Processing]\n","Hint: os [Processing]\n","Hint: strutils [Processing]\n","Hint: parseutils [Processing]\n","Hint: math [Processing]\n","Hint: bitops [Processing]\n","Hint: macros [Processing]\n","Hint: algorithm [Processing]\n","Hint: unicode [Processing]\n","Hint: pathnorm [Processing]\n","Hint: osseps [Processing]\n","Hint: posix [Processing]\n","Hint: times [Processing]\n","Hint: options [Processing]\n","Hint: typetraits [Processing]\n","Hint: gir [Processing]\n","Hint: glib [Processing]\n","/tmp/gintrosalewski/glib.nim(2914, 3) Hint: 'G_NORMALIZE_NFKC' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(3040, 3) Hint: 'G_IO_FLAGS_GET_MASK' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(31, 3) Hint: 'GTK_DOC_IGNORE' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(34, 3) Hint: 'INC_STDLIB' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(1806, 3) Hint: 'G_TRAVERSE_MASK' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(26, 3) Hint: 'MINGW_H' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(1807, 3) Hint: 'G_TRAVERSE_LEAFS' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(23, 3) Hint: 'GLIB_COMPILATION' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(2912, 3) Hint: 'G_NORMALIZE_NFC' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(1808, 3) Hint: 'G_TRAVERSE_NON_LEAFS' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(2911, 3) Hint: 'G_NORMALIZE_NFD' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(22, 3) Hint: 'GLIB_H_INSIDE' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(4652, 3) Hint: 'G_REGEX_MATCH_PARTIAL_SOFT' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(27, 3) Hint: 'STDLIB_H' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(2913, 3) Hint: 'G_NORMALIZE_NFKD' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/glib.nim(29, 3) Hint: 'MSC_VER' is declared but not used [XDeclaredButNotUsed]\n","Hint: gobject [Processing]\n","/tmp/gintrosalewski/gobject.nim(645, 3) Hint: 'G_PARAM_READWRITE' is declared but not used [XDeclaredButNotUsed]\n","Hint: sequtils [Processing]\n","Hint: streams [Processing]\n","Hint: sets [Processing]\n","Hint: hashes [Processing]\n","Hint: tables [Processing]\n","Hint: combinatorics [Processing]\n","/tmp/gintrosalewski/gen.nim(748, 12) Hint: 'oldgobjectTemp' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/gen.nim(56, 10) Hint: 'isTypeInfo' is declared but not used [XDeclaredButNotUsed]\n","/tmp/gintrosalewski/gen.nim(156, 6) Hint: 'renumber' is declared but not used [XDeclaredButNotUsed]\n","CC: stdlib_system.nim\n","CC: gen.nim\n","Hint: [Link]\n","Hint: 57009 LOC; 2.943 sec; 89.508MiB peakmem; Debug build; proj: /tmp/gintrosalewski/gen.nim; out: /tmp/gintrosalewski/gen [SuccessX]\n","First we try generating bindings for GTK4, this may fail when GTK4 is not properly installed\n","on your computer. But don't worry, you can still use GTK3\n","Failed to load Gtk\n","Typelib file for namespace 'Gtk', version '4.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gdk\n","Typelib file for namespace 'Gdk', version '4.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load GdkX11\n","Typelib file for namespace 'GdkX11', version '4.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gsk\n","Typelib file for namespace 'Gsk' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Graphene\n","Typelib file for namespace 'Graphene' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Caution: No free/unref found for (g_enum_complete_type_info)\n","Caution: No free/unref found for (g_flags_complete_type_info)\n","gobject.................: Remaining delayed methods: 0 (Fine!)\n","glib....................: Remaining delayed methods: 0 (Fine!)\n","gio.....................: Remaining delayed methods: 0 (Fine!)\n","Failed to load GdkPixbuf\n","Typelib file for namespace 'GdkPixbuf' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","gmodule.................: Remaining delayed methods: 0 (Fine!)\n","Failed to load Atk\n","Typelib file for namespace 'Atk' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Pango\n","Typelib file for namespace 'Pango' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load PangoCairo\n","Typelib file for namespace 'PangoCairo' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load PangoFT2\n","Typelib file for namespace 'PangoFT2' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load fontconfig\n","Typelib file for namespace 'fontconfig' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load freetype2\n","Typelib file for namespace 'freetype2' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","harfbuzz................: Remaining delayed methods: 0 (Fine!)\n","Failed to load Rsvg\n","Typelib file for namespace 'Rsvg' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load xlib\n","Typelib file for namespace 'xlib' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Notify\n","Typelib file for namespace 'Notify' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gst\n","Typelib file for namespace 'Gst' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load cairo\n","Typelib file for namespace 'cairo' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Generating bindings for GTK3...\n","Failed to load Gtk\n","Typelib file for namespace 'Gtk', version '3.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gdk\n","Typelib file for namespace 'Gdk', version '3.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load GdkX11\n","Typelib file for namespace 'GdkX11', version '3.0' not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Graphene\n","Typelib file for namespace 'Graphene' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Caution: No free/unref found for (g_enum_complete_type_info)\n","Caution: No free/unref found for (g_flags_complete_type_info)\n","gobject.................: Remaining delayed methods: 0 (Fine!)\n","glib....................: Remaining delayed methods: 0 (Fine!)\n","gio.....................: Remaining delayed methods: 0 (Fine!)\n","Failed to load GdkPixbuf\n","Typelib file for namespace 'GdkPixbuf' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","gmodule.................: Remaining delayed methods: 0 (Fine!)\n","Failed to load GtkSource\n","Typelib file for namespace 'GtkSource' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Atk\n","Typelib file for namespace 'Atk' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Pango\n","Typelib file for namespace 'Pango' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load PangoCairo\n","Typelib file for namespace 'PangoCairo' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load PangoFT2\n","Typelib file for namespace 'PangoFT2' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load fontconfig\n","Typelib file for namespace 'fontconfig' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load freetype2\n","Typelib file for namespace 'freetype2' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","harfbuzz................: Remaining delayed methods: 0 (Fine!)\n","Failed to load Rsvg\n","Typelib file for namespace 'Rsvg' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load xlib\n","Typelib file for namespace 'xlib' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Vte\n","Typelib file for namespace 'Vte' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Notify\n","Typelib file for namespace 'Notify' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Gst\n","Typelib file for namespace 'Gst' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load Handy\n","Typelib file for namespace 'Handy' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n","Failed to load cairo\n","Typelib file for namespace 'cairo' (any version) not found\n","Maybe for your OS you have to install additional GTK related packages?\n","We continue with the remaining packages...\n"," Verifying dependencies for gintro@#fix-empty-dynlib\n"," Installing gintro@#fix-empty-dynlib\n"," Success: gintro installed successfully.\n","\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"8Q3jFPKsNEd5","executionInfo":{"status":"ok","timestamp":1602280489443,"user_tz":-540,"elapsed":69120,"user":{"displayName":"Tomohiro Matsumoto","photoUrl":"","userId":"08011129079987103677"}},"outputId":"1ddab031-9bc8-4fb2-b1cf-93e42fa77150","colab":{"base_uri":"https://localhost:8080/","height":545}},"source":["!head -n 30 /root/.nimble/pkgs/gintro-#fix-empty-dynlib/gintro/glib.nim"],"execution_count":6,"outputs":[{"output_type":"stream","text":["# dependencies:\n","# immediate dependencies:\n","# libraries:\n","# libglib-2.0.so.0,libgobject-2.0.so.0\n","{.warning[UnusedImport]: off.}\n","\n","const Lib = \"libglib-2.0.so.0\"\n","{.pragma: libprag, cdecl, dynlib: Lib.}\n","\n","type\n"," uint8Array* = pointer\n"," cdoubleArray* = pointer\n"," Variant00Array* = pointer\n"," gbooleanArray* = pointer\n"," LogField00Array* = pointer\n"," VariantType00Array* = pointer\n"," DebugKey00Array* = pointer\n"," PollFD00Array* = pointer\n"," int32Array* = pointer\n","\n","const GobjectLib* = \"libgobject-2.0.so.0\"\n","{.pragma: gobjectlibprag, cdecl, dynlib: GobjectLib.}\n","type\n"," GException* = object of CatchableError\n","type\n"," GArray00* = pointer\n","type\n"," Regex00Array* = pointer\n","type\n"," ucstring* = distinct cstring\n"],"name":"stdout"}]}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment