From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.1 required=3.0 tests=BAYES_00,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!UwaQA2uFYBTGbFvXB84TYA.user.46.165.242.75.POSTED!not-for-mail From: Fernando Oleo Blanco Newsgroups: comp.lang.ada Subject: Re: Announce: AdaStudio-2021 release 01/10/2021 free edition Date: Wed, 6 Oct 2021 23:28:33 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <7aff9139-3a18-4c98-bdc0-5d587912d880n@googlegroups.com> <423cb5c5-a13f-4a30-ac96-eeb537acfc68n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="17287"; posting-host="UwaQA2uFYBTGbFvXB84TYA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:62946 List-Id: Hi, I have been playing today with qt5ada and I think I can shed some light on the issue. The Ada sources that call the Qt procedures are in the AdaStudio/qt5ada/qt5adasrc.tar.bz2 file. That is the source file. There are no C files there. That library contains all of the Ada wrapper. However, that is indeed not enough to use it. It requires a fully functional Qt5 installation (and a very complete one, with bells and whistles). The binaries are provided in the other *.tar.bz2 files (except the demos file). There is also the qt5adax86-64.tar.bz2 file which weights about 6Mb. That seems to be the relevant file to build qt5ada from source in Linux. It comes with different files to setup the file structure and environment. I must admit, I have not tried to build it with the provided files in qt5adax86-64.tar.bz2 These "build files" expect you to have a Qt5 installation in your local /usr/local folder. I suppose that is where the qt5.15x86-64.tar.bz2 comes into place, after all, it should unpack in the directory written in the environment file. Of course, the question is: where are the instructions to build this all from source? The short answer is in the document "How to use Qt5Ada.docx" that is present in AdaStudio/qt5ada. That sheds more light into the procedure. But it still expects you to use the precompiled Qt5 binary. And, I must be honest, it is not clear and easy to follow, you need to adapt the generic instructions to what is on your system... Then the question becomes: "How can I build _everything_ from source? Specially with the system provided libraries, such as the system provided Qt5." Well... That is not so simple. I understand why Leonid has set up things this way. Correctly setting the compiler flags and directories for system installed libraries is a nightmare. I tried to compile qt5ada with my system provided Qt5 (OpenSUSE Tumbleweed), it is not trivial _at all_. There can be problems with the Qt5 version, there can be problems with the plugins, compiler flags, etc. Can it be done? Most likely, but it will require some elbow grease. There is a reason to why most Qt projects use CMAKE to build and link themselves; because it is not an easy task. So I would say that the instructions need to be cleaner and that in its current state, there is only one easy solution to building qt5ada, and it requires the binaries provided. But I would also say that all the source files needed are in there. The prebuilt Qt5 binary seems to be the standard unmodified Qt5 distribution, so no surprises there. And that a lot of extra work would be needed to make qt5ada work seamlessly with the system provided libraries. Regards, -- Fernando Oleo Blanco https://irvise.xyz