comp.lang.ada
 help / color / mirror / Atom feed
From: joakimds@kth.se
Subject: Re: protobuff for Ada
Date: Sat, 29 Dec 2018 16:28:39 -0800 (PST)
Date: 2018-12-29T16:28:39-08:00	[thread overview]
Message-ID: <06c84a2d-a9f0-4163-8b39-b38e1ac77081@googlegroups.com> (raw)
In-Reply-To: <tSLVD.358802$gG.342503@fx25.fr7>

> Joakim its still in non working alpha state and should not work.

Hi Per!

I have taken a look at this and the result can be found at:
https://github.com/joakim-strandberg/temp_protobuf

As you remember it wasn't possible to execute "./autogen.sh" without error message. And the error message indicated that the "src/" directory was missing. To improve on this situation I cloned the repository

https://github.com/protocolbuffers/protobuf

which contains the latest version of the official C++ protocol buffer compiler and took the "src/" directory. In addition I've taken the latest version of "autogen.sh", "configure.ac", "Makefile.am" and "Makefile.in". Also I took the directories "benchmarks" and "conformance" since these directories were non-existant in the 2013 version of the protobuf implementation for Ada. In the 2013 protobuf repository the contents of directory "m4" was deleted and then replenished with the the latest versions from the official C++ repository.
With these changes it was then possible to run "./autogen.sh" without error and then successfully run "make".

Next step after this was to compile the C++ code in the "compiler" directory by executing "gprbuild -p -P protoc_ada.gpr". This was not possible due to compilation errors. To fix the compilation errors the following changes were done to the C++ code:

scoped_ptr --> std::unique_ptr
scoped_array --> std::vector
map --> std::map
numeric_limits --> std::numeric_limits

It seems the protocol buffer C++ code from 2013 had a dependency upon Boost  which has been removed. With the changes in place it is possible to compile the C++ code. The protoc_ada.gpr file also needed adjustments to be able to link against libprotoc and libprotobuf that are created in the "src/.libs" directory when running make above. I hope this feedback will help accelerate the Ada binding from "non working alpha state" into a "working alpha state".

Best regards,
Joakim


  parent reply	other threads:[~2018-12-30  0:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-28 18:57 protobuff for Ada Per Sandberg
2018-12-29  5:53 ` Shark8
2018-12-29 11:05   ` Dmitry A. Kazakov
2018-12-31 16:55     ` Olivier Henley
2018-12-31 17:59       ` Dmitry A. Kazakov
2019-01-01 14:56         ` Olivier Henley
2019-01-02  6:57         ` G. B.
2019-01-02 10:02           ` Dmitry A. Kazakov
2019-01-01  8:05     ` Per Sandberg
2019-01-01 15:04       ` Olivier Henley
2018-12-29 13:01 ` joakimds
2018-12-29 14:52   ` Per Sandberg
2018-12-30  0:27     ` joakimds
2018-12-30  0:28     ` joakimds [this message]
2018-12-30  6:21       ` Per Sandberg
replies disabled

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