-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[error] Linux/gtk3 undeclared identifier: 'Rectangle #62
Comments
Oh, seems to be again I have intentionally not closed that one, but its author closed it. If you live in the free world, then try to get a recent gtk version. If you are from China, then I can currently not really help you, sorry. Tomorrow I will ship version 0.7 with ARC support! |
The other typelib error I will investigate tomorow in more detail... |
I hope you have fixed your issue by using a recent gtk version now or by following #issue60 and the related forum posts. Your gtk must be really old, older than one year at least. For the typelib issue I would have tow guesses: Maybe your gtk is so old that there is no cairo support at all. Or maybe you have no gtksourceview support by default -- some distros have separate dev packages for gtksourceview. It would be hard for me to examine this in detail. Note that I do not really recommend gintro for all users. There are many other GUI packages now, see |
hello |
Hi, this is happening for me as well right now too. |
Well, and the solution is still obviously: Use a recent GTK, not one much older than a year. I would care for this problem if there would be many complaints from china or poor african states, but I think all came from the free and rich world, where a recent GTK should be available. Other solutions have been described, one was removing the include statement in cairo.nim, the other using an older gintro version. |
unfortunately the latest version is not necessarily the official version for some distributions. Ubuntu have preferred some back-port for stability reasons I found a simple solution, just adding these lines (from line 108) in
may be not a good solution but this works very well for me (I had same problem and bring same solution for Crystal Lang, unfortunately Crystal doesn't work on Windows )
|
I would have assumed that much more than just Rectangle type is missing. But maybe the other missing data types are not needed directly. Fine that it works for you. The reason for the problem is, that cairo is not really supported by gobject-introspection. In old GTK it was nearly unsupported, but in newer GTK at least the elementary data types are provided. Initially I had created the whole cairo module manually by c2nim, now I take the types provided by gobject-introspection from there. |
Thanks for your answer
My needs are limited so that's enough for me
Very good work so please continue
No sure GTK future will be. GTK4 seem not to be closed to be released so we
will see. Some distribution prefer to remain on ancient version more stable
so this is important to support them ;-)
Le dim. 12 avr. 2020 à 14:24, StefanSalewski <[email protected]> a
écrit :
… I would have assumed that much more than just Rectangle type is missing.
But maybe the other missing data types are not needed directly. Fine that
it works for you.
The reason for the problem is, that cairo is not really supported by
gobject-introspection. In old GTK it was nearly unsupported, but in newer
GTK at least the elementary data types are provided. Initially I had
created the whole cairo module manually by c2nim, now I take the types
provided by gobject-introspection from there.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGFC7XNFGTMF6I5K746ZJTRMGXGPANCNFSM4KLSL4JA>
.
|
Hello
I wanted to test gintro who seem really good but can't make demo on my Linux Mint19 see below
do you have some idea ?
thank's for your help and this lib
tested on Nim 1.0.4 and lastest Nim1.1.1
last git gintro
nim c -r label.nim
gintro-0.6.1/gintro/cairoimpl.nim(646, 22) Error: undeclared identifier: 'Rectangle
same error occur with makeAll (last line)
by the way during nimble install got this error
The text was updated successfully, but these errors were encountered: