From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: ANN: MAX! home automation v1.9 Date: Sat, 17 Jun 2017 10:12:16 +0200 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: MajGvm9MbNtGBKE7r8NgYA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:46966 Date: 2017-06-17T10:12:16+02:00 List-Id: On 2017-06-16 23:22, lyttlec wrote: > I have unixodbc, unixodbc-dev, unixodbc-bin installed. > I also have libgtk-3-dev, libgtkada3.14, libgtkada3.14-dev, > libgnatcoll-gtk3.17 > I started the project with : > gnat-gps max_home_automation.gpr & > and then selected > Build->Project->Build All > Under the Scenario tab, the list is empty. The target is the laptop used > for the build: amd 64-bit Ubuntu 17.04 > I do have the environment variable ADA_INCLUDE_PATH set to the paths to > the max source and to /usr/share/ada/adainclude/gtkada OK. Regarding gnat-gps I cannot tell for sure. AFAIK, only an outdated version is available. Nevertheless, I found a few glitches to take care of: 1. In max_home_automation.gpr remove all directories in the file paths given in "with" clauses. The header of the file must be this: -------------------------------------------------------- with "components-connections_server-elv_max_cube.gpr"; with "components-connections_server-mqtt.gpr"; with "components-connections_server-http_server.gpr"; with "components-connections_server-secure.gpr"; with "components-connections_server-smtp.gpr"; with "components-odbc.gpr"; with "components-sqlite.gpr"; with "components-gtk.gpr"; with "aicwl.gpr"; project Max_Home_Automation is -------------------------------------------------------- 2. In gtkada_contributions.gpr at the end you see this: package Linker is case Development is when "Debug" => for Default_Switches ("ada") use Gtkada.Linker'Default_Switches ("ada") & "-g" & "-lgio-2.0" & "-mwindows"; when "Release" => for Default_Switches ("ada") use Gtkada.Linker'Default_Switches ("ada") & "-O2" & "-lgio-2.0" & "-mwindows"; end case; end Linker; Replace both "-mwindows" with "-ldl" Now the command to build using grpbuild should be: > gprbuild max_home_automation.gpr -Xodbc=unixODBC -XAtomic_Access=Pragma-atomic -Xarch=x86_64 The important scenario variables here: odbc = unixODBC (you have Linux ODBC driver) Atomic_Access = Pragma-atomic (you have pragma Atomic working with 64-bit objects) arch = x86_64 (you have 64-bit machine) These would the choices for GPS too. The issue #1 should not let you have project loaded correctly. The issue #2 prevents binding and linking it. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de