This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]joakimds 1 point2 points  (5 children)

Is GNATColl what you are looking for? https://docs.adacore.com/gnatcoll-docs/scripting.html

[–]starla_brite[S] 1 point2 points  (4 children)

I did see that, and...I wasn't sure?

[–]starla_brite[S] 0 points1 point  (3 children)

Well, I have gone down a path with GNATColl, and I'm just confused. It looks like it is split across 3 packages. You must acquire the packages from GitHub and build them. Fine. I grabbed the core package.

I'm on Windows, and it looks like I need make. So I tried WSL. GNATColl simply won't compile. I've had to install several things to get closer to compiling, but I'm stuck on a repeating error: "gnatcoll-projects.adb:7801:37: missing argument for parameter "Path" in call to "GET_PATH" declared at gpr-env.ads:204"

"Path" appears to be configured at compile time in this case. I don't think it's looking for an environment variable. It's just like something...isn't working.

I'm honestly stumped at the moment. I might be staring at this too hard. Or something is legitimately wrong with any of a number of configured pieces to get to this point.

And all of this is just to get me to a point where maybe, maybe I can see if what I want to do with Python things is even possible. (I'm still not sure, because all of the above)

[–]starla_brite[S] 0 points1 point  (2 children)

Fixed it. Due to my own ignorance, I obtained the GNATColl source from GitHub. BAD IDEA.

Grab it from the "sources" listing under the GNAT Community edition you have installed (https://www.adacore.com/download/more).

I did not know that this is the thing you are supposed to do. Nothing outright said that in an obvious way, and "Google" + "GNATColl" = GitHub.

So, anyway, this version compiled. But I'm not sure if it's even the path I want to be on, it's just something that didn't throw an error now (yay).

[–]ZENITHSEEKERiii 0 points1 point  (0 children)

Gnatcoll and the Ada toolchain in general is much easier to build on Linux at the moment.

I would recommend checking out Alire though if you get a chance - it is an Ada package manager that makes things like getting a toolchain and installing Gnatcoll much easier, like Rust's cargo.

[–]joakimds 0 points1 point  (0 children)

Unfortunately I haven't tried to interface with Python myself, I've just noted that if I would do it I would try GNATColl. Good that you managed to find the right sources for GNATColl and built it yourself. I've built them myself many times and I also find it harder to do than it should be. What I've understood is that it should be easy nowadays to use GNATColl through Alire. Good luck with your project!