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: lyttlec Newsgroups: comp.lang.ada Subject: Re: ANN: MAX! home automation v1.9 Date: Sat, 17 Jun 2017 08:10:23 -0400 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: zl2C1XAcCt3LQZ+8Ekl+Pw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:46967 Date: 2017-06-17T08:10:23-04:00 List-Id: On 06/17/2017 04:12 AM, Dmitry A. Kazakov wrote: > 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. > Thanks! I got the command line to build after changing "-mwindows" to "-ldl". -mwindows is not a valid option on my installation, and the -ldl is needed to get rid of the "missing DSO" error. It looks like the version of gnat-gps in Ubuntu is not good. I'm going try a manual build from current sources and see what happens.