hello:
.nimble/pkgs/gintro-0.6.0/gintro/cairoimpl.nim(614, 22) Error: undeclared identifier: 'Rectangle'
Thank you for your error report.
But you should really not pollute this forum with such stupid messages!
Nim packages are generally hosted at github, and there are issue trackers.
For gintro it is https://github.com/StefanSalewski/gintro/issues
For your message: It is not that easy to guess for me what the reason for the error may be. I installed gintro v0.6.0 successfully on my Linux box some hours ago and compiled and run all the provided examples. Will try to guess tomorow, but maybe we have to wait for a smarter bug report. Smart in this case means, that you can generally try to locate the source of the error yourself. gintro generally installs in /home/stefan/.nimble/pkgs/gintro-0.6.0/gintro and the files are ordinary text files, which you can investigate. If you can not do that, you can at least report your OS, your GTK version, your Nim version. And most important, does the error show up during nimble install, or when you try to compile your own program. In the later case, it may depend on your specific program -- how can I know?
Please use gintro 0.5.5 for now until we have fixed the bug.
It should be not related to GTK4, I have tested with only GTK3.
For all your problems: Of course you can ask in this forum or where ever you want, but it should be understandable for others at least, and maybe should concern others too. For your cell data function issue, well I can understand that you want a very fast fix, but how can you imagine that your cross post in
https://stackoverflow.com/questions/58592421/nim-lang-help-setcelldatafunc-gtk3
could be understood by someone there?
I am on linux and update regularly I even publish a procedure to automate the maintenance of the system ubuntu (Xubuntu) a bit like manjaro 03.22.30
the problem of rectangle is recompiling listview.name from a month ago that he output this message
version lib gtk 03.22.30
Thanks for confirming.
That version is really old -- I am using 3.24 for very long time now, currently 3.24.10.
Indeed basic gobject-introspection was added to cairo upstream some months after I started with the gobject-introspection bindings about 3 years ago. See
https://mail.gnome.org/archives/gtk-list/2017-May/msg00012.html
For now please try to reinstall the older gintro 0.5.5 -- that version was not that bad, but has no gstreamer support. If some more people should have issues with cairo data types in v0.6, then I will consider changing the implementation. But current implementation seems to be a good, clean solution: I get the basic data types from gobject-introspection, and add advanced functionality manually by cairoimpl.nim which is included.
I hope you can find the nimble command to install an older tagged version, 0.5.5 in this case.
Miram gave that command on IRC about one year ago. For installing latest commit command is nimble install packagename@#head from nimble docs, so I would assume that it may be $ nimble install gintro@#v0.5.5. Maybe do nimble uninstall gintro before.
hello, I was careful to fork 0.5.5. it works without any problems .... I work on a stable xubuntu 18.4.3 .... sorry to have bothered you, I know how much we can have at heart that what we publish is correct ... .. I will see how to evolve my system but apparently I am tied to the stable ..... this is the price to pay .... in short it is a long debate ....
A big thank you for taking the time to answer
I deeply believe that this is the best solution what you have done, for many reasons. because "niup" would have been an alternative but it remains random, when I worked I took 2 years to make the choice of the compiler, the database the choice of the mistletoe and the lib to print, for the society and for the good of the team. my choice is found validated with the time, (I was working on IBM proprietary, a big system and I wanted to link the PC world) with this interface I could talk "machine press" and avoided the loss on the market of work .... my idea was so simple that the international company honored me ... All this to tell you that what you have undertaken is solid ...... GTK is pure "C" and a fundamental on which relies those who work on linux, see also the portability today which generalizes it. Even if I was a manager, I always put my hands in the code, it's my career that want that ....
@cndkhuong
have replied to your issue already at github: https://github.com/StefanSalewski/gintro/issues/60
If you wrote something here as a new forum user it may take some time until text will become visible.