Re: [Gnoga-list] Rebuilding from scratch
Thanks for the help! I got it working by pointing my project file to the GPR file in gnoga/src,,, Is there any documentation that talks about the Gnoga paradigm? Application vs. Window vs. View vs. Element, etc.? I appreciate the aid, Chip Chip Staples 434-989-3995 c...@twirling-hall.com On 2021-05-10 15:14:31, Blady via Gnoga-list wrote: > Le 10 mai 2021 à 18:38, Joakim Dahlgren Strandberg 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 ___ Gnoga-list mailing list Gnoga-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnoga-list
Re: [Gnoga-list] Rebuilding from scratch
> Le 10 mai 2021 à 18:38, Joakim Dahlgren Strandberg 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
Re: [Gnoga-list] Rebuilding from scratch
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? Best regards, Joakim Från: Chip at Twirling Hall Skickat: den 10 maj 2021 03:07:23 Till: gnoga-list@lists.sourceforge.net Ämne: [Gnoga-list] Rebuilding from scratch I've cloned the repository and built (and run) tutorial_01. I am now trying to integrate Gnoga into my GNAT project tree. I am getting errors that files must be recompiled because of different GNAT versions, but I can't figure out which of the existing Gnoga projects to use to make sure I get a clean build of everything. Can someone point me to some info about how to build from scratch? Thanks! Chip Staples Chief Engineer, Twirling Hall LLC 434-989-3995 c...@twirling-hall.com ___ Gnoga-list mailing list Gnoga-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnoga-list
[Gnoga-list] Rebuilding from scratch
I've cloned the repository and built (and run) tutorial_01. I am now trying to integrate Gnoga into my GNAT project tree. I am getting errors that files must be recompiled because of different GNAT versions, but I can't figure out which of the existing Gnoga projects to use to make sure I get a clean build of everything. Can someone point me to some info about how to build from scratch? Thanks! Chip Staples Chief Engineer, Twirling Hall LLC 434-989-3995 c...@twirling-hall.com___ Gnoga-list mailing list Gnoga-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnoga-list