comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: ANN: MAX! home automation v1.9
Date: Sat, 17 Jun 2017 10:12:16 +0200
Date: 2017-06-17T10:12:16+02:00	[thread overview]
Message-ID: <oi2o90$1i2e$1@gioia.aioe.org> (raw)
In-Reply-To: oi1i71$5sm$1@gioia.aioe.org

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


  reply	other threads:[~2017-06-17  8:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19 16:30 ANN: MAX! home automation v1.9 Dmitry A. Kazakov
2017-06-16 14:35 ` lyttlec
2017-06-16 19:54   ` Dmitry A. Kazakov
2017-06-16 21:22     ` lyttlec
2017-06-17  8:12       ` Dmitry A. Kazakov [this message]
2017-06-17 12:10         ` lyttlec
2017-06-17 13:25           ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox