1

I got GPS community edition, but it can't create GtkADA projects. So I cloned and built GtkADA using the GPR projects, but when I try to open a GtkADA example or start a new GtkADA project from GPS, I get the error:

unknown project file: "gtkada"

Edit: Windows 10 x64, trying to "get into" Ada.

Edit2: Got farther. I tried setting GPR_PROJECT_PATH to include the following paths:

drive:\gitrepos\gtkada\src
drive:\gitrepos\gtkada\src\lib
drive:\gitrepos\gtkada\src\lib\gtkada\relocatable
drive:\gitrepos\gtkada\src\obj

I am trying to run the base widget example, downloaded from https://www.adacore.com/code-samples for GtkAda.

Now I get:

file "gdk-gc.ads" not found

Indeed I cannot find this file in either the GNAT or GtkAda repo.

Edit2: I am still having difficulty.

Edit3: Other people on freenode#ada were saying the OpenGL part of GtkAda is broken, and many people simply disable it.

7

1 Answer 1

2

I had the same problem and couldn't find Gtkada (about gdk-gc.ads I can't help you).

Therefore I wrote the relative path from my project file to GtkAda.gpr

with "../../lib/gnat/gtkada"; -- on linux (I installed my gtkada into my gnat folder)

In your case, if you installed it on C:\GtkAda you should search for GtkAda.gpr, then copy paste its path. (Not sure if absolute path works. You will maybe need to tell your project to search outside of its folders by using ".." until you are in C:, then paste your path.)

PS: Adacore provides a GtkAda installer for windows: https://www.adacore.com/download/more

Edit: On my windows, I simply used the installer then with "gtkada" worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.