> Le 10 mai 2021 à 18:38, Joakim Dahlgren Strandberg <joaki...@kth.se> a écrit :
> 
> Hi Chip,
> 
> I don't usually install Gnoga but download it into a directory and then in 
> the project (gpr-file) that I create I with the gnoga/src/gnoga.gpr file. You 
> may need to edit the gnoga.gpr file or some other file it depends upon in 
> order to make the Ada code compile because it usually doesn't work out of the 
> box, and it's because Gnoga wasn't intended to be used like that. It is my 
> impression Gnoga is intended to be used through building all the Gnoga code 
> and then install gnoga globally so that all Gnoga applications use one and 
> the same version of Gnoga. I can imagine that the global installation of 
> Gnoga has its spec files readonly and the package bodies are not included 
> because the code has been pre-compiled into a static library. I prefer to be 
> able to edit the Gnoga code directly, compile through the GPS and see the 
> effect of the Gnoga code changes immediately and that each of my gnoga 
> projects has its own version of Gnoga source code.
> 
> I hope you are successfull in your attempts to re-compile all the Ada code 
> with one and the same Ada compiler. Perhaps it's a path issue?

Hello,

Indeed there are two ways of using Gnoga.

On one hand, as Joakim said, add the path of gnoga.gpr in your GPR file and 
build all together Gnoga and your program.
See more details on §4:
https://sourceforge.net/p/gnoga/code/ci/dev_1.6/tree/INSTALL

On the other hand, install Gnoga with "make install" and add the path of the 
installed gnoga.gpr in your GPR file  and build your program.
Tips: "make help" will give your actual INSTALL folder at line PREFIX.
See more details on §1:
https://sourceforge.net/p/gnoga/code/ci/dev_1.6/tree/INSTALL
This latter way needs that you use the same compiler for installing Gnoga and 
your program.

HTH, Pascal.
https://blady.pagesperso-orange.fr




_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to