Have you contacted the author via github issue tracker or email already?
I strongly recommend to do that first, as this forum has hundreds of readers, most of them not interested in gintro.
Gintro not compile package ??
And why shout that loud with two "??"
my system is up to date (manjaro)
Is that message helpful? The Nim compiler Version and GTK version would be more interesting. I guess manjaro is some Linux system? 32 or 64 bit?
The problem is interesting indeed, as we have not updated the gintro package in the last 2 months. (I have prepared version 0.8.2 on my local computer already, but not shipped it to github.) And old versions like 0.7.7 should continue to work.
And before Araq tells us again that we should ship prebuilt packages instead creating the bindings during install: We have discussed that problem already, summary is in the framed box in http://ssalewski.de/gtkprogramming.html#_installation_of_gtk titled "The GTK Nim Bindings".
I will investigate this issue soon -- it is early in the morning here, and Day of German unity.
The Nim error message is not that bad:
Error: unhandled exception: /tmp/gintrosalewski/gen.nim(1011, 18) replist.len == 0
So let us visit that line in gintro/tests/gen.nim
if (gFunctionInfoGetFlags(mInfo).int and GIFunctionInfoFlags.IS_CONSTRUCTOR.int) != 0:
assert replist.len == 0 # ok it's a fact for constructors, so we don't have to generate code for it
So it seems to be an GTK update which breaks that assert statement.
I will see what I can do do about it.
And before Araq tells us again that we should ship prebuilt packages instead creating the bindings during install: We have discussed that problem already, summary is in the framed box in http://ssalewski.de/gtkprogramming.html#_installation_of_gtk titled "The GTK Nim Bindings".
I can't help it.
One often raised argument is quality insurance and audit support.
It's "quality assurance".
Well we would have to provide at least 6 different sets of the bindings — for Linux, Windows, Mac, each in 32 and 64 bit variant.
I personally wrapped Gtk 2, thousands and thousands of lines, back then with c2nim or even with pas2nim, it worked, and ensuring the generated Nim code keeps compiling wouldn't be that much of a burden. I didn't provide these different variants you mention, instead my Nim code had when statements and the translator translated #ifdef to when. Writing higher level code on top of the low level layer is much work but can be automated too and is completely independent from the fact that you generate the wrapper on the target machine.
Generating the wrapper code on the target machine remains to be a bad idea. Generating a wrapper is a complex piece of logic with thousands of ways to fail. Not to mention that you cannot move the binary to a different computer reliably then either, frankly, it's an amateurish setup. If you want Nim's ecosystem to grow and people not to leave, help us to provide an ecosystem that is rock-solid.
I have just installed gintro 0.8.1 on my Gentoo Linux again without problems.
I am using gtk+-3.24.22. Gtk+-3.24 should have a stable API, so I would not really expect problems. Maybe it is indeed your new vte 0.62.0-1
Unfortunately for Gentoo it is not yet available from the package management system.
https://packages.gentoo.org/packages/x11-libs/vte
I will see if I can push gentoo maintainers to make 0.62 available or if I can install it from sources. Exotic packages like vte and gstreamer generate generally much more trouble than the gtk core packages as they are developed not by GTK core devs and are used by only few people.
my compilations in c / c ++ works
like the example on http://ssalewski.de/gtkprogramming.html#_installation_of_gtk
linux 34 bits
gkt3 3.24.23.1
vte3 0.62.1 update 25/09/2020
nimble install gintro@#head or nimble install gintro
I'm giving you the worry excuse me
ps: it's not by the minute ;)
Hello :
I saved the pkgs "gintro@#head" which was best suited
I respected the installation mode as recommended.
I just updated my Linux 64 system (Manjaro)
i usually never have a problem for 3 years
after the problem ... i just copied the pkgs just to see and everything worked, but it's not the right solution
VTE: it's true that I work with it a lot, which I find clearly above xterm
please excuse me for my english
I have installed latest vte from sources, and it installs fine.
So I assume it is another one of the about 30 gintro packages.
You should know the package name, as you generally get all processed packages listed when you do the nimble install, but you did not told us.
I could try to fix it by adding the replist code for constructors, but as I can not test it currently it makes not much sense.
I could try to install manjaro linux myself, but as I am unfamiliar with it it would cost some of my time.
Got it :-)
Just manage to install gstreamer from latest sources with
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git
and the ninja/meson stuff. (see https://discourse.gnome.org/t/installing-gtk4-for-testing-on-opt-ii/3349/4)
And I finally get the same error as you get. Will investigate and fix it in the next days.
Merci thank you
there is no emergency for the moment I use my backup copy
The issue is indeed a single function from gst module, see
https://discourse.gnome.org/t/gst-1-18-gst-structure-from-string-and-introspection/4417
In gst 1.16 it was a plain function, now it is a constructor but one with an out parameter.
I will see if I can get some advice from E. Bassi.
OK, I have pushed the gst fix to github. Please test with
nimble install gintro@#head
If it works it will become v0.8.2
You have already gkt3 3.24.23.1 while I have only gkt3 3.24.22, so there is a minimal risk that it may not work for you.
Would be nice if you could also test the gstreamer example. For me it works with my gst lib 1.16, but not with the latest gst lib which I installed from latest source yesterday. There are two explanations: My install from sources may be incomplete, or maybe the gst tutorial examples do not work any more with gst 1.18.
thank you
Maybe for your OS you have to install additional GTK related packages? We continue with the remaining packages...
Hello I just tested intro @ # head the installation is going well I also tested & recompiled my different modules everything is correct VTE3 or GTK3 interactive job
my designer for VTE3 which attacks hard VTE3 works without error
ps i didn't know how to reach you so i used this channel but I found your email address
next time, if there is a next time i would go through this channel