After some time I think I found a way to install GtkAda, now I found that gtkada-intl.adb is not present but there is gtkada-intl.gpd which looks very much at gtkada-intl.adb.There are some differences a number of lines starting with for instance #if and #end and so on. ban example is
function Gettext (Msg : UTF8_String) return UTF8_String is
function Internal (Msg : UTF8_String) return chars_ptr;
pragma Import (C, Internal, “gettext”);
begin
–#if HAVE_GETTEXT then
return Value (Internal (Msg & ASCII.NUL));
–#else
– return Msg;
–#end if;
end Gettext;
In the very large comment of the gtkada-intl.ads file is suggested that build_skeleton.pl can create gtkada-intl.adb. Can anybody can tell me how or have an already converted version of the file.
configure command (this is a shell script) detects available library and creates Makefile Then make executes commands from Makefile and runs (something like):
I am using the source from Releases · AdaCore/gtkada but in alire it asks for libgtk3. In various answers alire should be the answer to the .gpd problem but I cannot find it. alre said missing
Gtk+ is a C library, while GtkAda is Ada interface for it. GtkAda depends on Gtk+. GtkAda source release doesn’t include Gtk+ binaries. Alire will install gtk+ (libgtk) for you. Just try
alr init --bin my_gtk_app
cd my_gtk_app
alr with gtkada
# Edit src/my_gtk_app.adb
alr run
Sure? What about gtksourceview or svg? It is not that simple.
Gtk is a conglomerate of a huge number of subprojects one cannot bundle into a single packet. If Alire wanted to do it seriously it would have separate crates for countless Gtk components like atk, gdk, cairo, pango … ad infinitum. Not to mention themes, fonts and other stuff.
Yes, it (spaces in file names) should work, but apparently it doesn’t work in case of gprbuild, I guess. You can try to create another user just to try if this helps.
alire just calls the package manager of your system. For windows, it’s pacman -S mingw-w64-x86_64-gtk3. The package manager then installs the required dependencies (atk, cairo, pixbuf2, pango…) as they are defined by your distribution. There’s no magic. You can look at alire-index on github link.
Fair enough, but I prefer direct installation or else dependencies properly handled. If you do that with Alire then it must include all dependencies required. It does not seem so if people get installation errors. Moreover, there must be no any build. The end user does not have to build Gtk, he should not do GtkAda either.
ThyMythos : yes I do so because I want create readability also in the directory structure. The structure until now is:
C:
C:\GNAT
C:\GNAT\GPS , C:\GNAT\gcc , C:\GNAT\gprbuild
So the gtkada installation should logically C:\GNAT\GtkAda
Ailre creates its own directory name. That means installation has one level more including a directory that contains only another directory. So my project name has to be GtkAda create the logical naming I want
That’s the problem of your package manager/distribution, not of alire.
As a pure hobbyist, I would have just gave up with Ada a few years ago as the tooling was really painfull at that time, with almost no way to find interesting/useful libraries, and a headache to integrate in my own projects. Alire is not perfect but really ease the entry level. And your complaints are mostly against your package manager, not alire